adding pmdynaform lib folder

This commit is contained in:
Fernando Ontiveros
2025-04-04 12:19:34 +00:00
parent 64be540376
commit 28c36b5c91
452 changed files with 405833 additions and 0 deletions

View File

@@ -0,0 +1,823 @@
{
"name": "form-example",
"items": [
{
"type":"form",
"items":
[
[
{
"type": "title",
"colSpan": 12,
"name": "title",
"label": "PMDynaform 1 - Basic Fields"
}
],
[
{
"type": "button",
"id": "myModalButton",
"label": "Show window"
}
],
[
{
"type": "subtitle",
"colSpan": 12,
"name": "subtitle",
"label": "<textarea>Basic fields without validations"
}
],
[
{
"var_name": "plainVariable",
"var_uid": "752292886541b20d3325955025125925",
"dataType": "string",
"colSpan": 12,
"name": "users_1",
"id": "users_1",
"label": "Variable associated 1",
"defaultValue": "",
"required": false,
"hint": "",
"dependentFields": [],
"mode": "parent",
"options": [],
"type": "text"
}
],
[
{
"var_name": "plainVariable",
"var_uid": "752292886541b20d3325955025125925",
"dataType": "string",
"colSpan": 12,
"name": "users_1",
"id": "users_1",
"label": "Variable associated 2",
"defaultValue": "",
"required": false,
"hint": "",
"mode": "parent",
"type": "textarea"
}
],
[
{
"type": "form",
"colSpan": 12,
"name": "subform-name",
"id": "1234567890",
"items":
[
[
{
"type": "title",
"colSpan": 12,
"name": "title",
"label": "SubForm"
}
],
[
{
"var_name": "users",
"var_uid": "752292886541b20d3325955025125925",
"dataType": "string",
"colSpan": 12,
"name": "users23",
"id": "users23",
"label": "Variable associated 3",
"defaultValue": "",
"required": false,
"hint": "",
"dependentFields": [],
"mode": "parent",
"options": [
{
"label": "Omar Suca",
"value": "suca"
},
{
"label": "Carlos Enrique",
"value": "quique"
}
],
"type": "dropdown"
}
],
[
{
"var_name": "country",
"var_uid": "943312492541b2101075730071729173",
"dataType": "string",
"colSpan": 12,
"name": "country",
"id": "country",
"label": "country",
"defaultValue": "",
"required": false,
"hint": "",
"dependentFields": [
"location",
"subdivision"
],
"mode": "parent",
"options": [
{
"label": "My Country",
"value": "newcountry"
},
{
"label": "My Second Country",
"value": "newsecondcountry"
}
],
"type": "dropdown"
}
],
[
{
"type": "text",
"colSpan":12,
"name": "varname",
"var_name": "varname",
"var_uid": "752292886541b20d3325955025125927",
"defaultValue": "",
"disabled": false,
"label": "Data type - String",
"required": true,
"dataType": "string",
"hint": "Text field example with string validation"
}
]
]
}
],
[
{
"var_name": "optionsvariable",
"var_uid": "109090183545298e8505313008393063",
"dataType": "string",
"colSpan": 12,
"name": "users_3",
"id": "users_3",
"label": "CheckBox Field",
"defaultValue": "",
"required": false,
"hint": "",
"dependentFields": [],
"mode": "parent",
"options": [
{
"label": "First Value",
"value": "firstvalue",
"selected" : true
},
{
"label": "Second Value",
"value": "secondvalue",
"selected" : true
}
],
"type": "checkbox"
}
],
[
{
"var_name": "simplevariabletwo",
"var_uid": "992707483545248537300e5085346250",
"dataType": "string",
"colSpan": 12,
"name": "RadioField1",
"id": "RadioField1",
"label": "Field associated to others fields 1",
"defaultValue": "",
"required": false,
"hint": "",
"dependentFields": [],
"mode": "parent",
"options": [
{
"label": "Option by default",
"value": "default"
},
{
"label": "first Option",
"value": "option1"
},
{
"label": "Second Option",
"value": "option2"
}
],
"type": "dropdown"
}
],
[
{
"var_name": "simplevariabletwo",
"var_uid": "992707483545248537300e5085346250",
"dataType": "string",
"colSpan": 12,
"name": "RadioField1",
"id": "RadioField1",
"label": "Field associated to others fields 2",
"defaultValue": "",
"required": false,
"hint": "",
"dependentFields": [],
"mode": "parent",
"options": [
{
"label": "first Option",
"value": "option1"
},
{
"label": "Second Option",
"value": "option2"
}
],
"type": "radio"
}
],
[
{
"var_name": "simplevariabletwo",
"var_uid": "992707483545248537300e5085346250",
"dataType": "string",
"colSpan": 12,
"name": "users_3",
"id": "users_3",
"label": "Checkbox",
"defaultValue": "",
"required": false,
"hint": "",
"dependentFields": [],
"mode": "parent",
"options": [
{
"label": "First Value",
"value": "option1"
},
{
"label": "Second Value",
"value": "option2"
}
],
"type": "checkbox",
"selected" : ["option1", "option2"]
}
],
[
{
"var_name": "simplevariablethree",
"var_uid": "101",
"dataType": "string",
"colSpan": 12,
"name": "fieldNameDatetime1",
"id": "fieldNameDatetime1",
"label": "DateTime",
"defaultValue": "",
"required": false,
"hint": "",
"dependentFields": [],
"mode": "parent",
"pickType": "datetime",
"type": "datetime"
}
],
[
{
"var_name": "simplevariablethree",
"var_uid": "102",
"dataType": "string",
"colSpan": 12,
"name": "dateTimeName",
"id": "dateTimeId",
"label": "Date",
"defaultValue": "",
"required": false,
"hint": "",
"dependentFields": [],
"mode": "parent",
"pickType": "date",
"type": "datetime"
}
],
[
{
"var_name": "simplevariablethree",
"var_uid": "103",
"dataType": "string",
"colSpan": 12,
"name": "dateTimeName",
"id": "dateTimeId",
"label": "Time",
"defaultValue": "",
"required": false,
"hint": "",
"dependentFields": [],
"mode": "parent",
"pickType": "time",
"type": "datetime"
}
],
[
{
"var_name": "country",
"var_uid": "943312492541b2101075730071729173",
"dataType": "string",
"colSpan": 12,
"name": "country",
"id": "country",
"label": "country",
"defaultValue": "",
"required": false,
"hint": "",
"dependentFields": [
"location",
"subdivision"
],
"mode": "parent",
"options": [
{
"label": "My Country",
"value": "newcountry"
},
{
"label": "My Second Country",
"value": "newsecondcountry"
}
],
"type": "dropdown"
}
],
[
{
"var_name": "subdivision",
"var_uid": "562853519541b20e79b6960026331275",
"dataType": "string",
"colSpan": 12,
"name": "subdivision",
"id": "subdivision",
"label": "subdivision",
"defaultValue": "",
"required": false,
"hint": "",
"dependentFields": [
"location"
],
"mode": "parent",
"options": [
{
"label": "new division",
"value": "newdivision"
}
],
"type": "dropdown"
}
],
[
{
"var_name": "location",
"var_uid": "448293955541b20b5e393c3052081446",
"dataType": "string",
"colSpan": 12,
"name": "location",
"id": "location",
"label": "location",
"defaultValue": "",
"required": false,
"hint": "",
"dependentFields": [],
"mode": "parent",
"options": [
{
"label": "Newlocation",
"value": "newvalue"
}
],
"type": "dropdown"
}
],
[
{
"var_name": "country",
"var_uid": "943312492541b2101075730071729173",
"dataType": "string",
"colSpan": 12,
"name": "country_1",
"id": "country_1",
"label": "country",
"defaultValue": "",
"required": false,
"hint": "",
"dependentFields": [],
"mode": "parent",
"type": "text"
}
],
[
{
"var_name": "variablegridone",
"var_uid": "8391557125458eb60509b60057650758",
"dataType": "string",
"colSpan": 12,
"name": "variablegridone",
"id": "variablegridone",
"label": "variablegridone",
"defaultValue": "",
"required": false,
"hint": "",
"dependentFields": [],
"textTransform": "none",
"validate": "any",
"mask": "",
"maxLength": 100,
"formula": "",
"mode": "parent",
"type": "text"
}
],
[
{
"type": "grid",
"colSpan": 12,
"name": "GridName",
"id": "GridNameId",
"label": "GridField with pager and form mode",
"required": false,
"rows": 3,
"layout": "form",
"pageSize": 3,
"mode": "edit",
"hint": "This is a grid example",
"columns": [
{
"var_name": "variablegridone",
"var_uid": "8391557125458eb60509b60057650758",
"type": "text",
"name": "textname",
"id": "textnameId",
"placeholder": "mask #### - ### - ###",
"defaultValue": "111111111",
"title": "TextInput",
"required": false
},
{
"var_name": "variablegridtwo",
"var_uid": "5746882395458eb6b8b54a2015704374",
"type": "text",
"name": "textname2",
"placeholder": "mask #### - ### - ###",
"defaultValue": "22222222",
"title": "TextInput",
"required": true
},
{
"var_name": "variablegridthree",
"var_uid": "5532828265458eb76ebf700002684261",
"type": "text",
"name": "textname3",
"placeholder": "mask #### - ### - ###",
"defaultValue": "333333333",
"title": "TextInput",
"required": true
},
{
"var_name": "variablegridfour",
"var_uid": "6551198965458ebe28477c5094393260",
"type": "dropdown",
"title": "Options",
"name": "dropdownname",
"defaultValue": "option2",
"value": "option2",
"options": [
{
"label": "Option 1",
"value": "option1"
},
{
"label": "Option 2",
"value": "option2"
},
{
"label": "Option 3",
"value": "option3"
}
]
},
{
"var_name": "variablegridfour",
"var_uid": "6551198965458ebe28477c5094393260",
"type": "radio",
"title": "Options Radio",
"name": "dropdownname",
"defaultValue": "option2",
"value": "option2",
"options": [
{
"label": "Option 1",
"value": "option1"
},
{
"label": "Option 2",
"value": "option2"
},
{
"label": "Option 3",
"value": "option3"
}
]
}
]
}
],
[
{
"type" : "button",
"colSpan" : 12,
"label":"Button"
}
],
[
{
"type" : "submit",
"colSpan" : 12,
"label" : "Submit"
}
]
],
"variables":
[
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "users",
"var_name": "plainVariable",
"var_allowNull": 1,
"var_sql": "SELECT USR_UID, USR_USERNAME\nFROM USERS\nWHERE USR_USERNAME <> \" \"",
"var_uid": "12345"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "users",
"var_name": "textareavariable",
"var_allowNull": 1,
"var_sql": "SELECT USR_UID, USR_USERNAME\nFROM USERS\nWHERE USR_USERNAME <> \" \"",
"var_uid": "1234"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "users",
"var_name": "users",
"var_allowNull": 1,
"var_sql": "SELECT USR_UID, USR_USERNAME\nFROM USERS\nWHERE USR_USERNAME <> \" \"",
"var_uid": "752292886541b20d3325955025125925"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "country",
"var_name": "country",
"var_allowNull": 1,
"var_sql": "SELECT IC_UID,IC_NAME \nFROM ISO_COUNTRY WHERE IC_NAME <> \" \"",
"var_uid": "943312492541b2101075730071729173"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "subdivision",
"var_name": "subdivision",
"var_allowNull": 1,
"var_sql": "SELECT \nIS_UID,\nIS_NAME FROM ISO_SUBDIVISION WHERE IC_UID = \"@#country\" AND IS_NAME <> \" \"",
"var_uid": "562853519541b20e79b6960026331275"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "location",
"var_name": "location",
"var_allowNull": 1,
"var_sql": "SELECT IL_UID, IL_NAME\nFROM ISO_LOCATION\nWHERE IS_UID = \"@#subdivision\" AND IL_NAME <> \" \" AND IC_UID = \"@#country\"",
"var_uid": "448293955541b20b5e393c3052081446"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "varname",
"var_name": "varname",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "752292886541b20d3325955025125927"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "simplevariable",
"var_name": "simplevariable",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "299463130541b212c93a3d7047589419"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "Simple Variable Two",
"var_name": "simplevariabletwo",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "992707483545248537300e5085346250"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "datetime",
"var_label": "Simple Variable Three",
"var_name": "simplevariablethree",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "31319212954524865487616020584523"
},
{
"var_acceptedValues": [
{
"value": "First Value",
"keyValue": "firstvalue"
},
{
"value": "Second Value",
"keyValue": "secondvalue"
}
],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 100,
"var_fieldType": "string",
"var_label": "optionsvariable",
"var_name": "optionsvariable",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "109090183545298e8505313008393063"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "variablegridone",
"var_name": "variablegridone",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "8391557125458eb60509b60057650758"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 100,
"var_fieldType": "string",
"var_label": "variablegridtwo",
"var_name": "variablegridtwo",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "5746882395458eb6b8b54a2015704374"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "variablegridthree",
"var_name": "variablegridthree",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "5532828265458eb76ebf700002684261"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "variablegridthree",
"var_name": "var-datetime",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "101"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "variablegridthree",
"var_name": "var-date",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "102"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "variablegridthree",
"var_name": "var-time",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "103"
},
{
"var_acceptedValues": [
{
"value": "variable option 1",
"keyValue": "variable_option_1"
},
{
"value": "variable option 2",
"keyValue": "variable_option_2"
},
{
"value": "variable option 3",
"keyValue": "variable_option_3"
}
],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "variablegridfour",
"var_name": "variablegridfour",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "6551198965458ebe28477c5094393260"
}
],
"data": {
"users": "quique",
"country": "newsecondcountry",
"subdivision": "newdivision",
"varname": "Omar",
"simplevariabletwo": "option2",
"variablegridone": [
"111111111",
"222222222",
"333333333"
],
"variablegridtwo": [
"First Value II",
"Second Value II"
],
"variablegridthree": [
"",
"Second Value III"
],
"variablegridfour": [
"value1",
"value2",
"value3"
]
},
"script": {
"type": "js",
"code": "showWindow = function () {\n var modal = '<div class=\"modal\" id=\\\"myModal\\\" tabindex=\\\"-1\\\" role=\\\"dialog\\\" aria-labelledby=\\\"myModalLabel\\\" aria-hidden=\\\"true\\\">' \n +'<div class=\\\"modal-dialog\\\">'\n + '<div class=\\\"modal-content\\\">'\n + '<div class=\\\"modal-header\\\">'\n + '<button type=\\\"button\\\" class=\\\"close\\\" data-dismiss=\\\"modal\\\"><span aria-hidden=\\\"true\\\">×</span><span class=\\\"sr-only\\\">Close</span></button>'\n + '<h2 class=\\\"modal-title\\\" id=\\\"myModalLabel\\\">FrontEnd Developer</h2>'\n + '</div>'\n + '<div class=\\\"modal-body\\\">... <h5>Omar Suca</h5><i>PMDynaform Library</i>... <div id=\\\"modal-body-fields\\\"> </div></div>'\n + '<div class=\\\"modal-footer\\\">'\n + '<button type=\\\"button\\\" class=\\\"btn btn-default\\\" data-dismiss=\\\"modal\\\">Close</button>'\n + '<button type=\\\"button\\\" class=\\\"btn btn-primary\\\">Save changes</button>'\n + '</div>'\n + '</div>'\n + '</div>'\n +'</div>';\n $('#myModal').remove();\n $(document.body).append(modal);\n};\n\ngetFieldById('myModalButton').on('click', function(){\n console.log('Init Click callback');\n showWindow();\n $('#myModal').modal('toggle');\n $('#myModal').css(\"display\", \"block\");\n console.log('End Click callback');\n\n formModel = new PMDynaform.model.FormPanel({\n type: \"form\",\n items: [\n [\n {\n type: \"title\",\n colSpan: 12,\n name: \"title\",\n label: \"PMDynaform - My Fields\"\n }\n ], \n [\n {\n type: \"subtitle\",\n colSpan: 12,\n name: \"subtitle\",\n label: \"Basic fields without validations\"\n }\n ],\n [\n {\n var_name: \"simplevariable\",\n var_uid: \"111\",\n dataType: \"string\",\n colSpan: 6,\n name: \"users_1\",\n id: \"users_1\",\n label: \"Field Label 1\",\n defaultValue: \"\",\n required: false,\n hint: \"\",\n dependentFields: [],\n mode: \"parent\",\n options: [],\n type: \"text\"\n },\n {\n var_name: \"simplevariable\",\n var_uid: \"111\",\n dataType: \"string\",\n colSpan: 6,\n name: \"users_2\",\n id: \"users_2\",\n label: \"Field Label 2\",\n defaultValue: \"\",\n required: true,\n hint: \"\",\n dependentFields: [],\n mode: \"parent\",\n options: [],\n type: \"text\"\n }\n ],\n [{\n var_name: \"simplevariable\",\n var_uid: \"111\",\n dataType: \"string\",\n colSpan: 12,\n name: \"textarea\",\n id: \"textareaid \",\n label: \"My Textarea\",\n defaultValue: \"\",\n required: true,\n hint: \"\",\n dependentFields: [],\n mode: \"parent\",\n options: [],\n type: \"textarea\"\n }]\n ],\n variables: [\n {\n \"var_acceptedValues\": [],\n \"var_dbConnection\": \"none\",\n \"var_defaultValue\": \"\",\n \"var_fieldSize\": 10,\n \"var_fieldType\": \"string\",\n \"var_label\": \"simplevariable\",\n \"var_name\": \"simplevariable\",\n \"var_allowNull\": 1,\n \"var_sql\": \"\",\n \"var_uid\": \"111\"\n }\n ]\n });\n formView = new PMDynaform.view.FormPanel({model: formModel });\n \n $(\"#modal-body-fields\").append(formView.render().el);\n\n});"
}
}
]
}

