cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically assign values calcualted in Smartfrom to Standard Text Variable

Former Member
0 Kudos

Hello,

In my smartform I have to display text from Standard Text. In the Standard Text at the end I have to display the contact person phone number.

' Please contact me at &TEL1_NUMBR& '

This telephone number value is obtained from the Smartform. Is it possible to pass smartform value to the standard text variable?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

there is nothing like sending value from stdd text to smartform. if the variable is defined in smartform and that variable is getting value at runtime, the value will be printed. that's it.

Are u including stdd text in smartform in this way?

1. create a text node in smartform

2. goto general attributes tab-> type: include text-> now enter these values:

text name: your stdd text name

text object: text

text id: ST

language: EN

now activate the form and test

*Just now I created a stdd text and used variable &sfsy-page& and included the same in the smartform. It worked.

regards,

Ravi

Former Member
0 Kudos

Ravi,

When you were testing for &SFSY-PAGE& in standard text, did u just type in this variable or did u use insert command to include the variable in the standard text.

Please explain how you have included the variable in standard text.

Also can you include variable that is declared in the Global Definition of smartform in the standard text and test for this instead of the system variable &SFSY-PAGE&

Thanks for your help!

Viswas

Answers (4)

Answers (4)

Former Member
0 Kudos

The issue is solved.

Former Member
0 Kudos

in the above case i have replied in the case of static telephonenumber....

if it is dynamic (i mean if u have to retrive from the database ......) then use adrc table.

rewards if helpful.

Message was edited by:

ramya villupuram

Former Member
0 Kudos

do one thing ..........

declare TEL1_NUMBR TYPE STRING in global definitions.

before u r TEXT in smartform create a program line and give input parameter and outputparameter as TEL1_NUMBR

and write u r code like TEL1_NUMBR = '384573845'.

in SO10 write &tel1_numbr& save it ......

give u r include text ........ activate u r smartform it will work

jst now i did this and it worked for me .

rewards if helpful.

Message was edited by:

ramya villupuram

Former Member
0 Kudos

Hi

Yes, you can print the varaible after the text module in the smartform.

after the text module(text will be written) and then write

' Please contact me at ' &TEL1_NUMBR&

Don't keep the field in the quotes

<b>Reward points for useful Answers</b>

Regards

Anji

Former Member
0 Kudos

Anji,

I am using Standard Text(TCode:SO10) not the text modules. In the standard text the field is called between &s.

&TEL1_NUMBR&

When i see the output the variable is not replaced. It is printing &TEL1_NUMBR&

Thanks,

Swathi