Activate child tab

Version 2020/10

By default, the first visible child tab will be activated on load of Detail View. Sometimes it is useful to open a different tab. Using the new activate() function you can do so.


// file: hooks/TABLENAME-dv.js
var dv = AppGiniHelper.DV;

Please note that subtablename is the name of the table and not the label/caption of the tab itself.


Calling dv.getChildrenTabs().activate("notes"); in hooks/TABLENAME-dv.js activates the child-tab containing notes (DE: Notizen).


You can also use activate() function depending on conditions, not only on load. For example if the records has a certain status, it is important to fill out fields on a certain tab.

See also

Do you like it?