Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Smartforms

Former Member
0 Likes
584

hi Friends,

Could u please send me the Details

my problem is actually i fetch the data from some tables and store in one field i.e <b>Inco1</b>

in my smartforms Myrequirement point of view

if INOC1 = "opp", Print "FOB Origin-Prepay"

if INCO1 = "Opa", Print "FOB Origin-Prepay&Add"

if INCO1 = "Oco", Print "FOB ORigin-Collect"

in Smart forms

for I have witten Like this

Data:value(10) type c.

if INOC1 = "opp",

Value = "FOB Origin-Prepay"

endif.

if INCO1 = "Opa"

Value = "FOB Origin-Prepay&Add"

endif.

in Text I have call like this &value&

but it showing some error message like use Select-options Here

Regrads

Srinu

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
552

Hi Srinu

Have you declared data in Global Definitions. If this is not the case, firstly declare variables of data statement in Glaobal Definition. Then in Code's General attribute tab declare this variable as input parameter.

If this doesnt rectify you problem reply.

5 REPLIES 5
Read only

Former Member
0 Likes
553

Hi Srinu

Have you declared data in Global Definitions. If this is not the case, firstly declare variables of data statement in Glaobal Definition. Then in Code's General attribute tab declare this variable as input parameter.

If this doesnt rectify you problem reply.

Read only

Former Member
0 Likes
552

Hi Srinu,

In order to display the value in the Script, the variable has to be declared globally. You have declared it locally in the program lines part.

Click on the Global declaration in that declare the variable <b>"value"</b>

<b>value type char10</b>

Your value will be displayed.

Reward if helpful.

Regards,

Tushar

Read only

Former Member
0 Likes
552

Hi Srinu,

Declare the variable VALUE TYPE CHAR10 in the GLOBAL DATA tab and place your code in INITILIZATION tab.

Thanks and Regards,

Bharat Kumar Reddy.V

Read only

Former Member
0 Likes
552

hi,

you can use PROGRAM LINE node to solve your problem .

Regards

vikas

Read only

Former Member
0 Likes
552

Hi,

Instead of coding, create 3 text elements (for example opp, Opa & Oco) and use value of INOC1 as a condition to print the correct one?

Br,

Hannu