on 06-22-2007 4:11 AM
Hi,
I would like to use a button in table column, in this case how would I identify the row no. when the user click the button. Is that clicking button affects context change log. Please help me out here.
Cheers,
Senthil
if it is an alv table then you need to you can get the selected row from r_param->index of the event handler ON_CLICK
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanx Guys.. Solved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In your button's event handler, call the method wdevent->get_context_element('CONTEXT_ELEMENT'), which will return you the element on which the button was clicked. Do a get_static_attributes to get the row data. I dont think the context change log will be updated on a button click.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
I think you want to know the row number, in this case , what i would suggest is , in the action ,there is a parameter WDEVENT , which gives you the complete row where you clicked.
In WDEVENT , you have GET_CONTEXT_ELEMENT method as well as GET_DATA method to fetch the data and it doesnt require any lead selection.
Thanks
Anzy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
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.