on 05-02-2008 11:01 AM
hai to all,
how to get the corresponding id of a UI element button when clicked.
Thanks...
Hello Ram,
Just create one importing parameter in method
ID Type String.
And check value of ID in method it will return you button ID (Which Button is clicked)
It will work fine, I have done the same.
Regards,
Varun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hai,
Actually i need that id in wddomodifymethod not in that corresponding event handler method....as u said ,using wdevent parameter is possible only in event handler method....can u help me...
there is a method get_id in cl_wd_button...
data: id_button type string,
lr_button TYPE REF TO cl_wd_button.
id_button = lr_button->if_wd_view_element~get_id( ).
but tis throws 'access through null object reference not possible'..
any idea??
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ram,
Just create one import parameter at your event handler method as name as ID. it will automatically receives the ID of the button.
Then append this ID value into one local variable.
Then using set attribute method set this value to one attribute.
So after clicking the button, That attribute automatically stores your button ID.
So at domodify view you can get the Button ID using the Get attribute statement.
Thanks.
Well, not directly, but the name ist encapsulated in the wdevent parameter, which ist given in the action method.
And its indeed called 'ID' . So, you should be able to retrieve it via:
WDEVENT->get_data( 'ID' ).
Regards
Torsten
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi chinna.......
on the on action method, you will automatically have the id as the importing parameter.
---regards,
alex b justin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
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.