View File

@@ -0,0 +1,561 @@
{
"name": "form-example",
"items": [
{
"type": "form",
"mode": "view",
"items": [
[
{
"type": "title",
"colSpan": 12,
"name": "title",
"label": "PMDynaform 10 - Grids - Working"
}
],
[
{
"type": "grid",
"colSpan": 12,
"name": "GridNameMask",
"id": "GridNameMaskId",
"label": "Grid with formula",
"required": false,
"rows": 3,
"layout": "form",
"pageSize": 3,
"mode": "edit",
"hint": "GridField with Mask",
"pager": true,
"columns": [
{
"var_name": "field10",
"var_uid": "10",
"type": "text",
"name": "textOne",
"title": "TextInput",
"required": false,
"function": "sum"
},
{
"var_name": "field11",
"var_uid": "11",
"type": "text",
"name": "textTwo",
"defaultValue": "",
"title": "TextInput"
},
{
"var_name": "field12",
"var_uid": "12",
"type": "text",
"formula": "textOne - (textTwo +100)",
"name": "textThree",
"defaultValue": "",
"title": "textOne - (textTwo +100)",
"function": "avg"
}
]
}
],
[
{
"type": "grid",
"colSpan": 12,
"name": "GridName",
"id": "GridNameId",
"label": "GridField with pager and form mode",
"required": false,
"rows": 3,
"layout": "form",
"pageSize": 3,
"mode": "edit",
"hint": "This is a grid example",
"pager": true,
"columns": [
{
"var_name": "field13",
"var_uid": "13",
"type": "text",
"name": "textname",
"id": "textnameId",
"placeholder": "mask #### - ### - ###",
"defaultValue": "1243454356",
"title": "TextInput",
"required": false,
"mask": "### - ### - ###"
},
{
"var_name": "field14",
"var_uid": "14",
"type": "text",
"name": "textname2",
"placeholder": "mask #### - ### - ###",
"defaultValue": "111111111",
"title": "TextInput",
"required": true
},
{
"var_name": "field15",
"var_uid": "15",
"type": "text",
"name": "textname3",
"placeholder": "mask #### - ### - ###",
"defaultValue": "0000000",
"title": "TextInput",
"required": true
},
{
"var_name": "field16",
"var_uid": "16",
"type": "dropdown",
"title": "Options",
"name": "dropdownname",
"defaultValue": "option1",
"options": [
{
"label": "Option 1",
"value": "option1"
},
{
"label": "Option 2",
"value": "option2"
},
{
"label": "Option 3",
"value": "option3"
}
]
}
]
}
],
[
{
"type": "grid",
"colSpan": 12,
"name": "Gridname2",
"label": "GridField with pager and static mode",
"required": false,
"rows": 1,
"layout": "static",
"mode": "edit",
"hint": "This is a grid example",
"pager": true,
"columns": [
{
"var_name": "field17",
"var_uid": "17",
"type": "text",
"name": "TextName1",
"placeholder": "mask #### - ### - ###",
"defaultValue": "",
"title": "TextInput",
"required": false,
"mask": "### - ### - ###",
"dataType": "string"
},
{
"var_name": "field18",
"var_uid": "18",
"type": "textarea",
"title": "Textarea",
"name": "textarea1",
"defaultValue": "",
"required": false,
"rows": 3,
"hint":null
},
{
"var_name": "field19",
"var_uid": "19",
"type": "suggest",
"name": "suggestName",
"defaultValue": "",
"title": "Suggest",
"placeholder": "suggest",
"required": false,
"dataType": "string",
"options":[
{
"label": "Option 1",
"value": "option1"
},
{
"label": "Option 2",
"value": "option2"
},
{
"label": "Option 3",
"value": "option3"
}
],
"hint":null
},
{
"var_name": "field20",
"var_uid": "20",
"type": "checkbox",
"name": "chekboxName",
"label": "Checkbox",
"required": false,
"title": "Checkbox",
"hint":null,
"options": [
{
"label": "This is the option A",
"value": 1,
"selected": true
},
{
"label": "This is the option B",
"value": 2
},
{
"label": "This is the option C",
"value": 3,
"selected": true
}
]
},
{
"var_name": "field11",
"var_uid": "11",
"type": "file",
"title": "File uploaded",
"multiple": true,
"dnd":true,
"name": "textName1"
}
]
}
],
[
{
"type": "grid",
"colSpan": 12,
"name": "Gridname3",
"label": "GridField with pager and responsive mode",
"required": false,
"rows": 3,
"layout": "responsive",
"mode": "edit",
"hint": "This is a grid example",
"pager": false,
"columns": [
{
"var_name": "field21",
"var_uid": "21",
"type": "text",
"name": "TextName1",
"placeholder": "mask #### - ### - ###",
"defaultValue": "232323232323",
"title": "TextInput",
"required": false,
"mask": "### - ### - ###",
"dataType": "string"
},
{
"var_name": "field22",
"var_uid": "22",
"type": "checkbox",
"name": "chekboxName",
"title": "Checkbox",
"required": false,
"hint":null,
"options": [
{
"label": "This is the option A",
"value": 1,
"selected": true
},
{
"label": "This is the option B",
"value": 2
},
{
"label": "This is the option C",
"value": 3,
"selected": true
}
]
},
{
"var_name": "field23",
"var_uid": "23",
"type": "suggest",
"name": "suggestName",
"defaultValue": "option1",
"title": "Suggest",
"placeholder": "suggest",
"required": false,
"dataType": "string",
"options":[
{
"label": "Option 1",
"value": "option1"
},
{
"label": "Option 2",
"value": "option2"
},
{
"label": "Option 3",
"value": "option3"
}
],
"hint":null
},
{
"var_name": "field24",
"var_uid": "24",
"type": "radio",
"name": "radiogroupName",
"defaultValue": 2,
"title": "RadioGroup",
"required": false,
"options": [
{
"label": "This is the option A",
"value": 1
},
{
"label": "This is the option B",
"value": 2
},
{
"label": "This is the option C",
"value": 3
}
]
}
]
}
]
],
"variables":
[
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "users",
"var_name": "field10",
"var_allowNull": 1,
"var_sql": "SELECT USR_UID, USR_USERNAME\nFROM USERS\nWHERE USR_USERNAME <> \" \"",
"var_uid": "10"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "country",
"var_name": "field11",
"var_allowNull": 1,
"var_sql": "SELECT IC_UID,IC_NAME \nFROM ISO_COUNTRY WHERE IC_NAME <> \" \"",
"var_uid": "11"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "subdivision",
"var_name": "field12",
"var_allowNull": 1,
"var_sql": "SELECT \nIS_UID,\nIS_NAME FROM ISO_SUBDIVISION WHERE IC_UID = \"@#country\" AND IS_NAME <> \" \"",
"var_uid": "12"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "location",
"var_name": "field13",
"var_allowNull": 1,
"var_sql": "SELECT IL_UID, IL_NAME\nFROM ISO_LOCATION\nWHERE IS_UID = \"@#subdivision\" AND IL_NAME <> \" \" AND IC_UID = \"@#country\"",
"var_uid": "13"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "varname",
"var_name": "field14",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "14"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "simplevariable",
"var_name": "field15",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "15"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "Simple Variable Two",
"var_name": "field16",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "16"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "datetime",
"var_label": "Simple Variable Three",
"var_name": "field17",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "17"
},
{
"var_acceptedValues": [
{
"value": "First Value",
"keyValue": "firstvalue"
},
{
"value": "Second Value",
"keyValue": "secondvalue"
}
],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 100,
"var_fieldType": "string",
"var_label": "optionsvariable",
"var_name": "field18",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "18"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "variablegridone",
"var_name": "field19",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "19"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 100,
"var_fieldType": "string",
"var_label": "field20",
"var_name": "field20",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "20"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "variablegridthree",
"var_name": "field21",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "21"
},
{
"var_acceptedValues": [
{
"value": "variable option 1",
"keyValue": "variable_option_1"
},
{
"value": "variable option 2",
"keyValue": "variable_option_2"
},
{
"value": "variable option 3",
"keyValue": "variable_option_3"
}
],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "variablegridfour",
"var_name": "field22",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "22"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "variablegridthree",
"var_name": "field23",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "23"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "variablegridthree",
"var_name": "field24",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "24"
}
],
"data": {
"field10": [
"1",
"22",
"333"
],
"field11": [
"10",
"11",
"12"
],
"field12": [
"1",
"2",
"3"
]
}
}
]
}

