I want to pass values from a checkbox to an popup which is used in a different block. Can you suggest the best practice to achieve it.
Hello @Tushar Verma
You mean, you want to pass Boolean values form one block to another. Am I right? If not, can you please elaborate the question bit wisely?
As of now, based on my understanding for your expectation,
If the "Popup block" is within that "Checkbox block", in that case you can very well pass the values via Input parameter.
Hope it helps.
Regards,
Nandhakumar S.
Hi @Tushar Verma
If your checkbox is in screen which is using web block, then in bind onChange event handler with your checkbox, and assign the selected value('s) to a local variable.
Then create an input parameter in your block and pass your local variable value there, Inside block there is an event OnParameterChanged so if your checkbox value changed then you can handle these event in OnParameterChanged handler action
I hope it'll help you.
ThanksDeep
Hi @Tushar Verma ,
As I understand,
There is a screen which contains two blocks(Block A which contains checkbox & Block B which contains popup). And you want to pass the checkbox value from Block A to Block B.If yes then perform the below steps:>Create a local variable on the screen for holding the checkbox value.>Create a event with input parameter and call the event at checkboxOnChange which will pass the checkbox value to the event. Inside Block A.>Create a event handler on screen for the event of Block A, that will assign the value return by event to the local variable of the screen.>Create a input parameter inside Block B.>Pass the screen local variable to Block B as parameter.>Then you can use input parameter of Block B inside popup or anywhere inside Block B.RegardsKrishnanand Pathak
Hi @Krishnanand Pathak ,
Let's say that block B (which has the checkbox selected value) is inside block A as a popup. Then in that Scenario what should be done.
As I've already said, you can pass the values via input parameter. If the Block B is nested within Block A.
Hi @Tushar Verma, If the Block B (Which has checkbox inside the popup) is inside the Block A.And you want the checkbox value from Block B to Block A.Then you can use the event for getting checkbox value from Block B to Block A.For more details about Blocks and Events check the below linkhttps://www.outsystems.com/training/courses/121/blocks-and-events/RegardsKrishnanand Pathak