Unable to access tab panel

Hi ,
I am facing some kind of peculiar problem.

I have a form(mainFrm) with tabPanel named “tab1” and the tabPanel contains one form named “frm1”.
onShow event of the “mainFrm” I want to make the tabPanel(tab1) invisible.

But the problem is that :
When I trying to access that tabPanel(tab1) programatically, I am getting result undefined.

ex: application.output(elements.tab1);
CONSOLE :
Undefined

But the strange thing is that, It is working fine when I removed the form(frm1) from the tabPanel(tab1)

I couldn’t understand what is happening. :roll: :roll:

please make a sample solution that demonstrates that and attach it to a jira issue.

tab1 element should always be there in an onshow of the form that holds it.