View File

@@ -0,0 +1,675 @@
{
"name": "form-example",
"items": [
{
"type":"form",
"id": "1357911",
"items":
[
[
{
"type": "title",
"colSpan": 12,
"name": "title",
"label": "PMDynaform 11 - SubForm"
}
],
[
{
"var_name": "simplevariable",
"var_uid": "752292886541b20d3325955025125925",
"type": "text",
"colSpan": 12,
"name": "TextName01",
"id": "inputform1",
"placeholder": "TextName01",
"defaultValue": "",
"label": "TextInput",
"required": true,
"dataType": "string",
"hint":null
}
],
[
{
"type": "form",
"colSpan": 6,
"name": "subform-name",
"id": "1234567890",
"items":
[
[
{
"type": "title",
"colSpan": 12,
"name": "title",
"label": "These are the fields inside of SubForm 1"
}
],
[
{
"var_name": "simplevariable",
"var_uid": "752292886541b20d3325955025125925",
"type": "text",
"colSpan": 12,
"name": "TextName1",
"id": "inputform2",
"placeholder": "TextName1",
"defaultValue": "",
"label": "TextInput",
"required": true,
"dataType": "string",
"hint":null
}
],
[
{
"var_name": "simplevariable",
"var_uid": "752292886541b20d3325955025125925",
"type": "hidden",
"name": "TextName1",
"defaultValue": "This is the default value for the hidden field",
"dataType": "string"
}
],
[
{
"var_name": "simplevariable",
"var_uid": "752292886541b20d3325955025125925",
"type": "textarea",
"colSpan": 12,
"label": "Textarea",
"name": "textarea1",
"defaultValue": "",
"required": true,
"rows":3,
"hint":null
}
],
[
{
"var_name": "optionsvariable",
"var_uid": "109090183545298e8505313008393063",
"type": "suggest",
"colSpan":12,
"name": "suggestName",
"defaultValue": "",
"label": "Suggest",
"placeholder": "suggest",
"required": false,
"dataType": "string",
"options":[
{
"label": "Option 1",
"value": "option1"
},
{
"label": "AOption 2",
"value": "option2"
},
{
"label": "BOption 3",
"value": "option3"
},
{
"label": "COption 4",
"value": "option5"
},
{
"label": "DOption 5",
"value": "option5"
},
{
"label": "EOption 6",
"value": "option6"
}
],
"hint":null
}
],
[
{
"type": "link",
"colSpan":12,
"name": "linkName",
"value": "This is the link value",
"label": "link",
"href": "http://www.colosa.com/",
"variable": "simpleVariable",
"hint": null
}
],
[
{
"var_name": "optionsvariable",
"var_uid": "109090183545298e8505313008393063",
"type": "dropdown",
"colSpan":12,
"name": "Option",
"label": "Options",
"hint": null,
"options":[
{
"label": "Option 1",
"value": "option1"
},
{
"label": "Option 2",
"value": "option2"
},
{
"label": "Option 3",
"value": "option3"
}
]
}
],
[
{
"var_name": "optionsvariable",
"var_uid": "109090183545298e8505313008393063",
"type": "checkbox",
"colSpan": 12,
"name": "chekboxName",
"label": "Checkbox",
"required": true,
"hint":null,
"options": [
{
"label": "This is the option A",
"value": 1,
"selected": true
},
{
"label": "This is the option B",
"value": 2
},
{
"label": "This is the option C",
"value": 3,
"selected": true
}
]
}
],
[
{
"var_name": "optionsvariable",
"var_uid": "109090183545298e8505313008393063",
"type": "radio",
"colSpan": 12,
"name": "radiogroupName",
"defaultValue": 2,
"label": "RadioGroup",
"required": false,
"options": [
{
"label": "This is the option A",
"value": 1
},
{
"label": "This is the option B",
"value": 2
},
{
"label": "This is the option C",
"value": 3
}
],
"hint":null
}
],
[
{
"var_name": "simplevariablethree",
"var_uid": "31319212954524865487616020584523",
"type": "datetime",
"pickType":"datetime",
"colSpan": 12,
"name": "datetime1",
"defaultValue": "22/12/2013 10:30:12",
"label": "Date time",
"required": true,
"hint":null
}
],
[
{
"var_name": "simplevariablethree",
"var_uid": "31319212954524865487616020584523",
"type": "datetime",
"pickType":"date",
"colSpan": 12,
"name": "datetime2",
"defaultValue": "",
"label": "Date",
"required": false,
"hint":null
}
],
[
{
"var_name": "simplevariablethree",
"var_uid": "31319212954524865487616020584523",
"type": "datetime",
"pickType":"time",
"colSpan": 12,
"name": "datetime3",
"defaultValue": "",
"label": "Time",
"required": false,
"hint":null
}
],
[
{
"type": "image",
"label": "Image",
"shape": "thumbnail",
"colSpan": 12,
"alt": "Testing the image",
"comment": "The image is related to a Task of the old Processmaker... ",
"src": "http://wiki.processmaker.com/images/c/c2/ConceptsTask.png",
"hint": "Image field"
}
],
[
{
"type" : "button",
"colSpan" : 12,
"label":"Button"
}
],
[
{
"type" : "submit",
"colSpan" : 12,
"label" : "Submit"
}
]
]
},
{
"type": "form",
"colSpan": 6,
"name": "subform-name",
"id": "1234567890",
"items":
[
[
{
"type": "title",
"colSpan": 12,
"name": "title",
"label": "These are the fields inside of SubForm 2"
}
],
[
{
"var_name": "simplevariable",
"var_uid": "752292886541b20d3325955025125925",
"type": "text",
"colSpan": 12,
"name": "TextName1",
"id": "inputform2",
"placeholder": "TextName1",
"defaultValue": "",
"label": "TextInput",
"required": true,
"dataType": "string",
"hint":null
}
],
[
{
"var_name": "simplevariable",
"var_uid": "752292886541b20d3325955025125925",
"type": "hidden",
"name": "TextName1",
"defaultValue": "This is the default value for the hidden field",
"dataType": "string"
}
],
[
{
"var_name": "simplevariable",
"var_uid": "752292886541b20d3325955025125925",
"type": "textarea",
"colSpan": 12,
"label": "Textarea",
"name": "textarea1",
"defaultValue": "",
"required": true,
"rows":3,
"hint":null
}
],
[
{
"var_name": "simplevariable",
"var_uid": "752292886541b20d3325955025125925",
"type": "suggest",
"colSpan":12,
"name": "suggestName",
"defaultValue": "",
"label": "Suggest",
"placeholder": "suggest",
"required": false,
"dataType": "string",
"options":[
{
"label": "Option 1",
"value": "option1"
},
{
"label": "AOption 2",
"value": "option2"
},
{
"label": "BOption 3",
"value": "option3"
},
{
"label": "COption 4",
"value": "option5"
},
{
"label": "DOption 5",
"value": "option5"
},
{
"label": "EOption 6",
"value": "option6"
}
],
"hint":null
}
],
[
{
"type": "link",
"colSpan":12,
"name": "linkName",
"value": "This is the link value",
"label": "link",
"href": "http://www.colosa.com/",
"variable": "simpleVariable",
"hint": null
}
],
[
{
"var_name": "optionsvariable",
"var_uid": "109090183545298e8505313008393063",
"type": "dropdown",
"colSpan":12,
"name": "Option",
"label": "Options",
"hint": null,
"options":[
{
"label": "Option 1",
"value": "option1"
},
{
"label": "Option 2",
"value": "option2"
},
{
"label": "Option 3",
"value": "option3"
}
]
}
],
[
{
"var_name": "optionsvariable",
"var_uid": "109090183545298e8505313008393063",
"type": "checkbox",
"colSpan": 12,
"name": "chekboxName",
"label": "Checkbox",
"required": true,
"hint":null,
"options": [
{
"label": "This is the option A",
"value": 1,
"selected": true
},
{
"label": "This is the option B",
"value": 2
},
{
"label": "This is the option C",
"value": 3,
"selected": true
}
]
}
],
[
{
"var_name": "optionsvariable",
"var_uid": "109090183545298e8505313008393063",
"type": "radio",
"colSpan": 12,
"name": "radiogroupName",
"defaultValue": 2,
"label": "RadioGroup",
"required": false,
"options": [
{
"label": "This is the option A",
"value": 1
},
{
"label": "This is the option B",
"value": 2
},
{
"label": "This is the option C",
"value": 3
}
],
"hint":null
}
]
]
}
],
[
{
"type" : "submit",
"colSpan" : 12,
"label" : "Submit"
}
]
],
"variables":
[
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "users",
"var_name": "users",
"var_allowNull": 1,
"var_sql": "SELECT USR_UID, USR_USERNAME\nFROM USERS\nWHERE USR_USERNAME <> \" \"",
"var_uid": "752292886541b20d3325955025125925"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "country",
"var_name": "country",
"var_allowNull": 1,
"var_sql": "SELECT IC_UID,IC_NAME \nFROM ISO_COUNTRY WHERE IC_NAME <> \" \"",
"var_uid": "943312492541b2101075730071729173"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "subdivision",
"var_name": "subdivision",
"var_allowNull": 1,
"var_sql": "SELECT \nIS_UID,\nIS_NAME FROM ISO_SUBDIVISION WHERE IC_UID = \"@#country\" AND IS_NAME <> \" \"",
"var_uid": "562853519541b20e79b6960026331275"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "location",
"var_name": "location",
"var_allowNull": 1,
"var_sql": "SELECT IL_UID, IL_NAME\nFROM ISO_LOCATION\nWHERE IS_UID = \"@#subdivision\" AND IL_NAME <> \" \" AND IC_UID = \"@#country\"",
"var_uid": "448293955541b20b5e393c3052081446"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "varname",
"var_name": "varname",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "752292886541b20d3325955025125927"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "simplevariable",
"var_name": "simplevariable",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "299463130541b212c93a3d7047589419"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "Simple Variable Two",
"var_name": "simplevariabletwo",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "992707483545248537300e5085346250"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "datetime",
"var_label": "Simple Variable Three",
"var_name": "simplevariablethree",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "31319212954524865487616020584523"
},
{
"var_acceptedValues": [
{
"value": "First Value",
"keyValue": "firstvalue"
},
{
"value": "Second Value",
"keyValue": "secondvalue"
}
],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 100,
"var_fieldType": "string",
"var_label": "optionsvariable",
"var_name": "optionsvariable",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "109090183545298e8505313008393063"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "variablegridone",
"var_name": "variablegridone",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "8391557125458eb60509b60057650758"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 100,
"var_fieldType": "string",
"var_label": "variablegridtwo",
"var_name": "variablegridtwo",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "5746882395458eb6b8b54a2015704374"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "variablegridthree",
"var_name": "variablegridthree",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "5532828265458eb76ebf700002684261"
},
{
"var_acceptedValues": [
{
"value": "variable option 1",
"keyValue": "variable_option_1"
},
{
"value": "variable option 2",
"keyValue": "variable_option_2"
},
{
"value": "variable option 3",
"keyValue": "variable_option_3"
}
],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "variablegridfour",
"var_name": "variablegridfour",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "6551198965458ebe28477c5094393260"
}
]
}
]
}

View File

