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

Message long text variable replacement

Clemenss
Active Contributor
0 Likes
3,180

Hi,

I hope this question is not considered too basic, but the documentation I found does not provide a solution:

We created a message where we want to display quite a lot of information.

So we concatenated some information and altogether gave a text quite short so that the whole message fits in the status bar area.

In the long text, I would like to explain the information given in the for message variables in more detail.

According to documentation, we can use & & & & or &1 &2 &3 &4 in the short text but &V1& &V2& &V3& &V4& in the long text.

When clicking the message, The long text display pops up and shows the short text with message variable values but in the explanatory long text &V1& &V2& &V3& &V4& is not replaced.

I.e.

Mat/Plt/Sto 1234567/1000/12

should be extended in long text to

Material / Plant / Storage location 1234567/1000/12 ...

but is displayed as

Material / Plant / Storage location &V1& ...

Can I use the message variables only once, either in short or in long text?

I tried various variations without success.

Hopefully someone with experience can give me some information on what I missed.

Regards,

Clemens

1 ACCEPTED SOLUTION
Read only

ThomasZloch
Active Contributor
0 Likes
1,642

In the long text editor, choose "edit - command - insert command", then enter "&V1&" under "symbols".

This works for me. I have to regularly remember how this is done as well.

Thomas

3 REPLIES 3
Read only

ThomasZloch
Active Contributor
0 Likes
1,643

In the long text editor, choose "edit - command - insert command", then enter "&V1&" under "symbols".

This works for me. I have to regularly remember how this is done as well.

Thomas

Read only

brad_bohn
Active Contributor
0 Likes
1,642

I don't think you missed anything. I regularly type those in directly though it does always help to use the menu options as Thomas suggests because you can add additional formatting options to the variables. It's the 'Insert' menu in my version. Unfortunately, I can't make your behavior happen no what what I do, even with prefixing or escaping the symbols. That type of bug used to happen in older 3.0 versions before the language dependencies were resolved but I haven't seen it in a long time.

Read only

Clemenss
Active Contributor
0 Likes
1,642

Arrgh!

Thanks Thomas and Brad.

For my user, still the word editor was configured. With this, you definitely have to use the edit insert symbol technique otherwise &V1& results in garbage.

Just do it as suggested, or better switch to classic text editor: Not what you see is what you get but what you type is stored as is.

Hope I won't forget too soon.

Regards,

Clemens