Dynamic Tabs
Sample JSON config for grid tabs, including a tab shown only when a record condition matches.
Paste into Tabs Config. of GM - Dynamic Tabs. A tab may carry a visibility expression on the fields of the current record (same syntax as filters); the tab shows only when it evaluates true.
[
{
"label": "Contacts",
"components": [
{
"component": "gmpkg:ListViewDataGridComponent",
"attributes": {
"relatedObjectName": "Contact",
"listViewName": "AllContacts",
"canCreate": false,
"canUpdate": true,
"canDelete": true,
"canFilter": true,
"recordDetail": true,
"inline": true,
"showBorder": true,
"showColumnBorder": true
}
}
]
},
{
"label": "Accounts",
"components": [
{
"component": "gmpkg:ListViewDataGridComponent",
"attributes": {
"relatedObjectName": "Account",
"listViewName": "AllAccounts",
"canCreate": false,
"canUpdate": true,
"canDelete": true,
"canFilter": true,
"showBorder": true,
"inline": true
}
}
],
"visibility": {
"BillingCountry": {
"operator": "=",
"value": "USA"
}
}
}
]Last updated
Was this helpful?