@@ -0,0 +1,88 @@
{
"name": "form",
"items": [
{
"type": "form",
"id": "1322323",
"items": [
[
{
"type": "title",
"colSpan": 12,
"name": "title",
"label": "PMDynaform 12 - Maps"
}
],
[
{
"type": "geomap",
"label": "First GeoMap",
"colSpan": 12,
"name": "map-name1",
"currentLocation": true,
"dragMarker": true,
"fullscreen": true,
"scaleControl": true,
"zoomControl": true,
"zoom": 15
}
],
[
{
"type": "geomap",
"label": "Second GeoMap",
"colSpan": 6,
"name": "map-name2",
"currentLocation": false,
"scaleControl": true,
"mapTypeControl": true,
"zoom": 5,
"latitude": -25.363882,
"longitude": 131.044922
},
{
"type": "geomap",
"label": "Third GeoMap",
"colSpan": 6,
"name": "map-name3",
"currentLocation": false,
"scaleControl": true,
"zoom": 10,
"latitude": -25.363882,
"longitude": 131.044922
}
],
[
{
"type": "geomap",
"label": "Fourth GeoMap",
"colSpan": 4,
"name": "map-name4",
"currentLocation": true,
"scaleControl": false,
"zoom": 5
},
{
"type": "geomap",
"label": "Fifth GeoMap",
"colSpan": 4,
"name": "map-name5",
"currentLocation": false,
"scaleControl": false,
"zoom": 10,
"latitude": -33.890542,
"longitude": 151.274856
},
{
"type": "geomap",
"label": "Sixth GeoMap",
"colSpan": 4,
"name": "map-name6",
"currentLocation": true,
"disabled": true
}
]
]
}
]
}

View File

@@ -0,0 +1,644 @@
{
"name": "form-example2",
"items": [
{
"type":"form",
"items":
[
[
{
"type": "title",
"colSpan": 12,
"name": "title",
"label": "PMDynaform 2 - Required, DataType and Hint property"
}
],
[
{
"type": "subtitle",
"colSpan": 12,
"name": "subtitle",
"label": "Fields required with helpers and dataType string, integer, float, date, datetime and time"
}
],
[
{
"var_name": "simplevariable",
"var_uid": "10",
"type": "text",
"colSpan":12,
"name": "Textinput1",
"defaultValue": "",
"disabled": false,
"label": "Data type - String",
"required": true,
"dataType": "string",
"hint": "Text field example with string validation"
}
],
[
{
"var_name": "simplevariable",
"var_uid": "11",
"type": "text",
"colSpan":12,
"name": "Textinput2",
"defaultValue": "",
"label": "Data type - Integer",
"required": true,
"dataType": "integer",
"hint": "Text field example with integer validation"
}
],
[
{
"var_name": "simplevariable",
"var_uid": "12",
"type": "text",
"colSpan":12,
"name": "Textinput3",
"defaultValue": "",
"label": "Data type - Float",
"required": true,
"dataType": "float",
"hint": "Text field example with float validation"
}
],
[
{
"var_name": "simplevariable",
"var_uid": "13",
"type": "suggest",
"colSpan":12,
"name": "suggestName",
"defaultValue": "",
"label": "Suggest",
"placeholder": "suggest",
"required": true,
"dataType": "string",
"options":[
{
"label": "Option 1",
"value": "option1"
},
{
"label": "Option 2",
"value": "option2"
},
{
"label": "Option 3",
"value": "option2"
}
],
"hint": "Suggest field with string validation"
}
],
[
{
"var_name": "simplevariable",
"var_uid": "14",
"type": "textarea",
"colSpan":12,
"name": "TextArea",
"defaultValue": "",
"label": "TextArea",
"required": true,
"readonly": false,
"dataType": "string",
"hint": "TextArea field example with string validation"
}
],
[
{
"var_name": "simplevariable",
"var_uid": "15",
"type": "dropdown",
"colSpan":12,
"name": "Option",
"label": "Dropdown",
"defaultValue": "option2",
"readonly": false,
"required": true,
"hint": "Dropdown field example with string validation",
"options":[
{
"label": "Option 1",
"value": "option1"
},
{
"label": "Option 2",
"value": "option2"
},
{
"label": "Option 3",
"value": "option3"
}
]
}
],
[
{
"var_name": "simplevariable",
"var_uid": "16",
"type": "checkbox",
"colSpan":12,
"name": "radiogroup1",
"defaultValue": "1",
"label": "CheckBoxGroup",
"required": true,
"dataType": "string",
"hint": "CheckBoxGroup field example with string validation",
"options": [
{
"label": "This is the option AA",
"value": "1"
},
{
"label": "This is the option B",
"value": "2"
},
{
"label": "This is the option C",
"value": "3"
}
]
}
],
[
{
"var_name": "simplevariable",
"var_uid": "17",
"type": "radio",
"colSpan":12,
"name": "radiogroup123",
"defaultValue": "",
"label": "Radio Grp2",
"required": true,
"dataType": "string",
"hint": "RadioGroup field example with string validation",
"options": [
{
"label" : "Radio option A",
"value" : "1"
},
{
"label" : "Radio option B",
"value" : "2"
}
]
}
],
[
{
"var_name": "simplevariable",
"var_uid": "18",
"type": "datetime",
"pickType":"datetime",
"colSpan": 12,
"name": "datetime1",
"defaultValue": "",
"label": "Date time",
"dataType": "datetime",
"hint": "Datetime field example with datetime validation",
"required": true,
"readonly": false
}
],
[
{
"var_name": "simplevariablethree",
"var_uid": "18",
"type": "datetime",
"pickType":"date",
"colSpan": 12,
"name": "datetime2",
"defaultValue": "",
"label": "Date",
"dataType": "date",
"hint": "Date field example with date validation",
"required": true,
"readonly": false
}
],
[
{
"var_name": "simplevariablethree",
"var_uid": "19",
"type": "datetime",
"pickType":"time",
"colSpan": 12,
"name": "datetime3",
"defaultValue": "",
"label": "Time",
"dataType": "time",
"hint": "Time field example with time validation",
"required": true,
"readonly": false
}
],
[
{
"type" : "submit",
"colSpan" : 12,
"label" : "Submit"
}
]
],
"variables":
[
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "users",
"var_name": "users",
"var_allowNull": 1,
"var_sql": "SELECT USR_UID, USR_USERNAME\nFROM USERS\nWHERE USR_USERNAME <> \" \"",
"var_uid": "752292886541b20d3325955025125925"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "country",
"var_name": "country",
"var_allowNull": 1,
"var_sql": "SELECT IC_UID,IC_NAME \nFROM ISO_COUNTRY WHERE IC_NAME <> \" \"",
"var_uid": "943312492541b2101075730071729173"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "subdivision",
"var_name": "subdivision",
"var_allowNull": 1,
"var_sql": "SELECT \nIS_UID,\nIS_NAME FROM ISO_SUBDIVISION WHERE IC_UID = \"@#country\" AND IS_NAME <> \" \"",
"var_uid": "562853519541b20e79b6960026331275"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "location",
"var_name": "location",
"var_allowNull": 1,
"var_sql": "SELECT IL_UID, IL_NAME\nFROM ISO_LOCATION\nWHERE IS_UID = \"@#subdivision\" AND IL_NAME <> \" \" AND IC_UID = \"@#country\"",
"var_uid": "448293955541b20b5e393c3052081446"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "varname",
"var_name": "varname",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "752292886541b20d3325955025125927"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "simplevariable",
"var_name": "simplevariable",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "299463130541b212c93a3d7047589419"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "Simple Variable Two",
"var_name": "simplevariabletwo",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "992707483545248537300e5085346250"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "datetime",
"var_label": "Simple Variable Three",
"var_name": "simplevariablethree",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "31319212954524865487616020584523"
},
{
"var_acceptedValues": [
{
"value": "First Value",
"keyValue": "firstvalue"
},
{
"value": "Second Value",
"keyValue": "secondvalue"
}
],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 100,
"var_fieldType": "string",
"var_label": "optionsvariable",
"var_name": "optionsvariable",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "109090183545298e8505313008393063"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "variablegridone",
"var_name": "variablegridone",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "8391557125458eb60509b60057650758"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 100,
"var_fieldType": "string",
"var_label": "variablegridtwo",
"var_name": "variablegridtwo",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "5746882395458eb6b8b54a2015704374"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "variablegridthree",
"var_name": "variablegridthree",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "5532828265458eb76ebf700002684261"
},
{
"var_acceptedValues": [
{
"value": "variable option 1",
"keyValue": "variable_option_1"
},
{
"value": "variable option 2",
"keyValue": "variable_option_2"
},
{
"value": "variable option 3",
"keyValue": "variable_option_3"
}
],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "variablegridfour",
"var_name": "variablegridfour",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "6551198965458ebe28477c5094393260"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "users",
"var_name": "field10",
"var_allowNull": 1,
"var_sql": "SELECT USR_UID, USR_USERNAME\nFROM USERS\nWHERE USR_USERNAME <> \" \"",
"var_uid": "10"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "country",
"var_name": "field11",
"var_allowNull": 1,
"var_sql": "SELECT IC_UID,IC_NAME \nFROM ISO_COUNTRY WHERE IC_NAME <> \" \"",
"var_uid": "11"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "subdivision",
"var_name": "field12",
"var_allowNull": 1,
"var_sql": "SELECT \nIS_UID,\nIS_NAME FROM ISO_SUBDIVISION WHERE IC_UID = \"@#country\" AND IS_NAME <> \" \"",
"var_uid": "12"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "location",
"var_name": "field13",
"var_allowNull": 1,
"var_sql": "SELECT IL_UID, IL_NAME\nFROM ISO_LOCATION\nWHERE IS_UID = \"@#subdivision\" AND IL_NAME <> \" \" AND IC_UID = \"@#country\"",
"var_uid": "13"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "varname",
"var_name": "field14",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "14"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "simplevariable",
"var_name": "field15",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "15"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "Simple Variable Two",
"var_name": "field16",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "16"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "datetime",
"var_label": "Simple Variable Three",
"var_name": "field17",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "17"
},
{
"var_acceptedValues": [
{
"value": "First Value",
"keyValue": "firstvalue"
},
{
"value": "Second Value",
"keyValue": "secondvalue"
}
],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 100,
"var_fieldType": "string",
"var_label": "optionsvariable",
"var_name": "field18",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "18"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "variablegridone",
"var_name": "field19",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "19"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 100,
"var_fieldType": "string",
"var_label": "field20",
"var_name": "field20",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "20"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "variablegridthree",
"var_name": "field21",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "21"
},
{
"var_acceptedValues": [
{
"value": "variable option 1",
"keyValue": "variable_option_1"
},
{
"value": "variable option 2",
"keyValue": "variable_option_2"
},
{
"value": "variable option 3",
"keyValue": "variable_option_3"
}
],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "variablegridfour",
"var_name": "field22",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "22"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "variablegridthree",
"var_name": "field23",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "23"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "variablegridthree",
"var_name": "field24",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "24"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "variablegridthree",
"var_name": "datetime",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "datetimeId"
}
]
}
]
}

View File

