Close Dialog from Subform

62 views
Skip to first unread message

Luca Bach

unread,
Aug 5, 2025, 4:26:28 AMAug 5
to Migrated By Firefly

Hi everyone,

I have a dialog that contains a subform. Inside the subform, there's a button that performs several actions and is supposed to close the dialog at the end. However, Command.Exit doesn't have any effect in this context.


Is there an alternative way to close the dialog?

Noam Honig

unread,
Aug 5, 2025, 4:47:23 AMAug 5
to Luca Bach, Migrated By Firefly
Try sending Command.Exit twice (to also close the dialog, not just exit the subform)

If that doesn't work - please create a small reproduction and share it with me


Noam Honig  
Founder & CEO


--
You received this message because you are subscribed to the Google Groups "Migrated By Firefly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to migrated-by-fir...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/migrated-by-firefly/055a0b65-bede-469e-ae2b-412081e97167n%40googlegroups.com.
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted

Lawrence Fisher

unread,
Aug 5, 2025, 4:17:08 PMAug 5
to Luca Bach, Migrated By Firefly
Have you tried placing the Exit button on the parent form, outside of the subform?

On Tue, Aug 5, 2025 at 11:26 AM Luca Bach <adcstil...@gmail.com> wrote:
--
You received this message because you are subscribed to the Google Groups "Migrated By Firefly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to migrated-by-fir...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/migrated-by-firefly/055a0b65-bede-469e-ae2b-412081e97167n%40googlegroups.com.


--
Sincerely

Lawrence
Award winning philatelic exhibit
Author of "Kill Me Now!"
Buy me a coffee please
https://stampandstories.blogspot.com
My YouTube channel

Message has been deleted
Message has been deleted

Luca Bach

unread,
Aug 5, 2025, 4:17:17 PMAug 5
to Migrated By Firefly
Hey, 
executing Command.Exit twice had no effect. I've attached a small example.

Project.zip
Message has been deleted

Noam Honig

unread,
Aug 5, 2025, 4:22:10 PMAug 5
to Luca Bach, Migrated By Firefly
I got the sample - will have more time to look at it tomorrow.

I think part of the problem is that the parent controller doesn't have any column to park on - than it simply exists the subform and returns to it.

You can maybe add something parkable on the parent controller  - or send it's exit method to the child.

I'll take another look at the code tomorrow

Noam Honig  
Founder & CEO

On Tue, Aug 5, 2025 at 11:17 PM Luca Bach <adcstil...@gmail.com> wrote:
Hey, 
executing Command.Exit twice had no effect. I've attached a small example.

no...@fireflymigration.com schrieb am Dienstag, 5. August 2025 um 10:47:23 UTC+2:

Lawrence Fisher

unread,
Aug 6, 2025, 11:37:51 AMAug 6
to Noam Honig, Luca Bach, Migrated By Firefly
If the exit button was on the parent, it would solve the problem (IMO)

Lawrence

Luca Bach

unread,
Aug 6, 2025, 3:28:13 PMAug 6
to Migrated By Firefly
Yes, it works with the button on the parent, but that wasn’t the goal. 
The idea was to use an already encapsulated dialog as a subform. 

By adding a parkable element to the parent, as you described, Noam, and combining it with two Command.Exit calls, it now works.

Reply all
Reply to author
Forward
0 new messages