I have a main screen with a bookmark function that runs when you click on the block, but the bookmark list doesn't update without reloading the page.
How can I make the favorites list update without having to refresh the page?
Hi @_loiolapaulo,
Can you please refer this link for more 'webblock' usage:
https://success.outsystems.com/documentation/11/building_apps/application_logic/screen_and_block_lifecycle_events/
On Parameters Changed
The On Parameters Changed is an event handler only for Blocks that runs after the parent Screen or Block changes an input of the Block. In case you have a Block inside another Block and a change of an input of the outside Block affects an input of the nested Block, the On Parameters Changed event handler of the outer Block runs before the same event of the nested Block. You can use this event handler to adapt the Block to the input parameter changes, such as to update variables or rerun Aggregates and Data Actions.
Use cases you can implement with this event handler:
Hope this helps you!!
Regards,
Rajat
HI @_loiolapaulo
I have attached woking oml file so please go throgh this:
Thanks
Md Mansur
Hi @Md Mansur
This way worked but I didn't quite understand the logic of how it was done, could you describe it?
Point-1;
Create a Screen and In this screen I have a local variable name is (Name) and By default Value is Blank
Point-2:
Create a Block and this Block I have a button when a Person Click this Button You Can Call a Event like this:
In event I have passed the Name Value As a Input and we have handle this event on Home screen like this:
Via this ways when can Update Screen Name Local variable Via Block and not need to Refresh Screen
Block Event Main Use Case:
An event is an element that allows a block to interact with its parent element by notifying it that a particular event has occurred.
Hallo @_loiolapaulo you can check the attachment