259
Views
3
Comments
Pass values between blocks by event via input params
Question
Application Type
Reactive

Hi all,

I have two blocks (ex. block A and block B) and need to pass values from Block A to Block B by Event via input Parameters to show some values into our OutSystems widgets. So, how can I achieve this?

Please find the image that event looks like,


2023-01-26 16-03-24
Ana Agostinho
2023-04-16 15-25-31
Krishnanand Pathak

Hi @Chiranjeevi B ,

If you want to pass value from Block A to Block B.
Create local variables(like IsContainer or ProductId) and pass the variables to Block B.
Then Assign/change the those variable at event handler of Block A. which you are passing to Block B it will update the Block B.Based on value passed from Block A.

Regards
Krishnanand Pathak



2018-06-05 16-54-03
Maria da Graça Peixoto

Hi! 

In the parent screen , the action that handles event "Next" must update the varibles that are used as parameters values to BlockB. The BlockB must a action for the event "OnParametersChanged" that reacts to the new parameters values. 

Hope this helps

Graça 

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