onShow property for forms

I have a form (list view) that is using a tab panel (within the header part) that contains a global field. When the form is loaded I would like to have the global field auto populated.

First question does the onShow property for the form shown withn the tab panel not run if the tab panel is within the header of a list view?

Here is my method for the form in the tab panel.

//This is the initialization method for this form.
globals.groupPopup=‘Subscribers’

Then I have also tried using the onShow for the form that is actually loaded. It looks like this.

//The subsMemberships is shown within a tab panel.
forms.subsMemberships.init();

Shouldn’t the onShow trigger any time the form is shown?

I’ve also tried the following
var initVal = ‘Subscribers’;
globals.groupPopup = initVal;

What am I doing wrong?

I’ve tested this and it seems to work fine.
Please read comments. If problems stays, you can also send me your solution.

I have a form (list view) that is using a tab panel (within the header part) that contains a global field.

Is this a textfield or other (combo, textarea etc)

First question does the onShow property for the form shown withn the tab panel not run if the tab panel is within the header of a list view?

shouldn’t matter.

Shouldn’t the onShow trigger any time the form is shown?

Yes indeed, and it doesn’t matter if the method resides inside the tabPanel form or the main form.
(Note: When browsing through records, “onShow” isn’t triggered(except on entry of the form of course) because you’re already inside the form. Use onRecordSelection for that.)