Skip to content

Working with children tabs

ChildrenTabs are dynamically reloaded at runtime, i.e. they are not yet available at the beginning of a script execution (so-called Lazy-Loading).

This means that before we can change something on the ChildrenTabs, we have to wait for them to be created.

Wait for a single tab

NEW since 2023/05/13

1
2
3
4
// file: hooks/TABLENAME-dv.js
AppGiniHelper.DV.getChildrenTabs().waitForTab("TABLENAME", "FIELDNAME", function(tab) {
    console.log(tab);
}):

Iterate through all tabs

The forEach function automatically waits for tabs.

1
2
3
4
// file: hooks/TABLENAME-dv.js
AppGiniHelper.DV.getChildrenTabs().forEach(function(tab) {
    console.log(tab);
});

See also