Untitled

 avatar
unknown
plain_text
2 months ago
5.6 kB
5
Indexable
{     "tables": [         {             "id": "Product",             "name": "Product",             "tableName": "rfid_products",             "fields": [                 {                     "id": "id",                     "label": "Asset Id",                     "type": "IdGeneratorField",                     "format": "PID-??????"                 },                 {                     "id": "product_name",                     "label": "Name",                     "type": "TextField",                     "placeholder": "Enter the name of the product",                     "validator": {                         "type": "DuplicateValueValidator",                         "mandatory": true                     }                 },                 {                     "id": "make",                     "label": "Make",                     "type": "TextField",                     "placeholder": "Enter the make of the product",                     "validator": {                         "type": "DefaultValidator",                         "mandatory": true                     }                 },                 {                     "id": "model",                     "label": "Model",                     "type": "TextField",                     "placeholder": "Enter the model",                     "validator": {                         "type": "DefaultValidator",                         "mandatory": true                     }                 },                 {                     "id": "year",                     "label": "Year",                     "type": "TextField",                     "placeholder": "Enter the year",                     "validator": {                         "type": "DefaultValidator",                         "mandatory": true                     }                 },                 {                     "id": "type",                     "label": "Type",                     "type": "Radio",                     "options": [                         {                             "value": "Traceable",                             "label": "Traceable"                         },                         {                             "value": "Non-Traceable",                             "label": "Non-Traceable"                         }                     ],                     "validator": {                         "type": "DefaultValidator",                         "mandatory": true                     }                 },                 {                     "id": "catalog_id",                     "label": "Product Category",                     "type": "MultiSelectBox",                     "optionsBinder": {                         "formDefId": "catalog",                         "idColumn": "id",                         "labelColumn": "name"                     },                     "validator": {                         "type": "DefaultValidator",                         "mandatory": true                     }                 },                 {                     "id": "details",                     "label": "Details",                     "type": "TextArea",                     "placeholder": "Enter details here"                 },                 {                     "id": "datasheet",                     "label": "Datasheet",                     "type": "FileUpload"                 },                 {                     "id": "image",                     "label": "Image",                     "type": "FileUpload"                 }             ]         }     ] }, {   "form": {     "id": "Inventory",     "name": "Inventory",     "tableName": "rfid_inventory",     "bindings": {       "loadBinder": {         "className": "org.joget.apps.form.lib.WorkflowFormBinder",         "properties": {}       },       "storeBinder": {         "className": "org.joget.apps.form.lib.WorkflowFormBinder",         "properties": {}       }     },     "fields": [       {         "type": "id_generator",         "label": "ID",         "id": "id",         "format": "INVID-??????",         "workflowVariable": ""       },       {         "type": "select",         "label": "Product",         "id": "product_id",         "required": true,         "workflowVariable": "",         "options": {           "source": "Product",           "idColumn": "id",           "labelColumn": "product_name",           "emptyOption": true,           "emptyLabel": "Please Select"         }       },       {         "type": "text",         "label": "Serial No",         "id": "device_id",         "required": true,         "workflowVariable": "",         "validation": {           "duplicate": true         }       },       {         "type": "date",         "label": "Installation Date",         "id": "installation_date",         "workflowVariable": ""       },       {         "type": "text",         "label": "Additional Notes",         "id": "additional_notes",         "workflowVariable": ""       }     ],     "hiddenFields": [       {         "id": "batch_id",         "workflowVariable": ""       },       {         "id": "lat",         "workflowVariable": ""       },       {         "id": "lng",         "workflowVariable": ""       },       {         "id": "last_maintenance_date",         "workflowVariable": ""       }     ],     "subforms": {       "product": {         "formDefId": "Product_readonly",         "readonly": true,         "parentSubFormId": "product_id",         "loadBinder": {           "className": "org.joget.apps.form.lib.WorkflowFormBinder",           "properties": {}         }       }     }   } }
Editor is loading...
Leave a Comment