cancel
Showing results for 
Search instead for 
Did you mean: 

Link, as a part of the message displayed

Former Member
0 Kudos

Hi,

I need to display a message in my view, using the message manager APIs. This is straightforward.

But a part of this message needs to be displayed as a link, so that when I click on it, a new window opens up.

How do I put in this link inside the message?

Thanks,

Shalini Mohan.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi,Shalini.

Using Message directly, you can not achieve what you want easily.

Instead, i thought out one way, you can judge and check whether it can help you a little.

You don't use the Message manager directly, that means: don't display your message.

Now, you have one context attribute named "context_msg" which has type "String".

In addition, you have defined one Link-to-action UI element which is bound with the context attribute "context_msg".

When you get the message, use the following

message e001(ID) with <variable> into lw_msg.

or if you use Exception class

lw_msg = lo_exp->get_text( ).

Then you can set the context attribute "context_msg" with the "lw_msg".

Now, you can implement your action handler for the action of Link-to-action as you want, i.e. open another pop-up window.

I don't know whether it can fit your requirement or not.

Hope it can help you a little.

Best wishes.