Updated schema to use internal data instead of API data.

This commit is contained in:
admin
2023-04-27 03:35:13 -07:00
parent a2ccc083fd
commit 6758ff7f4d
13 changed files with 691 additions and 32 deletions

View File

@ -11,11 +11,14 @@
<sys_created_by>admin</sys_created_by>
<sys_created_on>2023-01-29 13:12:10</sys_created_on>
<sys_id>8b21f27f97e061105838bfb3f153af5e</sys_id>
<sys_mod_count>19</sys_mod_count>
<sys_name>x_355681_fa.form.admin.settings.schema</sys_name>
<sys_package display_value="Fulfilment Automater" source="x_355681_fa">c04afa629713111093a8337e6253af6d</sys_package>
<sys_policy/>
<sys_scope display_value="Fulfilment Automater">c04afa629713111093a8337e6253af6d</sys_scope>
<sys_update_name>sys_properties_8b21f27f97e061105838bfb3f153af5e</sys_update_name>
<sys_updated_by>admin</sys_updated_by>
<sys_updated_on>2023-04-27 10:34:07</sys_updated_on>
<type>string</type>
<value>{&#13;
"display": "form",&#13;
@ -290,6 +293,27 @@
"type": "checkbox",&#13;
"input": true&#13;
},&#13;
{&#13;
"label": "Visible for Roles",&#13;
"widget": "choicesjs",&#13;
"tableView": true,&#13;
"multiple": true,&#13;
"dataSrc": "custom",&#13;
"data": {&#13;
"custom": "if(data._resources &amp;&amp; data._resources.roles){\n values = data._resources.roles;\n}"&#13;
},&#13;
"idPath": "name",&#13;
"valueProperty": "name",&#13;
"template": "&lt;span&gt;{{ item.name }}&lt;/span&gt;",&#13;
"key": "visibleForRoles",&#13;
"conditional": {&#13;
"show": true,&#13;
"when": "quickActions.taskUiAction",&#13;
"eq": "true"&#13;
},&#13;
"type": "select",&#13;
"input": true&#13;
},&#13;
{&#13;
"label": "Task",&#13;
"tableView": false,&#13;
@ -368,15 +392,9 @@
"widget": "choicesjs",&#13;
"tableView": true,&#13;
"multiple": true,&#13;
"dataSrc": "url",&#13;
"dataSrc": "custom",&#13;
"data": {&#13;
"url": "/api/x_355681_fa/fulfillment_automater/extended-tables/task",&#13;
"headers": [&#13;
{&#13;
"key": "",&#13;
"value": ""&#13;
}&#13;
]&#13;
"custom": "if(data &amp;&amp; data._resources){\n values = data._resources.taskTables\n}"&#13;
},&#13;
"idPath": "name",&#13;
"valueProperty": "name",&#13;
@ -390,8 +408,6 @@
"eq": "false"&#13;
},&#13;
"type": "select",&#13;
"selectValues": "result",&#13;
"disableLimit": false,&#13;
"input": true&#13;
}&#13;
]&#13;
@ -499,15 +515,9 @@
"widget": "choicesjs",&#13;
"tableView": true,&#13;
"multiple": true,&#13;
"dataSrc": "url",&#13;
"dataSrc": "custom",&#13;
"data": {&#13;
"url": "/api/x_355681_fa/fulfillment_automater/extended-tables/sc_cat_item",&#13;
"headers": [&#13;
{&#13;
"key": "",&#13;
"value": ""&#13;
}&#13;
]&#13;
"custom": "if(data._resources &amp;&amp; data._resources.scCatItemTables){\n values = data._resources.scCatItemTables;\n}"&#13;
},&#13;
"idPath": "name",&#13;
"valueProperty": "name",&#13;
@ -521,8 +531,6 @@
"eq": "false"&#13;
},&#13;
"type": "select",&#13;
"selectValues": "result",&#13;
"disableLimit": false,&#13;
"input": true&#13;
}&#13;
]&#13;