I want to pass values to the screen using an Event from a Block placed inside a List widget. When I try to trigger the Event within the Block and receive it on the screen side, the Handler's Action does not get triggered, possibly because the List is the parent of the Block. Is there a good way to achieve this?
Hi,
How are you triggering the event from Block? You should pass some input parameter to Block Event that can be handled by Screen Action (Used as Event Handler).
Please check below link:
https://success.outsystems.com/documentation/11/building_apps/user_interface/reuse_ui/use_events_to_propagate_changes_from_a_block_to_the_parent/
Hi @Taiki Arizono,
It is possible to share your OML .
Or may be you can try below steps hope that will help you in your issue.
Firstly delete your event and handler and publish it . After that create a new event with your input
and create Handler. Try this it's a simple trouble shoot, so many times its worked for me.
May be this will work for you.
Regards,
Rajat
There is another way,
You add a hidden button in block, that block will call an action.
In the parent screen, you use javascript to select the button by it's className, and call element.click() to execute the action. and vice versa you can call a button from block to parent by Javascript.