Get Data Record List from PopUp Editor Widget

Hi Everyone,

Is there a way that i can get data record list from pop up widget?


ParentRecList  = local variable in parent screen (data type is __ Record List)

PopUpRecList  = local variable in popup screen (data type is __ Record List), source record list of Table in Parent screen


- on pop up screen I need to input Date(From-To) and Time(From-To) then by clicking the button it will add(append) data to PopUpRecList then the pop up closed.

- on parent screen notify action it should set the PopUpRecList to the ParentRecList then refresh the table records.


Thanks in advance.

Astral

Hi Astral,

Unfortunately, this is not possible. Pop-ups are screens in their own right, and don't share any data with the "calling" screen. If you want to pass data, you can do so via a Notify, and/or store data in the database.

Kilian Hekhuis wrote:

Hi Astral,

Unfortunately, this is not possible. Pop-ups are screens in their own right, and don't share any data with the "calling" screen. If you want to pass data, you can do so via a Notify, and/or store data in the database.


Thank you for your quick response.

One idea is to serialize record list to JSON and put JSON into PopupNotify message...

Then on parent screen, on PopupNotify event, retrieve the JSON then deserialize it back into record list.

Astralpro wrote:

Hi Everyone,

Is there a way that i can get data record list from pop up widget?


ParentRecList  = local variable in parent screen (data type is __ Record List)

PopUpRecList  = local variable in popup screen (data type is __ Record List), source record list of Table in Parent screen


- on pop up screen I need to input Date(From-To) and Time(From-To) then by clicking the button it will add(append) data to PopUpRecList then the pop up closed.

- on parent screen notify action it should set the PopUpRecList to the ParentRecList then refresh the table records.


Thanks in advance.

Astral

Hi Astralpro,


You can do by using JSON Serialize and JSON Deserialize. Create one structure in popup screen with like structure attribute is same as Entity attribute. Then create one local variable in popup screen and has data type is list of structure and Serialize it in JSON and pass that in Popup_Notify & Get Value in Popup_GetMessage and Deserialize it.


I have kept OML with me. if required let us know.


Hope it helps.


Cheers.

Thanks & Regards,

Jay Gohel


Jay Gohel wrote:

Astralpro wrote:

Hi Everyone,

Is there a way that i can get data record list from pop up widget?


ParentRecList  = local variable in parent screen (data type is __ Record List)

PopUpRecList  = local variable in popup screen (data type is __ Record List), source record list of Table in Parent screen


- on pop up screen I need to input Date(From-To) and Time(From-To) then by clicking the button it will add(append) data to PopUpRecList then the pop up closed.

- on parent screen notify action it should set the PopUpRecList to the ParentRecList then refresh the table records.


Thanks in advance.

Astral

Hi Astralpro,


You can do by using JSON Serialize and JSON Deserialize. Create one structure in popup screen with like structure attribute is same as Entity attribute. Then create one local variable in popup screen and has data type is list of structure and Serialize it in JSON and pass that in Popup_Notify & Get Value in Popup_GetMessage and Deserialize it.


I have kept OML with me. if required let us know.


Hope it helps.


Cheers.

Thanks & Regards,

Jay Gohel


Can you share your oml??