{
    "name": "f1",
    "description": "",
    "items": [
        {
            "type": "form",
            "variable": "",
            "var_uid": "",
            "dataType": "",
            "id": "8463235965ee964cd21d5d5065152425",
            "name": "f1",
            "description": "",
            "mode": "edit",
            "script": "",
            "language": "en",
            "externalLibs": "",
            "printable": false,
            "items": [
                [
                    {
                        "type": "title",
                        "id": "title0000000001",
                        "label": "Variables reference on grids",
                        "ariaLabel": "",
                        "colSpan": 12
                    }
                ],
                [
                    {
                        "type": "dropdown",
                        "variable": "stateDropdown",
                        "var_uid": "6433597845eea6b2ad10097077910842",
                        "dataType": "string",
                        "protectedValue": false,
                        "id": "stateDropdown",
                        "name": "stateDropdown",
                        "label": "State Dropdown",
                        "tabIndex": "",
                        "defaultValue": "",
                        "placeholder": "",
                        "hint": "",
                        "ariaLabel": "",
                        "required": false,
                        "requiredFieldErrorMessage": "",
                        "mode": "parent",
                        "datasource": "database",
                        "dbConnection": "workflow",
                        "dbConnectionLabel": "PM Database",
                        "sql": "SELECT IC_UID, IC_NAME FROM ISO_COUNTRY",
                        "memoryCache": false,
                        "dataVariable": "",
                        "options": [],
                        "var_name": "stateDropdown",
                        "colSpan": 12
                    }
                ],
                [
                    {
                        "type": "dropdown",
                        "variable": "countryDropdown",
                        "var_uid": "8461594435ee964da8652b7084948416",
                        "dataType": "string",
                        "protectedValue": false,
                        "id": "countryDropdown",
                        "name": "countryDropdown",
                        "label": "Country Dropdown",
                        "tabIndex": "",
                        "defaultValue": "",
                        "placeholder": "",
                        "hint": "",
                        "ariaLabel": "",
                        "required": false,
                        "requiredFieldErrorMessage": "",
                        "mode": "parent",
                        "datasource": "database",
                        "dbConnection": "workflow",
                        "dbConnectionLabel": "PM Database",
                        "sql": "SELECT IC_UID, IC_NAME FROM ISO_COUNTRY",
                        "memoryCache": false,
                        "dataVariable": "",
                        "options": [],
                        "var_name": "countryDropdown",
                        "colSpan": 4
                    },
                    {
                        "type": "grid",
                        "variable": "gridVar003",
                        "var_uid": "6174086855ee964da934c06026331273",
                        "dataType": "grid",
                        "protectedValue": false,
                        "id": "gridVar003",
                        "name": "gridVar003",
                        "label": "GRID1",
                        "hint": "",
                        "required": false,
                        "requiredFieldErrorMessage": "",
                        "columns": [
                            {
                                "type": "dropdown",
                                "variable": "",
                                "var_uid": "",
                                "dataType": "",
                                "protectedValue": false,
                                "id": "stateDropdown",
                                "name": "stateDropdown",
                                "label": "State use form",
                                "tabIndex": "",
                                "defaultValue": "",
                                "placeholder": "",
                                "hint": "",
                                "ariaLabel": "",
                                "required": false,
                                "requiredFieldErrorMessage": "",
                                "mode": "parent",
                                "datasource": "database",
                                "dbConnection": "workflow",
                                "dbConnectionLabel": "PM Database",
                                "sql": "SELECT IS_UID, IS_NAME FROM ISO_SUBDIVISION \nWHERE IC_UID = @?countryDropdown ORDER BY IS_NAME",
                                "memoryCache": false,
                                "dataVariable": "",
                                "options": [],
                                "columnWidth": "25",
                                "width": 100,
                                "title": "State use form",
                                "var_name": "gridVar003",
                                "gridName": "gridVar003"
                            },
                            {
                                "type": "dropdown",
                                "variable": "",
                                "var_uid": "",
                                "dataType": "",
                                "protectedValue": false,
                                "id": "countryGrid",
                                "name": "countryGrid",
                                "label": "country",
                                "tabIndex": "",
                                "defaultValue": "",
                                "placeholder": "",
                                "hint": "",
                                "ariaLabel": "",
                                "required": false,
                                "requiredFieldErrorMessage": "",
                                "mode": "parent",
                                "datasource": "database",
                                "dbConnection": "workflow",
                                "dbConnectionLabel": "PM Database",
                                "sql": "SELECT IC_UID, IC_NAME FROM ISO_COUNTRY",
                                "memoryCache": false,
                                "dataVariable": "",
                                "options": [],
                                "columnWidth": "25",
                                "width": 100,
                                "title": "country"
                            },
                            {
                                "type": "dropdown",
                                "variable": "",
                                "var_uid": "",
                                "dataType": "",
                                "protectedValue": false,
                                "id": "dropdown0000000003",
                                "name": "dropdown0000000003",
                                "label": "Country Grid",
                                "tabIndex": "",
                                "defaultValue": "",
                                "placeholder": "",
                                "hint": "",
                                "ariaLabel": "",
                                "required": false,
                                "requiredFieldErrorMessage": "",
                                "mode": "parent",
                                "datasource": "database",
                                "dbConnection": "workflow",
                                "dbConnectionLabel": "PM Database",
                                "sql": "SELECT IS_UID, IS_NAME FROM ISO_SUBDIVISION \nWHERE IC_UID = @@countryGrid ORDER BY IS_NAME",
                                "memoryCache": false,
                                "dataVariable": "",
                                "options": [],
                                "columnWidth": "25",
                                "width": 100,
                                "title": "Country Grid"
                            }
                        ],
                        "data": [],
                        "mode": "parent",
                        "layout": "responsive",
                        "pageSize": "0",
                        "addRow": true,
                        "deleteRow": true,
                        "title": "GRID1",
                        "colSpan": 8
                    }
                ],
                [
                    {
                        "type": "label",
                        "id": "label0000000002",
                        "label": "En este segundo dropdown la variable \"stateDropdown\" tiene el mismo ID que en el primer grid. Cuando tienen el mismo ID el segundo dropdown no carga sus opciones\n",
                        "ariaLabel": "",
                        "colSpan": 12
                    }
                ],
                [
                    {
                        "type": "dropdown",
                        "variable": "countryDropdown1",
                        "var_uid": "3870420235ee964da9d9205006775679",
                        "dataType": "string",
                        "protectedValue": false,
                        "id": "countryDropdown1",
                        "name": "countryDropdown1",
                        "label": "Country Dropdown 1",
                        "tabIndex": "",
                        "defaultValue": "",
                        "placeholder": "",
                        "hint": "",
                        "ariaLabel": "",
                        "required": false,
                        "requiredFieldErrorMessage": "",
                        "mode": "parent",
                        "datasource": "database",
                        "dbConnection": "workflow",
                        "dbConnectionLabel": "PM Database",
                        "sql": "SELECT IC_UID, IC_NAME FROM ISO_COUNTRY",
                        "memoryCache": false,
                        "dataVariable": "",
                        "options": [],
                        "var_name": "countryDropdown1",
                        "colSpan": 4
                    },
                    {
                        "type": "grid",
                        "variable": "gridVar004",
                        "var_uid": "5972116805ee964daa950e7067922526",
                        "dataType": "grid",
                        "protectedValue": false,
                        "id": "gridVar004",
                        "name": "gridVar004",
                        "label": "GRID2",
                        "hint": "",
                        "required": false,
                        "requiredFieldErrorMessage": "",
                        "columns": [
                            {
                                "type": "dropdown",
                                "variable": "",
                                "var_uid": "",
                                "dataType": "",
                                "protectedValue": false,
                                "id": "stateDropdown",
                                "name": "stateDropdown",
                                "label": "State use form",
                                "tabIndex": "",
                                "defaultValue": "",
                                "placeholder": "",
                                "hint": "",
                                "ariaLabel": "",
                                "required": false,
                                "requiredFieldErrorMessage": "",
                                "mode": "parent",
                                "datasource": "database",
                                "dbConnection": "workflow",
                                "dbConnectionLabel": "PM Database",
                                "sql": "SELECT IS_UID, IS_NAME FROM ISO_SUBDIVISION \nWHERE IC_UID = @@countryDropdown1 ORDER BY IS_NAME",
                                "memoryCache": false,
                                "dataVariable": "",
                                "options": [],
                                "columnWidth": "25",
                                "width": 100,
                                "title": "State use form",
                                "var_name": "gridVar004"
                            },
                            {
                                "type": "dropdown",
                                "variable": "",
                                "var_uid": "",
                                "dataType": "",
                                "protectedValue": false,
                                "id": "countryGrid",
                                "name": "countryGrid",
                                "label": "country",
                                "tabIndex": "",
                                "defaultValue": "",
                                "placeholder": "",
                                "hint": "",
                                "ariaLabel": "",
                                "required": false,
                                "requiredFieldErrorMessage": "",
                                "mode": "parent",
                                "datasource": "database",
                                "dbConnection": "workflow",
                                "dbConnectionLabel": "PM Database",
                                "sql": "SELECT IC_UID, IC_NAME FROM ISO_COUNTRY",
                                "memoryCache": false,
                                "dataVariable": "",
                                "options": [],
                                "columnWidth": "25",
                                "width": 100,
                                "title": "country"
                            },
                            {
                                "type": "dropdown",
                                "variable": "",
                                "var_uid": "",
                                "dataType": "",
                                "protectedValue": false,
                                "id": "dropdown0000000004",
                                "name": "dropdown0000000004",
                                "label": "Country Grid",
                                "tabIndex": "",
                                "defaultValue": "",
                                "placeholder": "",
                                "hint": "",
                                "ariaLabel": "",
                                "required": false,
                                "requiredFieldErrorMessage": "",
                                "mode": "parent",
                                "datasource": "database",
                                "dbConnection": "workflow",
                                "dbConnectionLabel": "PM Database",
                                "sql": "SELECT IS_UID, IS_NAME FROM ISO_SUBDIVISION \nWHERE IC_UID = @@countryGrid ORDER BY IS_NAME",
                                "memoryCache": false,
                                "dataVariable": "",
                                "options": [],
                                "columnWidth": "25",
                                "width": 100,
                                "title": "Country Grid"
                            }
                        ],
                        "data": [],
                        "mode": "parent",
                        "layout": "responsive",
                        "pageSize": "0",
                        "addRow": true,
                        "deleteRow": true,
                        "title": "GRID2",
                        "colSpan": 8
                    }
                ],
                [
                    {
                        "type": "submit",
                        "id": "submit0000000001",
                        "name": "submit0000000001",
                        "label": "submit_1",
                        "tabIndex": "",
                        "ariaLabel": "",
                        "colSpan": 12
                    }
                ]
            ],
            "variables": [
                {
                    "var_uid": "6433597845eea6b2ad10097077910842",
                    "prj_uid": "3973270015ee964bd20e167047282910",
                    "var_name": "stateDropdown",
                    "var_field_type": "string",
                    "var_field_size": 10,
                    "var_label": "string",
                    "var_dbconnection": "workflow",
                    "var_dbconnection_label": "PM Database",
                    "var_sql": "",
                    "var_null": 0,
                    "var_default": "",
                    "var_accepted_values": "[]",
                    "inp_doc_uid": ""
                },
                {
                    "var_uid": "8461594435ee964da8652b7084948416",
                    "prj_uid": "3973270015ee964bd20e167047282910",
                    "var_name": "countryDropdown",
                    "var_field_type": "string",
                    "var_field_size": 10,
                    "var_label": "string",
                    "var_dbconnection": "workflow",
                    "var_dbconnection_label": "PM Database",
                    "var_sql": "",
                    "var_null": 0,
                    "var_default": "",
                    "var_accepted_values": [],
                    "inp_doc_uid": "",
                    "var_uid_old": "4356061615edff028cae968013552938",
                    "var_name_old": "countryDropdown",
                    "prj_uid_old": "4922885715edfecb76f0024086363079"
                },
                {
                    "var_uid": "6174086855ee964da934c06026331273",
                    "prj_uid": "3973270015ee964bd20e167047282910",
                    "var_name": "gridVar003",
                    "var_field_type": "grid",
                    "var_field_size": 10,
                    "var_label": "grid",
                    "var_dbconnection": "workflow",
                    "var_dbconnection_label": "PM Database",
                    "var_sql": "",
                    "var_null": 0,
                    "var_default": "",
                    "var_accepted_values": [],
                    "inp_doc_uid": "",
                    "var_uid_old": "4763913505ee04a4acfac28032288647",
                    "var_name_old": "gridVar003",
                    "prj_uid_old": "4922885715edfecb76f0024086363079"
                },
                {
                    "var_uid": "3870420235ee964da9d9205006775679",
                    "prj_uid": "3973270015ee964bd20e167047282910",
                    "var_name": "countryDropdown1",
                    "var_field_type": "string",
                    "var_field_size": 10,
                    "var_label": "string",
                    "var_dbconnection": "workflow",
                    "var_dbconnection_label": "PM Database",
                    "var_sql": "",
                    "var_null": 0,
                    "var_default": "",
                    "var_accepted_values": [],
                    "inp_doc_uid": "",
                    "var_uid_old": "5743244195ee04b6c466484086183124",
                    "var_name_old": "countryDropdown1",
                    "prj_uid_old": "4922885715edfecb76f0024086363079"
                },
                {
                    "var_uid": "5972116805ee964daa950e7067922526",
                    "prj_uid": "3973270015ee964bd20e167047282910",
                    "var_name": "gridVar004",
                    "var_field_type": "grid",
                    "var_field_size": 10,
                    "var_label": "grid",
                    "var_dbconnection": "workflow",
                    "var_dbconnection_label": "PM Database",
                    "var_sql": "",
                    "var_null": 0,
                    "var_default": "",
                    "var_accepted_values": [],
                    "inp_doc_uid": "",
                    "var_uid_old": "8181709185ee04b0c2f8502096315574",
                    "var_name_old": "gridVar004",
                    "prj_uid_old": "4922885715edfecb76f0024086363079"
                }
            ]
        }
    ]
}