Skip to Content
avatar image
Former Member

changes dont take effect in the view

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Apr 30, 2009 at 01:41 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 30, 2009 at 01:06 PM

    Hi,

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

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

    Regards,

    Lekha.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 30, 2009 at 01:06 PM

    hi,

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

    Thanx.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 30, 2009 at 01:05 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded