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.
Code
// 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.
Result
Calling dv.getChildrenTabs().activate("notes");
in hooks/TABLENAME-dv.js
activates the child-tab containing notes (DE: Notizen).
Tip
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?
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.
This is website feedback, only. This voting is not a support form nor ticket system.