on 10-26-2010 9:24 AM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.