Author Message
MichaelNorman
Joined: Jun 3, 2015
Messages: 448
Offline
Hello team. When calling a sub dialog from a root application, does the sub dialog need to have an onDisconnect handler or does the root application's onDisconnect get called when disconnecting from the sub dialog?
RossYakulis
Joined: Nov 6, 2013
Messages: 2652
Offline
You need a disconnect handler in the subdialog.
MichaelNorman
Joined: Jun 3, 2015
Messages: 448
Offline
Since you can only have one return in a sub module, how do you return that disconnect state back to the parent application? Do you need to create an event to return or do it with variables? Or is OD smart enough to know that the call has disconnected when it returns to the parent application?
RossYakulis
Joined: Nov 6, 2013
Messages: 2652
Offline
Use there return event when you catch the disconnect and then the disconnect is rethrown in the main.
MichaelNorman
Joined: Jun 3, 2015
Messages: 448
Offline
Are you speaking of a custom disconnect event? I don't see a way to return the built in onDisconnect event?

The only way I can see to use Return Event is from within a catch in the Root Document, but that would require a custom event yes?

RossYakulis
Joined: Nov 6, 2013
Messages: 2652
Offline
See the attachement
  • [Thumb - Capture.PNG]
[Disk] Download
Go to:   
Mobile view