@@ -0,0 +1,375 @@
{
"name": "form-example2",
"items": [
{
"type":"form",
"items":
[
[
{
"type": "title",
"colSpan": 12,
"name": "title",
"label": "PMDynaform 3 - Fields with mask"
}
],
[
{
"var_name": "simplevariable",
"var_uid": "752292886541b20d3325955025125925",
"type": "text",
"colSpan":12,
"name": "name",
"value": "",
"label": "Mask ##:##:## .000#",
"readonly": false,
"dataType": "string",
"mask": "##:##:## .000#"
}
],
[
{
"var_name": "simplevariable",
"var_uid": "752292886541b20d3325955025125925",
"type": "text",
"colSpan":12,
"name": "name",
"value": "",
"label": "Mask Cellphone +###-#########",
"readonly": false,
"dataType": "string",
"mask": "Cellphone +###-#########"
}
],
[
{
"var_name": "simplevariable",
"var_uid": "752292886541b20d3325955025125925",
"type": "text",
"colSpan":12,
"name": "name",
"value": "",
"label": "Mask (###) (###) (###) (###) (######)",
"readonly": false,
"dataType": "string",
"mask": "(###) (###) (###) (###) (######)"
}
],
[
{
"var_name": "simplevariable",
"var_uid": "752292886541b20d3325955025125925",
"type": "text",
"colSpan":12,
"name": "name",
"value": "",
"label": "#-##-###--####---# Bs.",
"readonly": false,
"dataType": "string",
"mask": "#-##-###--####---# Bs."
}
],
[
{
"var_name": "simplevariable",
"var_uid": "752292886541b20d3325955025125925",
"type": "text",
"colSpan": 12,
"name": "name",
"value": "",
"label": "Mask $ ###,##",
"readonly": false,
"dataType": "string",
"mask": "$ ###,##"
}
],
[
{
"var_name": "simplevariable",
"var_uid": "752292886541b20d3325955025125925",
"type": "text",
"colSpan":12,
"name": "name",
"value": "1234567890",
"label": "Mask #,#,#,#,#,#,#,#,#",
"readonly": false,
"dataType": "string",
"mask": "#,#,#,#,#,#,#,#,#"
}
],
[
{
"var_name": "simplevariablethree",
"var_uid": "31319212954524865487616020584523",
"type": "datetime",
"pickType":"datetime",
"colSpan":12,
"name": "name",
"value": "",
"label": "Datetime dd-MM-yyyy hh-mm-ss",
"readonly": false,
"format": "dd-MM-yyyy hh-mm-ss"
}
],
[
{
"var_name": "simplevariablethree",
"var_uid": "31319212954524865487616020584523",
"type": "datetime",
"pickType":"datetime",
"colSpan":12,
"name": "name",
"value": "",
"label": "Datetime dd.MM.yyyy (hh.mm.ss)",
"readonly": false,
"format": "dd.MM.yyyy (hh.mm.ss)"
}
],
[
{
"var_name": "simplevariablethree",
"var_uid": "31319212954524865487616020584523",
"type": "datetime",
"pickType":"date",
"colSpan":12,
"name": "name",
"value": "12/12/1212",
"label": "Date dd/MM/yyyy",
"readonly": false,
"format": "dd/MM/yyyy"
}
],
[
{
"var_name": "simplevariablethree",
"var_uid": "31319212954524865487616020584523",
"type": "datetime",
"pickType":"date",
"colSpan":12,
"name": "name",
"value": "12/12/1212",
"label": "Date dd, MM, yyyy",
"readonly": false,
"format": "dd, MM, yyyy"
}
],
[
{
"var_name": "simplevariablethree",
"var_uid": "31319212954524865487616020584523",
"type": "datetime",
"pickType":"time",
"colSpan":12,
"name": "name",
"value": "",
"label": "Time hh:mm:ss",
"readonly": false,
"format": "hh:mm:ss"
}
],
[
{
"var_name": "simplevariablethree",
"var_uid": "31319212954524865487616020584523",
"type": "datetime",
"pickType":"time",
"colSpan":12,
"name": "name",
"value": "",
"label": "Time [hh] [mm] [ss]",
"readonly": false,
"format": "[hh] [mm] [ss]"
}
],
[
{
"type" : "submit",
"colSpan" : 12,
"label" : "Submit"
}
]
],
"variables":
[
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "users",
"var_name": "users",
"var_allowNull": 1,
"var_sql": "SELECT USR_UID, USR_USERNAME\nFROM USERS\nWHERE USR_USERNAME <> \" \"",
"var_uid": "752292886541b20d3325955025125925"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "country",
"var_name": "country",
"var_allowNull": 1,
"var_sql": "SELECT IC_UID,IC_NAME \nFROM ISO_COUNTRY WHERE IC_NAME <> \" \"",
"var_uid": "943312492541b2101075730071729173"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "subdivision",
"var_name": "subdivision",
"var_allowNull": 1,
"var_sql": "SELECT \nIS_UID,\nIS_NAME FROM ISO_SUBDIVISION WHERE IC_UID = \"@#country\" AND IS_NAME <> \" \"",
"var_uid": "562853519541b20e79b6960026331275"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "location",
"var_name": "location",
"var_allowNull": 1,
"var_sql": "SELECT IL_UID, IL_NAME\nFROM ISO_LOCATION\nWHERE IS_UID = \"@#subdivision\" AND IL_NAME <> \" \" AND IC_UID = \"@#country\"",
"var_uid": "448293955541b20b5e393c3052081446"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "varname",
"var_name": "varname",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "752292886541b20d3325955025125927"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "simplevariable",
"var_name": "simplevariable",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "299463130541b212c93a3d7047589419"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "Simple Variable Two",
"var_name": "simplevariabletwo",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "992707483545248537300e5085346250"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "datetime",
"var_label": "Simple Variable Three",
"var_name": "simplevariablethree",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "31319212954524865487616020584523"
},
{
"var_acceptedValues": [
{
"value": "First Value",
"keyValue": "firstvalue"
},
{
"value": "Second Value",
"keyValue": "secondvalue"
}
],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 100,
"var_fieldType": "string",
"var_label": "optionsvariable",
"var_name": "optionsvariable",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "109090183545298e8505313008393063"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "variablegridone",
"var_name": "variablegridone",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "8391557125458eb60509b60057650758"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 100,
"var_fieldType": "string",
"var_label": "variablegridtwo",
"var_name": "variablegridtwo",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "5746882395458eb6b8b54a2015704374"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "variablegridthree",
"var_name": "variablegridthree",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "5532828265458eb76ebf700002684261"
},
{
"var_acceptedValues": [
{
"value": "variable option 1",
"keyValue": "variable_option_1"
},
{
"value": "variable option 2",
"keyValue": "variable_option_2"
},
{
"value": "variable option 3",
"keyValue": "variable_option_3"
}
],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "variablegridfour",
"var_name": "variablegridfour",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "6551198965458ebe28477c5094393260"
}
]
}
]
}

View File

@@ -0,0 +1,481 @@
{
"name": "form-example5",
"items": [
{
"type":"panel",
"mode": "view",
"items":
[
[
{
"type": "title",
"colSpan": 12,
"name": "title",
"label": "PMDynaform 4 - Mode View"
}
],
[
{
"type": "subtitle",
"colSpan": 12,
"name": "subtitle",
"label": "TextInput Field"
}
],
[
{
"var_name": "simplevariable",
"var_uid": "752292886541b20d3325955025125925",
"type": "text",
"colSpan": 12,
"label": "TextInput field",
"mode": "parent",
"name": "TextName1",
"placeholder": "TextName1",
"defaultValue": "This is the default value 1",
"required": false,
"dataType": "string"
}
],
[
{
"type": "subtitle",
"colSpan": 12,
"name": "subtitle",
"label": "TextArea Field"
}
],
[
{
"var_name": "simplevariable",
"var_uid": "752292886541b20d3325955025125925",
"type": "textarea",
"colSpan": 12,
"mode": "parent",
"label": "TextArea field",
"name": "textarea1",
"defaultValue": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eu quam egestas, scelerisque nibh sit amet, hendrerit metus. Vivamus dapibus dapibus velit, sit amet congue felis blandit ac. Duis non varius massa. Morbi auctor, est quis varius vulputate, ligula tortor vehicula massa, et gravida velit mauris eget velit. In dictum dolor tortor, vel euismod sapien finibus a. Donec et rutrum nulla. Mauris varius feugiat neque at maximus.",
"required": false,
"rows": 3,
"hint": null
}
],
[
{
"type": "subtitle",
"colSpan": 12,
"name": "subtitle",
"label": "Link Field"
}
],
[
{
"var_name": "simplevariable",
"var_uid": "752292886541b20d3325955025125925",
"type": "link",
"colSpan": 12,
"label": "Link field",
"mode": "parent",
"name": "linkName",
"value": "This is the link value",
"href": "http://www.colosa.com/",
"hint": null
}
],
[
{
"type": "subtitle",
"colSpan": 12,
"name": "subtitle",
"label": "Dropdown Field"
}
],
[
{
"var_name": "simplevariable",
"var_uid": "752292886541b20d3325955025125925",
"type": "dropdown",
"colSpan": 12,
"label": "Dropdown field",
"name": "Option",
"mode": "view",
"defaultValue": "option1",
"hint": null,
"options":[
{
"label": "Option 1",
"value": "option1"
},
{
"label": "Option 2",
"value": "option2"
},
{
"label": "Option 3",
"value": "option3"
}
]
}
],
[
{
"type": "subtitle",
"colSpan": 12,
"name": "subtitle",
"label": "Checkbox Field"
}
],
[
{
"var_name": "simplevariable",
"var_uid": "752292886541b20d3325955025125925",
"type": "checkbox",
"colSpan": 12,
"label": "Checkbox field",
"mode": "view",
"required": false,
"hint":null,
"options": [
{
"label": "This is the option A",
"value": 1,
"selected": true
},
{
"label": "This is the option B",
"value": 2
},
{
"label": "This is the option C",
"value": 3,
"selected": true
}
]
}
],
[
{
"type": "subtitle",
"colSpan": 12,
"name": "subtitle",
"label": "RadioGroup Field"
}
],
[
{
"var_name": "simplevariable",
"var_uid": "752292886541b20d3325955025125925",
"type": "radio",
"colSpan": 12,
"label": "RadioGroup field",
"mode": "view",
"defaultValue": 2,
"required": false,
"options": [
{
"label": "This is the option A",
"value": 1
},
{
"label": "This is the option B",
"value": 2
},
{
"label": "This is the option C",
"value": 3
}
],
"hint":null
}
],
[
{
"type": "subtitle",
"colSpan": 12,
"name": "subtitle",
"label": "Datetime Field"
}
],
[
{
"var_name": "simplevariablethree",
"var_uid": "31319212954524865487616020584523",
"type": "datetime",
"pickType":"datetime",
"colSpan": 12,
"mode": "view",
"label": "Datetime field",
"defaultValue": "06/08/2014 15:15:41",
"name": "datetime1",
"required": false,
"hint":null
}
],
[
{
"type": "subtitle",
"colSpan": 12,
"name": "subtitle",
"label": "Date Field"
}
],
[
{
"var_name": "simplevariablethree",
"var_uid": "31319212954524865487616020584523",
"type": "datetime",
"pickType":"date",
"colSpan": 12,
"name": "datetime2",
"mode": "view",
"defaultValue": "06/08/2014",
"label": "Date field",
"required": false,
"hint":null
}
],
[
{
"type": "subtitle",
"colSpan": 12,
"name": "subtitle",
"label": "Time Field"
}
],
[
{
"var_name": "simplevariablethree",
"var_uid": "31319212954524865487616020584523",
"type": "datetime",
"pickType":"time",
"colSpan": 12,
"mode": "view",
"name": "datetime3",
"defaultValue": "15:15:41",
"label": "Time field",
"required": false,
"hint":null
}
],
[
{
"type": "subtitle",
"colSpan": 12,
"name": "subtitle",
"label": "Image Field"
}
],
[
{
"type": "image",
"label": "Image",
"shape": "thumbnail",
"colSpan": 12,
"mode": "parent",
"alt": "Testing the image",
"comment": "The image is related to a Task of the old Processmaker... ",
"src": "http://wiki.processmaker.com/images/c/c2/ConceptsTask.png",
"hint": "Image field"
}
],
[
{
"type": "subtitle",
"colSpan": 12,
"name": "subtitle",
"label": "Button Field"
}
],
[
{
"type" : "button",
"mode": "parent",
"colSpan" : 12,
"label":"Button"
}
]
],
"variables":
[
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "users",
"var_name": "users",
"var_allowNull": 1,
"var_sql": "SELECT USR_UID, USR_USERNAME\nFROM USERS\nWHERE USR_USERNAME <> \" \"",
"var_uid": "752292886541b20d3325955025125925"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "country",
"var_name": "country",
"var_allowNull": 1,
"var_sql": "SELECT IC_UID,IC_NAME \nFROM ISO_COUNTRY WHERE IC_NAME <> \" \"",
"var_uid": "943312492541b2101075730071729173"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "subdivision",
"var_name": "subdivision",
"var_allowNull": 1,
"var_sql": "SELECT \nIS_UID,\nIS_NAME FROM ISO_SUBDIVISION WHERE IC_UID = \"@#country\" AND IS_NAME <> \" \"",
"var_uid": "562853519541b20e79b6960026331275"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "location",
"var_name": "location",
"var_allowNull": 1,
"var_sql": "SELECT IL_UID, IL_NAME\nFROM ISO_LOCATION\nWHERE IS_UID = \"@#subdivision\" AND IL_NAME <> \" \" AND IC_UID = \"@#country\"",
"var_uid": "448293955541b20b5e393c3052081446"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "varname",
"var_name": "varname",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "752292886541b20d3325955025125927"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "simplevariable",
"var_name": "simplevariable",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "299463130541b212c93a3d7047589419"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "Simple Variable Two",
"var_name": "simplevariabletwo",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "992707483545248537300e5085346250"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "datetime",
"var_label": "Simple Variable Three",
"var_name": "simplevariablethree",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "31319212954524865487616020584523"
},
{
"var_acceptedValues": [
{
"value": "First Value",
"keyValue": "firstvalue"
},
{
"value": "Second Value",
"keyValue": "secondvalue"
}
],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 100,
"var_fieldType": "string",
"var_label": "optionsvariable",
"var_name": "optionsvariable",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "109090183545298e8505313008393063"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "variablegridone",
"var_name": "variablegridone",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "8391557125458eb60509b60057650758"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 100,
"var_fieldType": "string",
"var_label": "variablegridtwo",
"var_name": "variablegridtwo",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "5746882395458eb6b8b54a2015704374"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "variablegridthree",
"var_name": "variablegridthree",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "5532828265458eb76ebf700002684261"
},
{
"var_acceptedValues": [
{
"value": "variable option 1",
"keyValue": "variable_option_1"
},
{
"value": "variable option 2",
"keyValue": "variable_option_2"
},
{
"value": "variable option 3",
"keyValue": "variable_option_3"
}
],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "variablegridfour",
"var_name": "variablegridfour",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "6551198965458ebe28477c5094393260"
}
]
}
]
}

