Skip to content

Hide colums in child-tab

Code

1
2
3
4
5
6
7
8
9
// file: hooks/TABLENAME-dv.js

var dv = AppGiniHelper.DV;

// hide a single column named "column1" from children tab "subtable1" 
dv.getChildrenTabs().hide("subtable1", "column1");

// hide multiple columns from children tab "subtable2"  
dv.getChildrenTabs().hide("subtable2", ["column1", "column2", "..."]);

Sample

Child-tab tasks (DE: Aufgaben) contains four columns I'd like to hide: created_on, `created_by, modified_on and modified_by.

1
2
3
4
// file: hooks/TABLENAME-dv.js
var dv = AppGiniHelper.DV;
var tabs = dv.getChildrenTabs();
tabs.hide("tasks", ["created_on", "created_by", "modified_on", "modified_by"]);

Those four columns have been hidden.

See also