cancel
Showing results for 
Search instead for 
Did you mean: 

how to get back ovs result to table cell?

Former Member
0 Kudos

hi experts,

I have a table which bind to node ND1. one of the column having OVS Help . I get the help and when i select the value and press ok in OVS Help Window, i am not getting value back to cell. i did the code as below in co_phase_3:

---> In OVS Help Window i get the keyword & text as coulmns.

---> Node ND1 having attribute called SUMPLUS having OVS Help which needs to get its value from OVS Help.

when if_wd_ovs=>co_phase_3.

  • apply result

if ovs_callback_object->selection is not bound.

                • TODO exception handling

endif.

assign ovs_callback_object->selection->* to <ls_selection>.

if <ls_selection> is assigned.

ovs_callback_object->context_element->set_attribute(

name = `SUMPLUS`

value = <ls_selection>-KEYWORD ).

LO_EL_ND1->SET_ATTRIBUTE(

VALUE = <ls_selection>-KEYWORD

NAME = `SUMPLUS`

).

endif.

plz solve it.

Thanks

Saurin Shah

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

solved by myself. actually node ( which is binded to table ) should belong to view only locally. it should not mapped with comp. controller node.

Former Member
0 Kudos
ovs_callback_object->context_element->set_attribute(
name = `SUMPLUS`
value = <ls_selection>-KEYWORD ).

Your code seems perfect.

Just make sure the context attribute name is SUMPLUS and also debug and check ls_selection-KEYWORKD has any value or not.

Former Member
0 Kudos
abhimanyu_lagishetti7
Active Contributor
0 Kudos

Code looks ok for me, just clarify what is this stmt for

LO_EL_ND1->SET_ATTRIBUTE(

VALUE = <ls_selection>-KEYWORD

NAME = `SUMPLUS`

).

Former Member
0 Kudos

hi,

i can write

either

ovs_callback_object->context_element->set_attribute(

name = `SUMPLUS`

value = <ls_selection>-KEYWORD ).

or

LO_EL_ND1->SET_ATTRIBUTE(

VALUE = <ls_selection>-KEYWORD

NAME = `SUMPLUS`

to set up the value for SUMPLUS.

Both have same refrence to element.

bt its not solved.

Thanks