Hello!
I have this problem in my screen in Reactive:
I have a Screen with 2 Web Blocks (WB_Top and WB_Bottom), and the WB below has a Popup that is another Web Block (WB_ADD_and_Edit).
The thing is, in WB_Bottom I have a DropdownSearch with a list of People only showing the eMail of each person and below the DropdownSearch I have a link where it opens you the WB_ADD_and_EDIT popup to add a new Person or to Modify the current person.
I want to refresh the data from the DropdownSearch when I close the popup WB_ADD_and_EDIT,how could I do this without clicking F5???
Thanks in advance!!
Hi @Jonas Alvarez Harding
Inside the (WB_ADD_and_Edit) when you close the popup, inside the close logic or create logic create an event. (Note: We have created the event in child WB_ADD_and_Edit and now it will be handled by parent WB_Bottom .)
Now inside the parent WB_Bottom you might be seeing an error or warning to handle the event create for the clild block WB_ADD_and_Edit. Create an action for the same and inside int drag the refresh list aggregate. This will refresh the list now and the newly created record will be reflected in the list. Let me know if you need any further help.
THanks Shlok Agrawal
It worked! I was having a headache, thanks a lot!!
Hi @Jonas Alvarez Harding,
Can you please your sample OML file, so will check and revert back to you.
Notify Web Block to Screen.
Thanks,
AV
Hi @Jonas Alvarez Harding ,
Follow the below steps:
1)Create an Event in "WB ADD and EDIT". Rename the Event as "RefreshEvent".Use the "RefreshEvent" event after create or update is completed.
2)Now create a handler in "WB_Bottom" for the "RefreshEvent" Event.
3)In that handler refresh your aggregate.
I hope this will work!
Thanks & Regards,
Sudip Pal
Hi Jonas,
Follow these steps;
And you are all set.
Greetings,
Vincent
Clear the source list of the DropdownSearch widget when popup will disappear and populate source list again.
Regards,
Ravi
Hello Jonas,
You need to use Event to make this happen,
So in your WB_ADD_and_Edit block add event on the save button and in your WB_Bottom block where your drop down exists, add handler for that specific event and now refresh the aggregate you are using for drop down.
You will get the desired output,
You can also have a look at this Event - Handler document
https://success.outsystems.com/documentation/11/developing_an_application/design_ui/reuse_ui/use_events_to_propagate_changes_from_a_block_to_the_parent/
Hope this helps,
Komal