View File

@@ -0,0 +1,491 @@
{
"name": "form-example",
"items": [
{
"type":"panel",
"items":
[
[
{
"type": "title",
"colSpan": 12,
"name": "title",
"label": "PMDynaform 5 - Fields disabled"
}
],
[
{
"type": "subtitle",
"colSpan": 12,
"name": "subtitle",
"label": "TextInput Field"
}
],
[
{
"var_name": "simplevariable",
"var_uid": "752292886541b20d3325955025125925",
"type": "text",
"colSpan":12,
"name": "textName1",
"defaultValue": "field1",
"label": "string with max Length",
"required": true,
"readonly": false,
"dataType": "string",
"maxLength": 10,
"textTransform": "upper",
"disabled": true,
"autoComplete": "on",
"hint":null
}
],
[
{
"var_name": "simplevariable",
"var_uid": "752292886541b20d3325955025125925",
"type": "text",
"colSpan":12,
"name": "textName2",
"defaultValue": "field3",
"label": "String",
"disabled": true,
"required": true,
"readonly": false,
"dataType": "string",
"hint":null
}
],
[
{
"var_name": "simplevariable",
"var_uid": "752292886541b20d3325955025125925",
"type": "text",
"colSpan":12,
"name": "textName3",
"defaultValue": "field4",
"label": "String",
"required": true,
"disabled": true,
"readonly": false,
"dataType": "string",
"hint":null
}
],
[
{
"type": "subtitle",
"colSpan": 12,
"name": "subtitle",
"label": "Suggest Field"
}
],
[
{
"var_name": "simplevariable",
"var_uid": "752292886541b20d3325955025125925",
"type": "suggest",
"colSpan":12,
"name": "textName1",
"defaultValue": "field2",
"label": "Suggest",
"required": true,
"readonly": false,
"disabled": true,
"dataType": "integer",
"maxLength": 10,
"options":[],
"hint":null
}
],
[
{
"type": "subtitle",
"colSpan": 12,
"name": "subtitle",
"label": "Link Field"
}
],
[
{
"var_name": "simplevariable",
"var_uid": "752292886541b20d3325955025125925",
"type": "link",
"colSpan":12,
"name": "textName1",
"value": "This is the link value",
"label": "link",
"required": true,
"disabled": true,
"maxLength": 10,
"hint":null,
"readOnly": true
}
],
[
{
"type": "subtitle",
"colSpan": 12,
"name": "subtitle",
"label": "Dropdown Field"
}
],
[
{
"var_name": "simplevariable",
"var_uid": "752292886541b20d3325955025125925",
"type": "dropdown",
"colSpan":12,
"name": "Option",
"label": "Options",
"readonly": false,
"disabled": true,
"options":[
{
"label": "Option 1",
"value": "option1"
},
{
"label": "Option 2",
"value": "option2"
},
{
"label": "Option 3",
"value": "option3"
}
],
"hint":null
}
],
[
{
"type": "subtitle",
"colSpan": 12,
"name": "subtitle",
"label": "Checkbox Field"
}
],
[
{
"var_name": "simplevariable",
"var_uid": "752292886541b20d3325955025125925",
"type": "checkbox",
"colSpan":12,
"name": "chekbox1",
"label": "Checkbox",
"disabled": true,
"required": true,
"options": [
{
"label": "This is the option A",
"value": 1,
"selected": true
},
{
"label": "This is the option B",
"value": 2
},
{
"label": "This is the option C",
"value": 3,
"selected": true
}
],
"hint":null
}
],
[
{
"type": "subtitle",
"colSpan": 12,
"name": "subtitle",
"label": "TextArea Field"
}
],
[
{
"var_name": "simplevariable",
"var_uid": "752292886541b20d3325955025125925",
"type": "textarea",
"colSpan":12,
"label": "Textarea",
"name": "textarea1",
"placeholder": "Column1",
"defaultValue": "Column1",
"maxLength": 15,
"disabled": true,
"required": true,
"readonly": false,
"rows":3,
"cols":5,
"hint":null
}
],
[
{
"var_name": "simplevariable",
"var_uid": "752292886541b20d3325955025125925",
"type": "radio",
"colSpan":12,
"name": "radiogroup1",
"defaultValue": "1",
"label": "Radio Grp",
"disabled": true,
"required": true,
"options": [
{
"label": "This is the option A",
"value": 1
},
{
"label": "This is the option B",
"value": 2
},
{
"label": "This is the option C",
"value": 3
}
],
"hint":null
}
],
[
{
"var_name": "simplevariablethree",
"var_uid": "31319212954524865487616020584523",
"type": "datetime",
"pickType":"datetime",
"colSpan":12,
"name": "datetime1",
"defaultValue": "",
"label": "Date time",
"disabled": true,
"required": true,
"readonly": false,
"hint":null
}
],
[
{
"var_name": "simplevariablethree",
"var_uid": "31319212954524865487616020584523",
"type": "datetime",
"pickType":"date",
"colSpan":12,
"name": "datetime2",
"defaultValue": "",
"label": "Date",
"required": true,
"disabled": true,
"readonly": false,
"hint":null
}
],
[
{
"var_name": "simplevariablethree",
"var_uid": "31319212954524865487616020584523",
"type": "datetime",
"pickType":"time",
"colSpan":12,
"name": "datetime3",
"defaultValue": "",
"label": "Time",
"disabled": true,
"required": true,
"readonly": false,
"hint":null
}
],
[
{
"type" : "submit",
"colSpan" : 12,
"label" : "Submit"
}
]
],
"variables":
[
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "users",
"var_name": "users",
"var_allowNull": 1,
"var_sql": "SELECT USR_UID, USR_USERNAME\nFROM USERS\nWHERE USR_USERNAME <> \" \"",
"var_uid": "752292886541b20d3325955025125925"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "country",
"var_name": "country",
"var_allowNull": 1,
"var_sql": "SELECT IC_UID,IC_NAME \nFROM ISO_COUNTRY WHERE IC_NAME <> \" \"",
"var_uid": "943312492541b2101075730071729173"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "subdivision",
"var_name": "subdivision",
"var_allowNull": 1,
"var_sql": "SELECT \nIS_UID,\nIS_NAME FROM ISO_SUBDIVISION WHERE IC_UID = \"@#country\" AND IS_NAME <> \" \"",
"var_uid": "562853519541b20e79b6960026331275"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "location",
"var_name": "location",
"var_allowNull": 1,
"var_sql": "SELECT IL_UID, IL_NAME\nFROM ISO_LOCATION\nWHERE IS_UID = \"@#subdivision\" AND IL_NAME <> \" \" AND IC_UID = \"@#country\"",
"var_uid": "448293955541b20b5e393c3052081446"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "varname",
"var_name": "varname",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "752292886541b20d3325955025125927"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "simplevariable",
"var_name": "simplevariable",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "299463130541b212c93a3d7047589419"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "Simple Variable Two",
"var_name": "simplevariabletwo",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "992707483545248537300e5085346250"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "datetime",
"var_label": "Simple Variable Three",
"var_name": "simplevariablethree",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "31319212954524865487616020584523"
},
{
"var_acceptedValues": [
{
"value": "First Value",
"keyValue": "firstvalue"
},
{
"value": "Second Value",
"keyValue": "secondvalue"
}
],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 100,
"var_fieldType": "string",
"var_label": "optionsvariable",
"var_name": "optionsvariable",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "109090183545298e8505313008393063"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "variablegridone",
"var_name": "variablegridone",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "8391557125458eb60509b60057650758"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 100,
"var_fieldType": "string",
"var_label": "variablegridtwo",
"var_name": "variablegridtwo",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "5746882395458eb6b8b54a2015704374"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "variablegridthree",
"var_name": "variablegridthree",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "5532828265458eb76ebf700002684261"
},
{
"var_acceptedValues": [
{
"value": "variable option 1",
"keyValue": "variable_option_1"
},
{
"value": "variable option 2",
"keyValue": "variable_option_2"
},
{
"value": "variable option 3",
"keyValue": "variable_option_3"
}
],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "variablegridfour",
"var_name": "variablegridfour",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "6551198965458ebe28477c5094393260"
}
]
}
]
}

View File

@@ -0,0 +1,328 @@
{
"name": "form-example",
"items": [
{
"type":"panel",
"items":
[
[
{
"type": "title",
"colSpan": 12,
"name": "title",
"label": "PMDynaform 6 - Formula"
}
],
[
{
"var_name": "simplevariable",
"var_uid": "299463130541b212c93a3d7047589419",
"type": "text",
"colSpan":4,
"name": "fieldOne",
"label": "Field 1",
"required": false,
"readonly": false,
"placeholder": "enter a number",
"dataType": "integer",
"maxLength": 10
},
{
"var_name": "simplevariabletwo",
"var_uid": "992707483545248537300e5085346250",
"type": "text",
"colSpan":4,
"name": "fieldTwo",
"label": "Field 2",
"readonly": false,
"dataType": "integer",
"placeholder": "enter a number",
"maxLength": 5
},
{
"var_name": "var_three",
"var_uid": "123456789",
"type": "text",
"colSpan":4,
"name": "fieldThree",
"label": "Field 3",
"readonly": false,
"dataType": "integer",
"placeholder": "enter a number",
"maxLength": 5
}
],
[
{
"type": "text",
"colSpan":12,
"name": "result3",
"label": "fieldOne + fieldTwo",
"formula": "fieldOne + fieldTwo",
"var_uid": "12345",
"var_name": "variable1-name",
"readonly": true,
"dataType": "integer",
"maxLength": 10
}
],
[
{
"type": "text",
"colSpan":12,
"name": "result3",
"label": "fieldOne + fieldTwo + fieldThree",
"formula": "fieldOne + fieldTwo + fieldThree",
"readonly": true,
"var_uid": "56789",
"var_name": "variable1-name",
"dataType": "integer",
"maxLength": 10
}
],
[
{
"type": "text",
"colSpan":12,
"name": "result3",
"label": "100 + fieldOne + fieldTwo",
"formula": "100 + fieldOne + fieldTwo",
"readonly": true,
"var_uid": "012345678",
"var_name": "variable1-name",
"dataType": "integer",
"maxLength": 10
}
],
[
{
"type": "text",
"colSpan":12,
"name": "result2",
"label": "(fieldOne * fieldTwo) - (100 - (fieldOne +100)-200 - (fieldTwo-1))*fieldOne",
"formula": "(fieldOne * fieldTwo) - (100 - (fieldOne +100)-200 - (fieldTwo-1))*fieldOne",
"readonly": true,
"dataType": "integer",
"var_uid": "13578",
"var_name": "variable1-name",
"maxLength": 10
}
],
[
{
"type": "text",
"colSpan":12,
"name": "result1",
"label": "2 + 2 - sqrt(4) + fieldOne + fieldTwo + fieldOne +1000",
"formula": "2 + 2 - sqrt(4) + fieldOne + fieldTwo + fieldOne +1000",
"readonly": true,
"dataType": "integer",
"var_uid": "2468",
"var_name": "variable1-name",
"maxLength": 10
}
],
[
{
"type" : "submit",
"colSpan" : 12,
"label" : "Submit"
}
]
],
"variables":
[
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "formula-one",
"var_name": "var_three",
"var_allowNull": 1,
"var_sql": "SELECT USR_UID, USR_USERNAME\nFROM USERS\nWHERE USR_USERNAME <> \" \"",
"var_uid": "123456789"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "formula-two",
"var_name": "formula-two",
"var_allowNull": 1,
"var_sql": "SELECT IC_UID,IC_NAME \nFROM ISO_COUNTRY WHERE IC_NAME <> \" \"",
"var_uid": "56789"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "subdivision",
"var_name": "formula-three",
"var_allowNull": 1,
"var_sql": "SELECT \nIS_UID,\nIS_NAME FROM ISO_SUBDIVISION WHERE IC_UID = \"@#country\" AND IS_NAME <> \" \"",
"var_uid": "012345678"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "location",
"var_name": "formula-fourth",
"var_allowNull": 1,
"var_sql": "SELECT IL_UID, IL_NAME\nFROM ISO_LOCATION\nWHERE IS_UID = \"@#subdivision\" AND IL_NAME <> \" \" AND IC_UID = \"@#country\"",
"var_uid": "13578"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "varname",
"var_name": "varname1",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "2468"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "varname",
"var_name": "varname2",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "12345"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "simplevariable",
"var_name": "simplevariable",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "299463130541b212c93a3d7047589419"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "Simple Variable Two",
"var_name": "simplevariabletwo",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "992707483545248537300e5085346250"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "datetime",
"var_label": "Simple Variable Three",
"var_name": "simplevariablethree",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "31319212954524865487616020584523"
},
{
"var_acceptedValues": [
{
"value": "First Value",
"keyValue": "firstvalue"
},
{
"value": "Second Value",
"keyValue": "secondvalue"
}
],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 100,
"var_fieldType": "string",
"var_label": "optionsvariable",
"var_name": "optionsvariable",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "109090183545298e8505313008393063"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "variablegridone",
"var_name": "variablegridone",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "8391557125458eb60509b60057650758"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 100,
"var_fieldType": "string",
"var_label": "variablegridtwo",
"var_name": "variablegridtwo",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "5746882395458eb6b8b54a2015704374"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "variablegridthree",
"var_name": "variablegridthree",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "5532828265458eb76ebf700002684261"
},
{
"var_acceptedValues": [
{
"value": "variable option 1",
"keyValue": "variable_option_1"
},
{
"value": "variable option 2",
"keyValue": "variable_option_2"
},
{
"value": "variable option 3",
"keyValue": "variable_option_3"
}
],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "variablegridfour",
"var_name": "variablegridfour",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "6551198965458ebe28477c5094393260"
}
]
}
]
}

