Hello All,

Currently I am trying to check the selected records in a webblock and subsequently check if the selected records are valid or invalid in the parent's screen action. How could I achieve that?


Referring to the attached screenshot above, the Document to upload section means the active/current uploaded docs, and the Uploaded Docs By User means the existing docs that have been uploaded and saved for that request. The concern is that how could I check for the selected records under Uploaded Docs By User section and knowing them in parent's screen action?

Hello Junior,


The only way to send data outside from Block to parent is event handler. You will have to create an event in your block, trigger this event when you are click on checkbox and in parent block/screen create a handler to catch the request and do your changes.


Regards,

Sanjay

Sanjay Kumar Sahu wrote:

Hello Junior,


The only way to send data outside from Block to parent is event handler. You will have to create an event in your block, trigger this event when you are click on checkbox and in parent block/screen create a handler to catch the request and do your changes.


Regards,

Sanjay

I totally agree with Sanjay that the only way is to trigger the event from block by a handler on the main screen 

 

Sanjay Kumar Sahu wrote:

Hello Junior,


The only way to send data outside from Block to parent is event handler. You will have to create an event in your block, trigger this event when you are click on checkbox and in parent block/screen create a handler to catch the request and do your changes.


Regards,

Sanjay

 Yes agree, this the only way,

find below document that will help you

https://success.outsystems.com/Documentation/11/Developing_an_Application/Design_UI/Reuse_UI/Use_Events_to_Propagate_Changes_From_a_Block_to_the_Parent 


Regards

Rahul