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; dv.getChildrenTabs().activate("subtablename");
Please note that
subtablename is the name of the table and not the label/caption of the tab itself.
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.
Do you like it?
We can only get better if you give us constructive suggestions for improvement. Just voting "No" without giving reasons or suggestions is not helpful and cannot lead to changes. If you have been searching for a completely different solution than the subject says, this article can not be and will not be helpful for you. In these cases you should consider not to vote. If something is not working as expected with your code, please post your detailed bugreport in the forum and make use of the free community support. This here is website feedback, only.