on 07-18-2012 8:22 PM
Hello All,
Im new to Adobe Forms.
I have a requirement wherein depending on the condition either I have to display the corresponding Standard Text or no text!
Condtion A: Display all lines from Standard text Z100
Condition B: Display all lines from Standard text Z200
Condition C: nothing to be displayed
Standard Text Z100 and Z200 have 3 lines of address.
I tried it with creating a Text in the Context Area of the Form and changing the text type to "Include Text"
Then specifying the following:
Text Name: gs_thead-tdname
Text Object: gs_thead-tdobject
Text Id: gs_thead-tdid
Text Language: gs_thead-tdspras
wherein gs_thead is defined as a global data and in the Interface->Code Initialization I have my logic which checks for the condition and accordingly sets the value in gs_thead
During execution, if it is Condition C, then I get an error "Text object not found"
I really dont want to create another standard text - Z100_200_BLANK - which will be just blank!
Is the above design correct?
If not, How should I go about designing the layout - how should I handle the 2 different address?
How should I handle the Standard Text dynamically?
Thanks
Rajeev
Hi,
Instead of using a text element in Context,
Just create a string Variable in Global data of your Interface.
Use READ_TEXT Function Module and get the text.
then loop the Text table and concatenate the text to the global variable.
Drag the Global variable to context put the condition on it as not INITIAL.
then place it on your form .
that's it.
Thanks.
Uma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.