cancel
Showing results for 
Search instead for 
Did you mean: 

Context Element Issue In OVS Usage

Former Member
0 Kudos

Hi Experts,

I have a table to which there has been an OVS declared for a Paticular column. The ovs is working fine but the problem arises when i click on some value in the ovs the selected value goes and sits in the first row as that is the lead selected element.

The ovs method doesnt allow us to create a new method parameter context_element like in other methods so is there a way i can get the reference of the row (element) that i click on the table to generate the ovs.

Thanks In Advance,

Chaitanya.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Try the below code to set value for the selected row in phase 3 of OVS.

Node= wd_Context->path_get_node( wd_This->nodename ).

Node->set_lead_selection( ovs_callback_object->context_element ).

Elem= Node->get_Element( ).

lr_context = wd_Context->get_context( ).

lr_context->add_context_attribute_change(

element = Elem

attribute_name = ovs_callback_object->context_attribute

new_value = "ABC"

).

Node->set_attribute(

name = ovs_callback_object->context_attribute

VALUE = "ABC"

Regards,

Shruthi R

Former Member
0 Kudos

Hi Shruti,

Thanks a lot

Answers (0)