I am struggling to find the right setup for this. I have an embedded module that is essentially a form that submits an action. When not embedded, I simply use the ‘On Successful Submission” event trigger to close the overlay.
Now, the overlay presents an embedded module, and I want to simply close the overlay on successful submission. BUT, that “Close Overlay” event needs to happen in the parent module.
I have tried setting variables in the parent module from the embedded module, but I cannot seem to work out a way to get an event to trigger and just close the overlay!
Any ideas would be appreciated. I feel like I am missing something here…
We have some docs on this here: https://www.palantir.com/docs/foundry/workshop/embedding-workshop-modules-overview/#communicating-across-embedded-modules
The rough idea is you can have a boolean variable that controls the overlay state in the parent module that is passed to the child module. Then in the child instead of configuring a “close overlay” event, you can configure a “set variable value” event where you set this shared boolean variable to false.
We’re tracking some internal FRs for the ability to group events and pass events through the module interface, which would let you pass a “close overlay” event from the parent to the child for the child to call, but this is not a feature that exists today.
Thanks for the quick response. I have done the set variable part. I am hung up on closing the overlay with the child module based on the change of that boolean parameter in the parent module.
I have tried to make it part of different types of widgets that give me events to trigger based on the change in variable, but I haven’t succeeded.
That’s part of why I say I feel like I am ‘missing something here’ or at least overlooking something. I feel like I should be able to get the overlay closed given a number of parameters.
Is there tip/trick that is easily applicable (ideally in a hidden way) to trigger and event based on the change of a boolean value? – I feel a face-palm coming…