28
Views
5
Comments
List update by block function
Application Type
Reactive

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?

2020-07-21 19-28-50
Rajat Agrawal
Champion

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:

  • Refresh an Aggregate or Data Action that depends on that input parameter.
  • Recalculate a variable that depends on the input parameter


Hope this helps you!!


Regards,

Rajat

UserImage.jpg
Md Mansur

HI @_loiolapaulo 

I have attached woking oml file so please go throgh this:

Thanks

Md Mansur

BookmarkWithScreenRef.oml
2024-04-18 13-51-30
_loiolapaulo

Hi @Md Mansur

This way worked but I didn't quite understand the logic of how it was done, could you describe it?

UserImage.jpg
Md Mansur

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.  


Thanks

Md Mansur

2024-10-12 12-11-20
Kerollos Adel
Champion

Hallo @_loiolapaulo  you can check the attachment 

BookMark.oml
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.