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

Dynamic text element (Text Symbols)

Former Member
0 Likes
2,627

Hi,

How can we make text element dynamic?

Ex:

If I want a text "Consider date g_date" where g_date is populated from program. Can I pass g_text like <b>text-001 g_text</b>?

Thanks.

Hi,

How can we make text element dynamic?

Ex:

If I want a text "Consider date g_date" where g_date is populated from program. Can I pass g_text like <b>text-001 g_text</b>?

Thanks.

4 REPLIES 4
Read only

Former Member
0 Likes
868

Use a place holder like &1.

Then whenever you are using the text element

you could use TEXT-001 with g_text.

Regards,

Ravi

Read only

0 Likes
868

I gave

<b>l_msg_txt = text-009 with g_prev_date .</b>

<b>It is showing compilation error:

Incorrect arithmetic or bit expression: Instead of "WITH", an operator

(+, -, *, /, ... or BIT-AND, BIT-XOR, BIT-OR) was expected.</b>

Actually my requirement is to use this in a message. I don't want to create message class. Is it possible?

<b>message l_msg_txt type 'I'.</b>

Read only

Former Member
0 Likes
868

Hi,

Use the Concatenate option,

data : g_text(10)

g_text = g_date

concatenate text-001 g_text into im_text separated by space.

Sreedhar

Read only

Clemenss
Active Contributor
0 Likes
868

If you need it for a message, just use a predefined generic one, i.e

MESSAGE s000(0k) WITH 'Consider date' gdate '' ''.

Then you don't even have to define 'Consider date' as a text-symbol. But you can. Then it is

MESSAGE s000(0k) WITH text-001 gdate '' ''.

Regards,

Clemens