{
    "type": "Ext.window.Window",
    "reference": {
        "name": "items",
        "type": "array"
    },
    "codeClass": null,
    "userConfig": {
        "designer|userAlias": "LicenseCategoryWindow",
        "designer|userClassName": "LicenseCategoryWindow",
        "height": null,
        "itemId": "LicenseCategoryWindow",
        "layout": "fit",
        "modal": true,
        "title": "Consolidated license category",
        "width": 400
    },
    "designerId": "cb25b120-e93b-41a1-a1be-639358c4a9a5",
    "cn": [
        {
            "type": "Ext.form.Panel",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "bodyPadding": 10,
                "header": false,
                "itemId": "licenseCategoryForm",
                "pollForChanges": null,
                "title": "My Form"
            },
            "designerId": "9b47e55f-7d1b-4a99-9212-15f533b10f86",
            "cn": [
                {
                    "type": "Ext.form.field.Number",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "fieldLabel": "Label",
                        "hidden": true,
                        "layout|anchor": "100%",
                        "name": "id"
                    },
                    "designerId": "86abcf6d-2632-4fa0-bceb-3e45fe9080cd"
                },
                {
                    "type": "Ext.form.field.Text",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "allowBlank": false,
                        "allowOnlyWhitespace": false,
                        "enforceMaxLength": true,
                        "fieldLabel": "Category",
                        "itemId": null,
                        "labelSeparator": " ",
                        "layout|anchor": "100%",
                        "maxLength": 120,
                        "name": "category"
                    },
                    "designerId": "2dfff123-f925-4740-a1f6-48b958085d14",
                    "cn": [
                        {
                            "type": "basiceventbinding",
                            "reference": {
                                "name": "listeners",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "fn": "onTextfieldChange",
                                "implHandler": [
                                    "if(newValue.length <= 12) {\r",
                                    "\tfield.up('form').getForm().findField('dash_abbr').setValue(newValue);\r",
                                    "}"
                                ],
                                "name": "change",
                                "scope": "me"
                            },
                            "designerId": "a825b133-0309-4915-ab81-abce1767fcd0"
                        }
                    ]
                },
                {
                    "type": "Ext.form.field.ComboBox",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "allowBlank": false,
                        "allowOnlyWhitespace": false,
                        "displayField": "type",
                        "editable": false,
                        "fieldLabel": "Type",
                        "forceSelection": true,
                        "labelSeparator": " ",
                        "layout|anchor": "100%",
                        "name": "type",
                        "queryMode": "local",
                        "selectOnFocus": true,
                        "store": "LicenseType",
                        "valueField": "id"
                    },
                    "designerId": "e2ebdefb-aebe-4938-8477-f3707ce5f1d2"
                },
                {
                    "type": "Ext.form.field.Text",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "allowBlank": false,
                        "allowOnlyWhitespace": false,
                        "fieldLabel": "Quantity",
                        "labelSeparator": " ",
                        "layout|anchor": "100%",
                        "maskRe": "/^[0-9]*$/",
                        "name": "quantity",
                        "regex": "/^[0-9]*$/",
                        "regexText": null
                    },
                    "designerId": "6f93cd3b-4fc4-4c90-892d-934e4784a659"
                },
                {
                    "type": "Ext.form.field.Text",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "allowBlank": false,
                        "allowOnlyWhitespace": false,
                        "defaultAlign": null,
                        "fieldLabel": "Cost",
                        "labelSeparator": " ",
                        "layout|anchor": "100%",
                        "maskRe": "/^[0-9]*$/",
                        "name": "cost",
                        "regex": "/^[0-9]*$/",
                        "regexText": null,
                        "stripCharsRe": null
                    },
                    "designerId": "282729ff-e391-420c-9399-1e4b89e8b123"
                },
                {
                    "type": "Ext.form.field.Text",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "allowBlank": false,
                        "allowOnlyWhitespace": false,
                        "enforceMaxLength": true,
                        "fieldLabel": "Dashboard name",
                        "labelSeparator": " ",
                        "layout|anchor": "100%",
                        "maskRe": null,
                        "maxLength": 12,
                        "name": "dash_abbr",
                        "regexText": null
                    },
                    "designerId": "cc06915d-21b3-4f07-ba51-4914400ce991"
                },
                {
                    "type": "Ext.form.field.Checkbox",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "boxLabel": null,
                        "checked": true,
                        "fieldLabel": "Dashboard incl.",
                        "inputValue": "true",
                        "labelSeparator": " ",
                        "layout|anchor": "100%",
                        "name": "dash_incl",
                        "uncheckedValue": "false"
                    },
                    "designerId": "fab68519-2448-41f0-a96e-34c5f456b2c4"
                },
                {
                    "type": "Ext.container.Container",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "container|align": "stretch",
                        "container|pack": "end",
                        "layout": "hbox"
                    },
                    "designerId": "a401829e-2a90-4509-91cf-a91e9705d2c5",
                    "cn": [
                        {
                            "type": "Ext.button.Button",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "disabled": true,
                                "icon": "../gfx/save.png",
                                "itemId": "btnLicenseCategoryCreate",
                                "scale": "medium",
                                "text": "Save"
                            },
                            "designerId": "bef7be77-27be-4432-b9cc-01a7aff7bc7a"
                        },
                        {
                            "type": "Ext.button.Button",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "disabled": true,
                                "hidden": true,
                                "icon": "../gfx/save.png",
                                "itemId": "btnLicenseCategoryEdit",
                                "scale": "medium",
                                "text": "Save"
                            },
                            "designerId": "150beb28-75e8-4f6c-b11b-ec55ae629e02"
                        }
                    ]
                }
            ]
        }
    ]
}