on 09-19-2009 1:34 AM
Hi Experts,
I have input field as my table column in my table. I have a requirement that when the user type something in the input field and after pressing Enter i have to calculate something and display result in another column in the same row.
I am trying to catch values the user entered in the Enter Event but i am not able to do it use the Lead selection.
Can you help on this....
Thanks,
Karthik
Thanks Kanda, It worked...Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Karthik,
You'd have to use the event onEnter of the input field.Link it to the method to fetch the values entered from the object WDEVENT. You may test this in debug mode how the field value is captured.
Let me know if that works.
Regards
Prasenjit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi try the following code.
Use get static attributes to get the elements in a row
->DATA : lo_nd_cn_table TYPE REF TO if_wd_context_node ,
-> lo_el_cn_table TYPE REF TO if_wd_context_element ,
-> ls_cn_table TYPE wd_this->element_cn_table.
->* navigate from <CONTEXT> to <CN_TABLE> via lead selection
-> lo_nd_cn_table = wd_context->get_child_node(
-> name = wd_this->wdctx_cn_table ).
->** get element via lead selection
-> lo_el_cn_table = lo_nd_cn_table->get_lead_selection( ).
-> lo_el_cn_table->get_static_attributes( IMPORTING
-> static_attributes = wa_table ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Karthi,
Try this..
lo_el_items = wdevent->get_context_element( 'CONTEXT_ELEMENT' ).
lo_el_items->get_static_attributes( IMPORTING static_attributes = ls_bbu_items ).
Now in ls_bbu_items will contain the data. U can do your calculation with this and use the below code to set the values.
lo_el_items->set_static_attributes( ls_bbu_items ).
Now your newly calculated values will be binded..
Thanks,
Mugundhan
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.