{
    "type": "Ext.window.Window",
    "reference": {
        "name": "items",
        "type": "array"
    },
    "codeClass": null,
    "userConfig": {
        "designer|userAlias": "LocalLicenseWindow",
        "designer|userClassName": "LocalLicenseWindow",
        "height": null,
        "itemId": "LocalLicenseWindow",
        "layout": "fit",
        "modal": true,
        "title": "License category",
        "width": 400
    },
    "designerId": "d9f7e2bd-242c-4f33-874f-2b91327bc752",
    "cn": [
        {
            "type": "Ext.form.Panel",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "bodyPadding": 10,
                "header": false,
                "itemId": null,
                "pollForChanges": null,
                "title": "My Form"
            },
            "designerId": "47175c6e-1638-4642-8ac6-b66c4169d364",
            "cn": [
                {
                    "type": "Ext.form.field.Number",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "fieldLabel": "Label",
                        "hidden": true,
                        "layout|anchor": "100%",
                        "name": "localId"
                    },
                    "designerId": "6fbc67a3-177f-4860-92c1-807d99b5bf17"
                },
                {
                    "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": "6c4f75c7-b8ab-4407-b4e6-ad84bb0a5426",
                    "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",
                                    "}\r",
                                    "if (newValue.length > 0) {\r",
                                    "\tfield.up('form').down('button').enable();\r",
                                    "}\r",
                                    "else\r",
                                    "\tfield.up('form').down('button').disable();\r",
                                    ""
                                ],
                                "name": "change",
                                "scope": "me"
                            },
                            "designerId": "c5152291-eafc-4c34-bb84-bd38ed58348d"
                        }
                    ]
                },
                {
                    "type": "Ext.form.field.ComboBox",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "allowBlank": false,
                        "allowOnlyWhitespace": false,
                        "displayField": "sapLicense",
                        "editable": false,
                        "fieldLabel": "SU01 license",
                        "forceSelection": true,
                        "labelSeparator": " ",
                        "layout|anchor": "100%",
                        "name": "license_map_su01",
                        "queryMode": "local",
                        "selectOnFocus": true,
                        "store": "SU01License",
                        "valueField": "license_map_su01"
                    },
                    "designerId": "4d617a30-0cb3-4e8f-a736-ec489a74b8d6"
                },
                {
                    "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": "3714f674-4a27-485d-8422-4995b390c801"
                },
                {
                    "type": "Ext.container.Container",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "container|align": "stretch",
                        "container|pack": "end",
                        "layout": "hbox"
                    },
                    "designerId": "b407d583-bb99-4a64-bdb8-50654692b47e",
                    "cn": [
                        {
                            "type": "Ext.button.Button",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "disabled": true,
                                "icon": "../gfx/save.png",
                                "itemId": "btnLocalLicenseCreate",
                                "scale": "medium",
                                "text": "Save"
                            },
                            "designerId": "8e2a0ee8-e6f8-4288-ba22-71cf0d486b78"
                        },
                        {
                            "type": "Ext.button.Button",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "disabled": true,
                                "hidden": true,
                                "icon": "../gfx/save.png",
                                "itemId": "btnLocalLicenseEdit",
                                "scale": "medium",
                                "text": "Save"
                            },
                            "designerId": "7358a006-951f-441b-93a3-230a6debc5d5"
                        },
                        {
                            "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": "0c611aca-7f9b-4fdb-8fa6-fe8c94673f25"
                        }
                    ]
                }
            ]
        }
    ]
}