cancel
Showing results for 
Search instead for 
Did you mean: 

issue while pressing f4(OVS) for a particular row

Former Member
0 Kudos

Dear Friends

i have 4 rows in my table

Accepted Solutions (0)

Answers (1)

Answers (1)

ramakrishnappa
Active Contributor
0 Kudos

Hi Vijaya,

You can get the contents of selected row by using CONTEXT_ELEMENT from OVS_CALLBACK_OBJECT parameter in OVS method

Sample code:


          data ls_data type wd_this->element_my_node.

          ovs_callback_object->context_element->get_static_attributes(

          static_attributes = ls_data ).

     Now, you have the vendor code of selected row i.e. ls_data-vendor

          

          You can use the value of selected row and populate the output table based on ls_data-vendor

Hope this helps you.

Regards,

Rama

Former Member
0 Kudos

Hi Rama

testing guy is selecting first row and pressing f4 help for 3rd row , ( 3rd vendor ), in that case  , how to solve this issue

please let me know

Thanks

Vijaya

ramakrishnappa
Active Contributor
0 Kudos

Hi Vijaya,

You can get the contents of selected row by using CONTEXT_ELEMENT from OVS_CALLBACK_OBJECT parameter in OVS method

In the above , "selected row" - means the row on which the OVS help is called ( F4 KEY pressed )

The OVS_CALLBACK_OBJECT will not work based on selected row, Instead it works on row to which the F4 help is called.

In your case, the CONTEXT_ELEMENT points to the 3rd row ( i.e. F4 pressed on column of 3rd row ) not to the 1st row ( selected row )

Hope this helps you.

Regards,

Rama

Former Member
0 Kudos

Thanks Rama, i will get back to u