getTabRelationNameAt returns null
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
I am adding multiple tabs from multiple new forms at runtime. For each tab I create a new relation with a unique name. The display of the tab seems to works correctly-> the related records display
When I loop through the tabs later in the program the get tab relation funtion returns null
Even if I try to get the relation name immediately after the addTab, I get a null.
My tab creation:
the debugger does show a value JSrelation for variable rel
but
return null
When I loop through the tabs later in the program the get tab relation funtion returns null
Even if I try to get the relation name immediately after the addTab, I get a null.
My tab creation:
- Code: Select all
elements[tabname].addTab(_form,ctab,ctabdisplay,null,null,null,null,rel,ntabnum)
forms[_form].controller.recreateUI()
forms[_form].controller.loadAllRecords()
the debugger does show a value JSrelation for variable rel
but
- Code: Select all
elements[tabname].getTabRelationNameAt(ntabnum)
return null