cancel
Showing results for 
Search instead for 
Did you mean: 

How to show old value in webui when user press NO button on popup button.

former_member329859
Participant
0 Kudos

Hi Experts,

As per requirement I have created custom field with dropbox and with popup box to cofirm user decision if value from field changes.

Now on Popup when user press Yes then its Ok as no need to change the current value in the field.

but when user press the NO button I want to display the old value on Web UI so now I am able to catch the old value and pass it into the field at backend but I am not able to make the change on the web page.

Please reply if anyone have solution for it.

BR

Gaurav    

View Entire Topic
faisal_pc
Active Contributor
0 Kudos

Hi Gaurav,

I was telling to update the table with set_collection in the other thread. However, the following is something which I have already tested and is working. Only difference is the field is text box instead of dropdown.

DATA: l_if_current    TYPE REF TO if_bol_bo_property_access.

* Get context node value for PRD as node

    l_o_context_node = ci_if_compprodsearch_popup->get_context_node( iv_cnode_name = l_c_prd ).

* Get the value for current transaction

    l_if_current = l_o_context_node->collection_wrapper->get_current( ).

* Get the iterator value

    l_if_it  = l_o_cw->get_iterator( ).

* Get current value

    l_if_current = l_if_it->get_by_index( iv_index = ci_v_index ).

* Set the value for product design field

l_if_current->set_property( iv_attr_name = 'YOUR_FIELD' iv_value = old_value ). 

Thanks,

Faisal