on 07-15-2013 10:33 AM
Hi,
im trying to achieve a functionality where inside a string, i can click on multiple items, leading to different actions (Leading to different URL).
im trying to figure out the best way to do this, and if it is even possible in WD ABAP.
i've attached an example.
in the example:
Person 1,
Person 2,
45 Persons
Are all clickable items leading to different URLS
Thanks for any help!
Hi,
You can use the following code to create a LTA dynamically
Data: lr_link_to_action type ref to cl_wd_link_to_action,
lr_link_to_action = cl_wd_link_to_action=>new_link_to_action(
id = definition_name_txt
on_action = 'DISPLAY_DETAIL'
text = display_name_txt
view = i_view ).
create multiple LTA using the above code using different ID and the text and handle the events accordingly . And if the number of the LTAs are constant then it will be easy to handle the events.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Using dynamic programming, split your string into say 3 words and create 3 link to action / url ui elements , then write whatever the code you want .
Regards
Srinivas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I really doubt this is possible the way you describe it.
Yet, you can split your string into 4 UI controls (3 LTA in your example) and associate desired actions to each of them.
You can even do it dynamically using event WDDOMODIFYVIEW.
Best regards,
Guillaume
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.