cancel
Showing results for 
Search instead for 
Did you mean: 

changes dont take effect in the view

Former Member
0 Kudos
91

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

Your table was previously bounded too, but for the new values to reflect in your table control you need to rebind it.

Regards,

Radhika

Answers (3)

Answers (3)

Former Member
0 Kudos

hi,

what you are missing is Binding of the Table on which you are doing calculation.

Thanx.

Former Member
0 Kudos

Hi,

Did you bind the table again after calculating the cost............

Upon which action you are writing this code......

Regards,

Lekha.

Former Member
0 Kudos

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.