thanks this is what i exactly did in my tabulator. but individually it is working. but my aim if user is admin it will hide column if other than admin means i want to hide another column.
[
{
"id": "74c40cd627e77aca",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": "",
"env": []
},
{
"id": "ca04f55efd2044b0",
"type": "ui-tabulator",
"z": "74c40cd627e77aca",
"name": "",
"group": "9951c110473fa414",
"initObj": "{\n \"height\": 400,\n \"layout\": \"fitColumns\",\n \"columns\": [\n {\"field\": \"id\", \"visible\": false},\n {\"title\": \"Name\", \"field\": \"name\" ,\"hozAlign\": \"left\"},\n {\"title\": \"Age\", \"field\": \"age\", \"hozAlign\": \"center\",\"visible\": true},\n {\"title\": \"Gender\", \"field\": \"gender\", \"hozAlign\": \"center\"},\n {\"title\": \"Occupation\", \"field\": \"occupation\", \"hozAlign\": \"left\"},\n {\"title\": \"City\", \"field\": \"city\",\"hozAlign\": \"left\"}\n ],\n \"data\": [\n {\"id\": 1, \"name\": \"John Brown\", \"age\": 30, \"gender\": \"Male\", \"occupation\": \"Engineer\", \"city\": \"New York\"},\n {\"id\": 2, \"name\": \"Betty Clark\", \"age\": 25, \"gender\": \"Female\", \"occupation\": \"Designer\", \"city\": \"Los Angeles\"},\n {\"id\": 3, \"name\": \"Michael White\", \"age\": 40, \"gender\": \"Male\", \"occupation\": \"Teacher\", \"city\": \"Chicago\"},\n {\"id\": 4, \"name\": \"Susan Green\", \"age\": 32, \"gender\": \"Female\", \"occupation\": \"Nurse\", \"city\": \"Houston\"},\n {\"id\": 5, \"name\": \"Tom Black\", \"age\": 28, \"gender\": \"Male\", \"occupation\": \"Lawyer\", \"city\": \"Phoenix\"},\n {\"id\": 6, \"name\": \"Linda Grey\", \"age\": 35, \"gender\": \"Female\", \"occupation\": \"Chef\", \"city\": \"Philadelphia\"},\n {\"id\": 7, \"name\": \"Kevin Brown\", \"age\": 29, \"gender\": \"Male\", \"occupation\": \"Developer\", \"city\": \"San Antonio\"},\n {\"id\": 8, \"name\": \"Emma White\", \"age\": 26, \"gender\": \"Female\", \"occupation\": \"Data Analyst\", \"city\": \"San Diego\"},\n {\"id\": 9, \"name\": \"James Blue\", \"age\": 42, \"gender\": \"Male\", \"occupation\": \"Architect\", \"city\": \"Dallas\"},\n {\"id\": 10, \"name\": \"Mary Yellow\", \"age\": 37, \"gender\": \"Female\", \"occupation\": \"Doctor\", \"city\": \"San Jose\"}\n ]\n}\n",
"maxWidth": "70em",
"events": "",
"order": 1,
"multiUser": false,
"validateRowIds": false,
"themeCSS": "",
"themeFile": "",
"tblDivId": "",
"printToLog": false,
"width": 0,
"height": 0,
"x": 690,
"y": 280,
"wires": [
[
"f01c7a86855919e8"
]
]
},
{
"id": "1621c5074273825e",
"type": "inject",
"z": "74c40cd627e77aca",
"name": "",
"props": [
{
"p": "tbCmd",
"v": "hideColumn",
"vt": "str"
},
{
"p": "tbArgs",
"v": "[\"age\"]",
"vt": "jsonata"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"x": 90,
"y": 260,
"wires": [
[
"0f5341a99ec4ba46"
]
]
},
{
"id": "f01c7a86855919e8",
"type": "debug",
"z": "74c40cd627e77aca",
"name": "debug 2581",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 730,
"y": 220,
"wires": []
},
{
"id": "c90d3a61be398bde",
"type": "function",
"z": "74c40cd627e77aca",
"name": "function 94",
"func": "msg = {\n tbCmd: 'hideColumn',\n tbArgs: ['age']\n}\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 390,
"y": 220,
"wires": [
[
"ca04f55efd2044b0"
]
]
},
{
"id": "8604c80709f3e7f5",
"type": "function",
"z": "74c40cd627e77aca",
"name": "function 95",
"func": "msg = {\n tbCmd: 'hideColumn',\n tbArgs: ['city']\n}\nreturn msg;\n",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 390,
"y": 320,
"wires": [
[
"ca04f55efd2044b0"
]
]
},
{
"id": "0f5341a99ec4ba46",
"type": "switch",
"z": "74c40cd627e77aca",
"name": "",
"property": "_client.user.user",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "admin",
"vt": "str"
},
{
"t": "neq",
"v": "admin",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 232,
"y": 263,
"wires": [
[
"c90d3a61be398bde"
],
[
"8604c80709f3e7f5"
]
]
},
{
"id": "9951c110473fa414",
"type": "ui-group",
"name": "tablehide",
"page": "c0382248f2f34bf7",
"width": "12",
"height": "1",
"order": 1,
"showTitle": true,
"className": "",
"visible": "true",
"disabled": "false",
"groupType": "default"
},
{
"id": "c0382248f2f34bf7",
"type": "ui-page",
"name": "table hide",
"ui": "64fc71361e24a0d0",
"path": "/page3",
"icon": "home",
"layout": "grid",
"theme": "default",
"breakpoints": [
{
"name": "Default",
"px": "0",
"cols": "3"
},
{
"name": "Tablet",
"px": "576",
"cols": "6"
},
{
"name": "Small Desktop",
"px": "768",
"cols": "9"
},
{
"name": "Desktop",
"px": "1024",
"cols": "12"
}
],
"order": 3,
"className": "",
"visible": true,
"disabled": false
},
{
"id": "64fc71361e24a0d0",
"type": "ui-base",
"name": "",
"path": "/dashboard",
"appIcon": "",
"includeClientData": true,
"acceptsClientConfig": [
"ui-iframe",
"ui-control",
"ui-template",
"ui-gauge",
"ui-chart",
"ui-slider",
"ui-form",
"ui-text-input",
"ui-number-input",
"ui-file-input",
"ui-button",
"ui-button-group",
"ui-dropdown",
"ui-radio-group",
"ui-switch",
"ui-text",
"ui-chart",
"ui-form",
"ui-number-input",
"ui-switch",
"ui-table",
"ui-gauge",
"ui-markdown",
"ui-iframe",
"ui-tabulator",
"ui-radio-group",
"ui-dropdown",
"ui-button-group",
"ui-file-input"
],
"showPathInSidebar": false,
"showPageTitle": false,
"navigationStyle": "icon",
"titleBarStyle": "fixed"
}
]
this is my flow.if i login with admin it will .hide age column others means it will hide city column. give me some guidance