cancel
Showing results for 
Search instead for 
Did you mean: 

Popup clear data

Former Member
0 Kudos

Hi there,

Explaining the requirement again,

I've created a popup in CRM Webui and the popup fires for material type P1 with ok and cancel buttons and is working fine after I click on cancel or ok and open popup to fire for material type P2 the popup is fired the text details of P1 instead of P2.

The popup text data of previous popup is getting picked up. I would like to clear the popup text data on close of every popup. Can you please suggest me how to achieve the task.

Regards,

Krishna

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Krishna Dev,

Do u still have problems?

Former Member
0 Kudos

Set initial value to the entity in the wd_create_context method of the view that you open in the popup. So whenever the view loads as a popup, it will have the initial entries i.e. empty.

Refer the below code:

METHOD wd_create_context.

     CALL METHOD super->wd_create_context.

     DATA: ls_stru TYPE zmo_facilty_mas,  ""structure by which context node was made

                lr_entity TYPE REF TO cl_bsp_wd_value_node.

    lr_entity ?= me->typed_context->zfacility->collection_wrapper->get_current( ).

     IF lr_entity IS BOUND.

       lr_entity->set_properties( is_attributes = ls_stru ).

     ENDIF.


Endmethod.


Hope this helps.


Former Member
0 Kudos

HI,

Thats a standard pop up view which we generally use and i doubt if you can change that. Maybe you can use a different popup view or call a custom view with different text element.

If possible please elaborate your requirement with screenshot.

Regards,

Saurav