Is it possible to detect (in a form event method) if the form is being loaded into a tabpanel of a parent form?
I guess you can use currentcontroller.getName() to get the main formname and compare that with controller.getName().
Hope this helps.
too easy,
I thought I had already tried it, but it seems I hadn’t, thanks!
Hi guys, I need the same, but I can’t use currentcontroller, because the form, where the tabpanel is on, is not the currentcontroller (the form is loaded into a splitpanel again)
So form A is loaded in a tabpanel on form B (and sometimes on form C, D, E etc…)
I need to know on which form A is loaded in tabpanel (B, D, E, etc…)
any ideas??
I just use a global var and set it on the OnShow each time I enter a given Tab/Form. Works fine.
I dont get it.
how do you detect, that Form A, is loaded in a tabpanel on form B?
I load my global var in three possible places:
- OnLoad Event to get initial context for the global
- OnShow Event (case: traps user changes and update global var)
- Custom code (case: if I programmatically change what form is housed by a given tab panel)
Maybe I misunderstood your question/situation …
yes I think so
I simple can’t know, that form A, is loaded in a tabpanel on form B.
We are gonna use form A in all kinds of other forms (in a tabpanel)
sometimes set fixed, or set by method.
Okay … I don’t fully understand your scenario … I thought there was perhaps a common point when/where a Form is loaded and a global var could be set (in my case I went with a global that showed the current tab panel and another one for the form … in effect, it became a “listener” for the current tab container and form independent of everything else.
Hope it works out ok
Michael
No, I just spoke to Jan Blok, by chat, and he is confirming that it is not possible right now, what I want.
I have filed a feature request into the support system