View File

@@ -0,0 +1,690 @@
{
"name": "form-example",
"items": [
{
"type":"panel",
"items":
[
[
{
"type": "title",
"colSpan": 12,
"name": "title",
"label": "PMDynaform 7 - Layouts"
}
],
[
{
"var_name": "field10",
"var_uid": "10",
"type": "text",
"colSpan":12,
"name": "textName1",
"defaultValue": "1000",
"label": "Integer with max Length",
"required": true,
"readonly": false,
"valueType": "integer",
"maxLength": 10,
"autoComplete": "on",
"hint":null
}
],
[
{
"var_name": "field11",
"var_uid": "11",
"type": "suggest",
"colSpan":12,
"name": "textName1",
"defaultValue": "field2",
"label": "Suggest",
"required": true,
"readonly": false,
"valueType": "string",
"maxLength": 10,
"options":[
{
"label": "First",
"value": "FirstValue"
},
{
"label": "Second",
"value": "SecondValue"
}
],
"hint":null
}
],
[
{
"var_name": "field12",
"var_uid": "12",
"type": "link",
"colSpan":12,
"name": "textName1",
"value": "This is the link value",
"label": "link",
"required": true,
"maxLength": 10,
"hint":null,
"readOnly": true
}
],
[
{
"var_name": "field13",
"var_uid": "13",
"type": "text",
"colSpan":12,
"name": "textName2",
"defaultValue": "field3",
"label": "Float",
"required": true,
"readonly": false,
"valueType": "float",
"hint":null
}
],
[
{
"var_name": "field14",
"var_uid": "14",
"type": "text",
"colSpan":12,
"name": "textName3",
"defaultValue": "field4",
"label": "String",
"required": true,
"readonly": false,
"valueType": "string",
"hint":null
}
],
[
{
"var_name": "field15",
"var_uid": "15",
"type": "text",
"colSpan":12,
"name": "textName4",
"defaultValue": "New Last name",
"label": "Lastname",
"required": false,
"readonly": false,
"hint":null
}
],
[
{
"var_name": "field16",
"var_uid": "16",
"type": "dropdown",
"colSpan":12,
"name": "Option",
"label": "Options",
"defaultValue": "option1",
"readonly": false,
"options":[
{
"label": "Option 1",
"value": "option1"
},
{
"label": "Option 2",
"value": "option2"
},
{
"label": "Option 3",
"value": "option3"
}
],
"hint":null
}
],
[
{
"var_name": "field17",
"var_uid": "17",
"type": "checkbox",
"colSpan":12,
"name": "chekbox1",
"label": "Checkbox",
"required": true,
"options": [
{
"label": "This is the option A",
"value": 1,
"selected": true
},
{
"label": "This is the option B",
"value": 2
},
{
"label": "This is the option C",
"value": 3,
"selected": true
}
],
"hint":null
}
],
[
{
"var_name": "field18",
"var_uid": "18",
"type": "checkbox",
"colSpan":12,
"name": "checkbox2",
"label": "Incomplete Checkbox",
"hint":null
}
],
[
{
"var_name": "field19",
"var_uid": "19",
"type": "text",
"colSpan":6,
"name": "textName5",
"defaultValue": "column1",
"label": "TextField",
"placeholder": "column1",
"required": false,
"readonly": false,
"hint":null
},
{
"var_name": "field20",
"var_uid": "20",
"type": "text",
"colSpan":6,
"name": "name",
"defaultValue": "column2",
"label": "TextField",
"placeholder": "column2",
"required": false,
"readonly": false,
"hint":null
}
],
[
{
"var_name": "field21",
"var_uid": "21",
"type": "textarea",
"colSpan":6,
"label": "Textarea",
"name": "textarea1",
"placeholder": "Column1",
"defaultValue": "Column1",
"maxLength": 15,
"required": true,
"readonly": false,
"rows":3,
"cols":5,
"hint":null
},
{
"var_name": "field22",
"var_uid": "22",
"type": "textarea",
"colSpan":6,
"label": "Textarea",
"name": "textarea2",
"placeholder": "Column2",
"defaultValue": "Column2",
"required": false,
"readonly": false,
"rows":3,
"cols":5,
"hint":null
}
],
[
{
"var_name": "field23",
"var_uid": "23",
"type": "text",
"colSpan":4,
"name": "textName6",
"defaultValue": "123",
"label": "Text Field",
"placeholder": "",
"required": true,
"readonly": false,
"hint":null
},
{
"var_name": "field24",
"var_uid": "24",
"type": "checkbox",
"colSpan":4,
"name": "checkbox3",
"label": "CheckBox",
"required": false,
"options": [
{
"label" : "optA",
"value" : 1,
"selected" : true
},
{
"label" : "optB",
"value" : 2,
"selected": true
}
],
"hint":null
},
{
"var_name": "field10",
"var_uid": "10",
"type": "radio",
"colSpan":4,
"name": "radiogroup1",
"defaultValue": "1",
"label": "Radio Grp",
"required": true,
"options": [
{
"label" : "optA",
"value" : "1"
},
{
"label" : "optB",
"value" : "2"
}
],
"hint":null
}
],
[
{
"var_name": "datetime",
"var_uid": "datetimeId",
"type": "datetime",
"pickType":"datetime",
"colSpan":4,
"name": "datetime1",
"defaultValue": "",
"label": "Date time",
"required": true,
"readonly": false,
"hint":null
},
{
"var_name": "datetime",
"var_uid": "datetimeId",
"type": "datetime",
"pickType":"date",
"colSpan":4,
"name": "datetime2",
"defaultValue": "",
"label": "Date",
"required": true,
"readonly": false,
"hint":null
},
{
"var_name": "datetime",
"var_uid": "datetimeId",
"type": "datetime",
"pickType":"time",
"colSpan":4,
"name": "datetime3",
"defaultValue": "",
"label": "Time",
"required": true,
"readonly": false,
"hint":null
}
],
[
{
"var_name": "field11",
"var_uid": "11",
"type": "textarea",
"colSpan":4,
"label": "Text area",
"name": "textarea3",
"placeholder": "placeholder",
"defaultValue": "123",
"maxLength": 10,
"required": true,
"readonly": false,
"rows":3,
"cols":5,
"hint":null
},
{
"var_name": "field11",
"var_uid": "11",
"type": "text",
"colSpan":4,
"name": "textName7",
"defaultValue": "123",
"label": "TextField",
"placeholder": "placeholder",
"required": false,
"readonly": false,
"hint":null
},
{
"var_name": "field12",
"var_uid": "12",
"type": "dropdown",
"colSpan":4,
"name": "dropdown1",
"label": "Options",
"defaultValue": "option2",
"required": true,
"readonly": false,
"options":[
{
"label": "Select...",
"value": ""
},
{
"label": "Option 1",
"value": "option1"
},
{
"label": "Option 2",
"value": "option2"
},
{
"label": "Option 3",
"value": "option3"
}
],
"hint":null
}
],
[
{
"var_name": "field12",
"var_uid": "12",
"type": "dropdown",
"name": "continent",
"colSpan":4,
"label": "Continent",
"dependentFields": ["country"],
"options":[
{
"label": "America",
"value": "american"
},
{
"label": "Asia",
"value": "asia"
},
{
"label": "Europe",
"value": "europe"
}
],
"hint":null
},
{
"var_name": "field11",
"var_uid": "11",
"type": "dropdown",
"name": "country",
"colSpan":4,
"label": "Country",
"dependentFields": ["city"],
"maxLength": 10,
"required": false,
"readonly": false,
"options":[],
"hint":null
},
{
"var_name": "field10",
"var_uid": "10",
"type": "dropdown",
"name": "city",
"colSpan":4,
"label": "City",
"maxLength": 10,
"required": false,
"readonly": false,
"options":[],
"hint":null
}
],
[
{
"type" : "button",
"colSpan" : 6,
"label":"Button"
},
{
"type" : "submit",
"colSpan" : 6,
"label" : "Submit"
}
]
],
"variables":
[
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "users",
"var_name": "field10",
"var_allowNull": 1,
"var_sql": "SELECT USR_UID, USR_USERNAME\nFROM USERS\nWHERE USR_USERNAME <> \" \"",
"var_uid": "10"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "country",
"var_name": "field11",
"var_allowNull": 1,
"var_sql": "SELECT IC_UID,IC_NAME \nFROM ISO_COUNTRY WHERE IC_NAME <> \" \"",
"var_uid": "11"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "subdivision",
"var_name": "field12",
"var_allowNull": 1,
"var_sql": "SELECT \nIS_UID,\nIS_NAME FROM ISO_SUBDIVISION WHERE IC_UID = \"@#country\" AND IS_NAME <> \" \"",
"var_uid": "12"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "location",
"var_name": "field13",
"var_allowNull": 1,
"var_sql": "SELECT IL_UID, IL_NAME\nFROM ISO_LOCATION\nWHERE IS_UID = \"@#subdivision\" AND IL_NAME <> \" \" AND IC_UID = \"@#country\"",
"var_uid": "13"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "varname",
"var_name": "field14",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "14"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "simplevariable",
"var_name": "field15",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "15"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "Simple Variable Two",
"var_name": "field16",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "16"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "datetime",
"var_label": "Simple Variable Three",
"var_name": "field17",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "17"
},
{
"var_acceptedValues": [
{
"value": "First Value",
"keyValue": "firstvalue"
},
{
"value": "Second Value",
"keyValue": "secondvalue"
}
],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 100,
"var_fieldType": "string",
"var_label": "optionsvariable",
"var_name": "field18",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "18"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "variablegridone",
"var_name": "field19",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "19"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 100,
"var_fieldType": "string",
"var_label": "field20",
"var_name": "field20",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "20"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "variablegridthree",
"var_name": "field21",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "21"
},
{
"var_acceptedValues": [
{
"value": "variable option 1",
"keyValue": "variable_option_1"
},
{
"value": "variable option 2",
"keyValue": "variable_option_2"
},
{
"value": "variable option 3",
"keyValue": "variable_option_3"
}
],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "variablegridfour",
"var_name": "field22",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "22"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "variablegridthree",
"var_name": "field23",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "23"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "variablegridthree",
"var_name": "field24",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "24"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "variablegridthree",
"var_name": "datetime",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "datetimeId"
}
]
}
]
}

View File

