on 2009 Apr 30 1:53 PM
Hi,
I am modifying the UI-Table which is editable.
What has to be done to show the current new content of the table on the view.
There is a calculation and the result will be inserted into the cost column.
Cleary how can I see that the changes take effect
I cant see the value in the view after modify command
data wa_kt type ZCBD_PURCHITEM.
Data: l_node type ref to if_wd_context_node.
l_node = wd_context->get_child_node( 'ZKAUF' ).
*l_node->get_static_attributes_table( importing table = lt_table ) .
l_node->get_static_attributes_table( importing table = WD_COMP_CONTROLLER->GT_KAUF_TAB ) .
LOOP AT WD_COMP_CONTROLLER->GT_KAUF_TAB INTO wa_kt.
wa_kt-COST = wa_kt-EKPREIS * wa_kt-MENGE.
modify WD_COMP_CONTROLLER->GT_KAUF_TAB from wa_kt transporting COST.
ENDLOOP.
regards
ertas
hi
indeed the binding was the solution.
@Radhika I will set this posting to solved later.
What happens through binding. Does it mean the table was not bounded
privously ?
I am currently using a button as event action. But it would be much more better
if I could handle ON_ENTER event.
Is there a way to do that. I mean without relating to a input field or cell editor.
Always if the user hits the key enter where ever he is on the view. To react on_enter.
Regards
ertas
Edited by: Ilhan Ertas on Apr 30, 2009 3:41 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Table binding........is the corret solution to have the new resutls to be shown....what it does is.Binding stores the latest information to the node.......
Check the tbale events......if there is ONENTER event you can write the same code ...for callucuations...bind the table again...........One thing to remember...this will only trigger when teh USER presses the ENTER key.....but on every ENTER event this code gets triggered..better keep a button for calculation and perform the code in this.......Sometimes the users are lazy to press ENTER everytime...
Regards,
Lekha.
hi,
what you are missing is Binding of the Table on which you are doing calculation.
Thanx.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Did you bind the table again after calculating the cost............
Upon which action you are writing this code......
Regards,
Lekha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
At the end of the loop just bind your table again to the same node.
l_node->bind_table( WD_COMP_CONTROLLER->GT_KAUF_TAB ).
Radhika.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
10 | |
10 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.