[Event System] Triger event from one webblock to another webblock

Forge Component
(39)
Published on 2019-06-11 by Leonardo Fernandes
39 votes
Published on 2019-06-11 by Leonardo Fernandes

Good afternoon, I have a doubt regarding the events, if it is necessary to contain the destination container id how can I send an event to another webblock if I can not access the id of the container to which I want to send the event?


1 - WebBlock1

2- Ok button action

3- Trigger definition

4 - WebBlock2

5- EventHandler in WebBlock2


Hello Jorge,

Can you please send that example to have a look on that?


Thanks.


BR

Luis

Jorge Rodrigues wrote:

Luís Cardoso wrote:

Hello Jorge,

Can you please send that example to have a look on that?


Thanks.


BR

Luis

Hello Luís,

Attached to the application files.


Thank you.

Jorge Rodrigues

Hello Luís,

Attached to the application files.


Thank you.

Jorge Rodrigues


Solution

Hello Jorge,

You should call the action GetEventHandlers to get the Id of the event from Webblock2 and pass it to Webblock1.

Please see the attachment OML. 

Hope it helps!

BR,

Luis

Solution

Luís Cardoso wrote:

Hello Jorge,

You should call the action GetEventHandlers to get the Id of the event from Webblock2 and pass it to Webblock1.

Please see the attachment OML. 

Hope it helps!

BR,

Luis


Hello Luís,


Thanks for the help, I applied as you said and it worked.


Jorge Rodrigues