45
Views
3
Comments
How to Trigger a Block Event through Some Widgets
Application Type
Reactive
Service Studio Version
11.54.75 (Build 63578)

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? 

2024-09-09 08-44-46
BHUPENDRA SINGH

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/ 

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

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


2025-12-04 09-01-03
Kiet Phan
Champion

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.

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