# change in behaviour of triggering of 'on show' method?

**URL:** <https://forum.servoy.com/t/change-in-behaviour-of-triggering-of-on-show-method/5912>\
**Category:** Classic Servoy\
**Created:** [May 12, 2006, 9:19am UTC](https://forum.servoy.com/t/change-in-behaviour-of-triggering-of-on-show-method/5912 "2006-05-12T09:19:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![drookwood](https://avatars.discourse-cdn.com/v4/letter/d/ecae2f/32.png) [@drookwood](https://forum.servoy.com/u/drookwood)\
**Post date:** [May 12, 2006, 9:19am UTC](https://forum.servoy.com/t/change-in-behaviour-of-triggering-of-on-show-method/5912/1 "2006-05-12T09:19:46Z")

</div>

Only just noticed this and wanted to confirm:

Until recently, if a form in dialog is shown over form A which has an ‘on show’ method attached, the form A ‘on show’ method was re-triggered when the dialog was closed. So I built in a global flag which had to be set whenever a form in dialog was shown so that I could prevent the re-triggering of form A’s ‘on show’ method.

Now this appears not to happen - i.e. closing the dialog does not appear to re-trigger the ‘on show’ method - am I correct about this behaviour change?

---

<div class="post-metadata">

**Author:** ![Harjo](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/harjo/32/4873_2.png) [@Harjo](https://forum.servoy.com/u/Harjo)\
**Post date:** [May 12, 2006, 10:26am UTC](https://forum.servoy.com/t/change-in-behaviour-of-triggering-of-on-show-method/5912/2 "2006-05-12T10:26:12Z")

</div>

in what version?

in 2.2.5 the onShow is still triggered, when a FID is closed.

I think in 3.0 this behaviour is changed.

---

<div class="post-metadata">

**Author:** ![drookwood](https://avatars.discourse-cdn.com/v4/letter/d/ecae2f/32.png) [@drookwood](https://forum.servoy.com/u/drookwood)\
**Post date:** [May 12, 2006, 11:12am UTC](https://forum.servoy.com/t/change-in-behaviour-of-triggering-of-on-show-method/5912/3 "2006-05-12T11:12:34Z")

</div>

Sorry - I should have been more accurate! - for the main form (controller) you are correct - but for a form in a tab panel which also has an onShow, this no longer triggers when the FID is closed. Maybe I’m wrong but I thought that previously the onShow for the form in the tab also triggered its own onShow when a FID was closed?

---

<div class="post-metadata">

**Author:** ![drookwood](https://avatars.discourse-cdn.com/v4/letter/d/ecae2f/32.png) [@drookwood](https://forum.servoy.com/u/drookwood)\
**Post date:** [May 12, 2006, 11:13am UTC](https://forum.servoy.com/t/change-in-behaviour-of-triggering-of-on-show-method/5912/4 "2006-05-12T11:13:37Z")

</div>

BTW - I’m using  
Servoy Developer  
Version R2 2.2.5-build 337  
Java version 1.5.0\_06-64 (Mac OS X)

---

<div class="post-metadata">

**Author:** ![patrick](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@patrick](https://forum.servoy.com/u/patrick)\
**Post date:** [May 12, 2006, 12:28pm UTC](https://forum.servoy.com/t/change-in-behaviour-of-triggering-of-on-show-method/5912/5 "2006-05-12T12:28:07Z")

</div>

As far as I know, only the main form’s onShow will be fired. So if you have a form A with a tab panel that shows form B and you close a FID, the onShow of form B will never be fired. I needed to make workarounds for this, so I am pretty sure about that. If that has been changed somehow, Servoy - please let us know!
