on 07-14-2007 11:09 AM
hi ,
i have button in my table rows ,
when click on buttons iwant data relate to the row , not the row of lead selection .
pl send code for this , itried get_lead_selection( ) also .
its very urgent ..pll
thanks
setu
Hi Setu,
In the action handler that you have defined for the button, use the following code:
data: lr_element type ref to if_wd_context_element,
ls_data type <your context node structure type>.
lr_element = wdevent->get_context_element( 'CONTEXT_ELEMENT' ).
lr_element->get_static_attributes(
importing
static_attributes = ls_data
).
Now the structure ls_data will have your row data.
Regards,
Nithya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Setu,
You could also use
CALL METHOD WDEVENT->GET_DATA
EXPORTING
NAME =
IMPORTING
VALUE =
.
Here the name indicates , the name of the attribute you want , where as the data indicates the values.For example in the row you have colum1,colum2....column5...
Here in this situation , if you want only one value of the row. You could use this rather than the one mentioned by Sascha..
CALL METHOD WDEVENT->GET_DATA
EXPORTING
NAME = 'Column1'
IMPORTING
VALUE = mydata
.
Thanks
Anzy
hi experts ,
i solved tht problem by usind wd_event .
thank u for u r answers .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
U can do this.
U have used defined linktoaction and action handler.
Now on click of the button you can retrieve the row that u have click by Get_index() ,and u can read that the elements you want and bind it to the display element.I guess it helps.
Nirad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi setu.
in the action handler method you defined for the button in your table row
you see the wdevent attribute in the signature.
Using this object you can access the current element which belongs to the row
the button was clicked in.
Data:
lr_element type ref to if_wd_context_Element.
lr_element = wdevent->get_context_element( 'CONTEXT_ELEMENT' ).
Use the method call as it is. 'CONTEXT_ELEMENT' is not a place holder for the name of the node. So do not replace it.
Cheers,
Sascha
Message was edited by:
Sascha Dingeldey
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi sascha ,
thank u very much ,
i placed the same code u have given .
thank u very much
.
i got another problem tht i want to find the index no of row .
the problem is
i am using on action enter in a field of a table .
so when i create new row and i enter on tht i want to read the index of tht row .
pl reply me ..
thanks in advance
User | Count |
---|---|
83 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.