@@ -0,0 +1,715 @@
{
"name": "form-example",
"items":
[
{
"type": "form",
"items":
[
[
{
"colSpan": 12,
"name": "91621240253e8ed7d146fc9075381174",
"label": "PMDynaform 8 - Layouts",
"type": "title"
}
],
[
{
"var_name": "plainVariable",
"var_uid": "10",
"dataType": "float",
"colSpan": 4,
"name": "drp_Cost",
"label": "Cost",
"defaultValue": "",
"required": false,
"hint": "",
"dependentFields": [
"age",
"text_name_1",
"text_name",
"text_name_2",
"text_name_3",
"text_name_4"
],
"dependenceStates": {
"directDependence": "[]",
"indirectDependence": "[]",
"dependentFields": "[\"age\",\"text_name_1\",\"text_name\",\"text_name_2\",\"text_name_3\",\"text_name_4\"]"
},
"textTransform": "lower",
"validate": "alphabetic",
"mask": "",
"maxLength": 100,
"formula": "(text_name_1-10)-text_name+(2+text_name)+sqrt(4)",
"type": "text"
},
{
"var_name": "plainVariable",
"var_uid": "11",
"dataType": "datetime",
"colSpan": 4,
"name": "drp_Expires",
"label": "Expires",
"defaultValue": "",
"required": false,
"hint": "",
"mask": "",
"typeOfDateRange": [],
"editable": false,
"pickDate": "date",
"type": "datetime"
},
{
"var_name": "plainVariable",
"var_uid": "11",
"dataType": "date",
"colSpan": 4,
"name": "date_of_birth",
"label": "Date of Birth",
"defaultValue": "",
"required": false,
"hint": "",
"mask": "",
"typeOfDateRange": [],
"editable": false,
"pickDate": "date",
"type": "datetime"
}
],
[
{
"var_name": "plainVariable",
"var_uid": "12",
"dataType": "integer",
"colSpan": 6,
"name": "age",
"label": "Age",
"defaultValue": "",
"required": false,
"hint": "",
"dependentFields": [
"text_name_1",
"text_name",
"text_name_2",
"text_name_3",
"text_name_4"
],
"dependenceStates": {
"directDependence": "[\"drp_Cost\"]",
"indirectDependence": "[]",
"dependentFields": "[\"text_name_1\",\"text_name\",\"text_name_2\",\"text_name_3\",\"text_name_4\"]"
},
"includeOptionGroup": false,
"disabled": false,
"options": [
{
"value": "2",
"label": "Two",
"disabled": false,
"isGroup": false
},
{
"value": "3",
"label": "Three",
"disabled": false,
"isGroup": false
},
{
"value": "3",
"label": "Three",
"disabled": false,
"isGroup": false
},
{
"value": "4",
"label": "Four",
"disabled": false,
"isGroup": false
},
{
"value": "5",
"label": "Five",
"disabled": false,
"isGroup": false
}
],
"type": "dropdown"
},
{
"var_name": "plainVariable",
"var_uid": "13",
"dataType": "boolean",
"colSpan": 6,
"name": "var_gender",
"label": "Gender",
"defaultValue": "",
"required": false,
"hint": "",
"disabled": false,
"options": [
{
"label": "One",
"value": "1",
"disabled": false,
"selected": false
},
{
"label": "Three",
"value": "3",
"disabled": false,
"selected": false
},
{
"label": "Three",
"value": "3",
"disabled": false,
"selected": false
},
{
"label": "Four",
"value": "4",
"disabled": false,
"selected": false
},
{
"label": "Five",
"value": "5",
"disabled": false,
"selected": false
}
],
"type": "checkbox"
}
],
[
{
"colSpan": 12,
"name": "75043463053e8ed99148095072334632",
"label": "[Subtitle]",
"type": "subtitle"
}
],
[
{
"colSpan": 4
},
{
"var_name": "plainVariable",
"var_uid": "14",
"dataType": "string",
"colSpan": 4,
"name": "text_name_1",
"label": "Name",
"defaultValue": "Noel",
"required": false,
"hint": "",
"dependentFields": [
"text_name",
"text_name_2",
"text_name_3",
"text_name_4"
],
"dependenceStates": {
"directDependence": "[\"drp_Cost\",\"age\"]",
"indirectDependence": "[\"drp_Cost\"]",
"dependentFields": "[\"text_name\",\"text_name_2\",\"text_name_3\",\"text_name_4\"]"
},
"textTransform": "none",
"validate": "any",
"mask": "",
"maxLength": 100,
"formula": "",
"type": "text"
},
{
"colSpan": 4
}
],
[
{
"var_name": "plainVariable",
"var_uid": "15",
"dataType": "string",
"colSpan": 12,
"name": "text_name",
"label": "Name",
"defaultValue": "TexField",
"required": true,
"hint": "",
"dependentFields": [
"text_name_2",
"text_name_3",
"text_name_4"
],
"dependenceStates": {
"directDependence": "[\"drp_Cost\",\"age\",\"text_name_1\"]",
"indirectDependence": "[\"drp_Cost\",\"age\"]",
"dependentFields": "[\"text_name_2\",\"text_name_3\",\"text_name_4\"]"
},
"textTransform": "upper",
"validate": "integer",
"mask": "",
"maxLength": 100,
"formula": "",
"type": "text"
}
],
[
{
"var_name": "plainVariable",
"var_uid": "16",
"dataType": "string",
"colSpan": 12,
"name": "text_name_2",
"label": "Nombre",
"defaultValue": "",
"required": false,
"hint": "",
"dependentFields": [
"text_name_3",
"text_name_4"
],
"dependenceStates": {
"directDependence": "[\"drp_Cost\",\"age\",\"text_name_1\",\"text_name\"]",
"indirectDependence": "[\"drp_Cost\",\"age\",\"text_name_1\"]",
"dependentFields": "[\"text_name_3\",\"text_name_4\"]"
},
"sql": "",
"disabled": false,
"type": "suggest"
}
],
[
{
"var_name": "plainVariable",
"var_uid": "17",
"dataType": "string",
"colSpan": 6,
"name": "text_name_3",
"label": "Nombre",
"defaultValue": "",
"required": false,
"hint": "",
"dependentFields": [
"text_name_4"
],
"dependenceStates": {
"directDependence": "[\"drp_Cost\",\"age\",\"text_name_1\",\"text_name\",\"text_name_2\"]",
"indirectDependence": "[\"drp_Cost\",\"age\",\"text_name_1\",\"text_name\"]",
"dependentFields": "[\"text_name_4\"]"
},
"textTransform": "none",
"validate": "any",
"mask": "",
"maxLength": 100,
"formula": "",
"type": "text"
},
{
"var_name": "plainVariable",
"var_uid": "18",
"dataType": "string",
"colSpan": 6,
"name": "text_name_4",
"label": "Nombre",
"defaultValue": "",
"required": false,
"hint": "",
"dependentFields": [],
"dependenceStates": {
"directDependence": "[\"drp_Cost\",\"age\",\"text_name_1\",\"text_name\",\"text_name_2\",\"text_name_3\"]",
"indirectDependence": "[\"drp_Cost\",\"age\",\"text_name_1\",\"text_name\",\"text_name_2\"]",
"dependentFields": "[]"
},
"textTransform": "none",
"validate": "any",
"mask": "",
"maxLength": 100,
"formula": "",
"type": "text"
}
],
[
{
"var_name": "plainVariable",
"var_uid": "19",
"dataType": "string",
"colSpan": 12,
"name": "var_options",
"label": "fibonaci",
"defaultValue": "",
"required": false,
"hint": "",
"dependentFields": [],
"dependenceStates": {
"directDependence": "[]",
"indirectDependence": "[]",
"dependentFields": "[]"
},
"includeOptionGroup": false,
"disabled": false,
"options": [
{
"value": "1",
"label": "One",
"disabled": false,
"isGroup": false
},
{
"value": "2",
"label": "Three",
"disabled": false,
"isGroup": false
},
{
"value": "3",
"label": "Three",
"disabled": false,
"isGroup": false
},
{
"value": "4",
"label": "Four",
"disabled": false,
"isGroup": false
},
{
"value": "5",
"label": "Five",
"disabled": false,
"isGroup": false
}
],
"type": "dropdown"
}
],
[
{
"var_name": "plainVariable",
"var_uid": "20",
"dataType": "string",
"colSpan": 12,
"name": "var_options_1",
"label": "fibonaci",
"defaultValue": "",
"required": false,
"hint": "",
"disabled": false,
"options": [
{
"label": "Two",
"value": "1",
"disabled": false,
"selected": true
},
{
"label": "Three",
"value": "2",
"disabled": false,
"selected": true
},
{
"label": "Three",
"value": "3",
"disabled": false,
"selected": false
},
{
"label": "Four",
"value": "4",
"disabled": false,
"selected": false
},
{
"label": "Five",
"value": "5",
"disabled": false,
"selected": false
}
],
"type": "checkbox"
}
],
[
{
"var_name": "plainVariable",
"var_uid": "21",
"dataType": "string",
"colSpan": 12,
"name": "var_options_2",
"label": "fibonaci",
"defaultValue": "",
"required": false,
"hint": "",
"disabled": null,
"options": [
{
"label": "Two",
"value": "1",
"disabled": false,
"selected": false
},
{
"label": "Three",
"value": "2",
"disabled": false,
"selected": true
},
{
"label": "Three",
"value": "3",
"disabled": false,
"selected": false
},
{
"label": "Four",
"value": "4",
"disabled": false,
"selected": false
},
{
"label": "Five",
"value": "5",
"disabled": false,
"selected": false
}
],
"type": "radio"
}
],
[
{
"label": "Submit",
"colSpan": 6,
"type": "submit"
},
{
"label": "Button",
"colSpan": 6,
"type": "button"
}
]
],
"variables":
[
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "users",
"var_name": "field10",
"var_allowNull": 1,
"var_sql": "SELECT USR_UID, USR_USERNAME\nFROM USERS\nWHERE USR_USERNAME <> \" \"",
"var_uid": "10"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "country",
"var_name": "field11",
"var_allowNull": 1,
"var_sql": "SELECT IC_UID,IC_NAME \nFROM ISO_COUNTRY WHERE IC_NAME <> \" \"",
"var_uid": "11"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "subdivision",
"var_name": "field12",
"var_allowNull": 1,
"var_sql": "SELECT \nIS_UID,\nIS_NAME FROM ISO_SUBDIVISION WHERE IC_UID = \"@#country\" AND IS_NAME <> \" \"",
"var_uid": "12"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "location",
"var_name": "field13",
"var_allowNull": 1,
"var_sql": "SELECT IL_UID, IL_NAME\nFROM ISO_LOCATION\nWHERE IS_UID = \"@#subdivision\" AND IL_NAME <> \" \" AND IC_UID = \"@#country\"",
"var_uid": "13"
},
{
"var_acceptedValues": [],
"var_dbConnection": "workflow",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "varname",
"var_name": "field14",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "14"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "simplevariable",
"var_name": "field15",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "15"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "Simple Variable Two",
"var_name": "field16",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "16"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "datetime",
"var_label": "Simple Variable Three",
"var_name": "field17",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "17"
},
{
"var_acceptedValues": [
{
"value": "First Value",
"keyValue": "firstvalue"
},
{
"value": "Second Value",
"keyValue": "secondvalue"
}
],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 100,
"var_fieldType": "string",
"var_label": "optionsvariable",
"var_name": "field18",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "18"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "variablegridone",
"var_name": "field19",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "19"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 100,
"var_fieldType": "string",
"var_label": "field20",
"var_name": "field20",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "20"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "variablegridthree",
"var_name": "field21",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "21"
},
{
"var_acceptedValues": [
{
"value": "variable option 1",
"keyValue": "variable_option_1"
},
{
"value": "variable option 2",
"keyValue": "variable_option_2"
},
{
"value": "variable option 3",
"keyValue": "variable_option_3"
}
],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "variablegridfour",
"var_name": "field22",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "22"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "variablegridthree",
"var_name": "field23",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "23"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "variablegridthree",
"var_name": "field24",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "24"
},
{
"var_acceptedValues": [],
"var_dbConnection": "none",
"var_defaultValue": "",
"var_fieldSize": 10,
"var_fieldType": "string",
"var_label": "variablegridthree",
"var_name": "datetime",
"var_allowNull": 1,
"var_sql": "",
"var_uid": "datetimeId"
}
]
}
]
}

View File

@@ -0,0 +1,80 @@
{
"name": "form-files",
"items": [
{
"type":"panel",
"action": "server.php",
"method": "post",
"items":
[
[
{
"type": "title",
"colSpan": 12,
"name": "title",
"label": "PMDynaform 9 - Upload File - Working"
}
],
[
{
"type": "file",
"label": "Multiple upload:true & DnD:true & preview:true [jpg, pdf, mp3, png, mp4]",
"colSpan":12,
"required": true,
"multiple": true,
"dnd": true,
"preview": false,
"extensions": "jpg, pdf, mp3, png, mp4",
"size": 30,
"name": "textName1",
"hint": "Upload file"
}
],
[
{
"type": "file",
"label": "Multiple upload:false & DnD:false & preview:true",
"colSpan":12,
"multiple": false,
"dnd": false,
"preview": true,
"name": "textName1",
"hint": "Upload file"
}
],
[
{
"type": "file",
"label": "Multiple upload:true & DnD: false",
"colSpan":6,
"multiple": true,
"dnd": false,
"preview": false,
"name": "textName1",
"hint": "Upload file"
},
{
"type": "file",
"label": "Multiple upload:true & DnD: false",
"colSpan":6,
"multiple": true,
"name": "textName1",
"hint": "Upload file"
}
],
[
{
"type" : "button",
"colSpan" : 6,
"label":"Button"
},
{
"type" : "submit",
"colSpan" : 6,
"label" : "Submit"
}
]
]
}
]
}