{
- "id": "roo-file-183",
- "name": "Pman.Dialog.BuilderAdd",
- "parent": "",
- "title": "Pman.Dialog.BuilderAdd",
- "path": "/home/edward/gitlive/Pman.Builder/Pman.Dialog.BuilderAdd.bjs",
- "items": [
+ "name" : "Pman.Dialog.BuilderAdd",
+ "parent" : "",
+ "title" : "Pman.Dialog.BuilderAdd",
+ "path" : "/home/alan/gitlive/Pman.Builder/Pman.Dialog.BuilderAdd.bjs",
+ "permname" : "",
+ "modOrder" : "001",
+ "items" : [
{
- "closable": false,
- "height": 170,
- "modal": true,
- "resizable": false,
- "title": "Add Node",
- "width": 400,
- "xtype": "LayoutDialog",
- "|xns": "Roo",
- "items": [
+ "modal" : true,
+ "title" : "Add Node",
+ "xtype" : "LayoutDialog",
+ "width" : 400,
+ "$ xns" : "Roo",
+ "closable" : false,
+ "resizable" : false,
+ "height" : 170,
+ "items" : [
{
- "region": "center",
- "xtype": "ContentPanel",
- "|xns": "Roo",
- "items": [
+ "region" : "center",
+ "xtype" : "ContentPanel",
+ "$ xns" : "Roo",
+ "items" : [
{
- "listeners": {
- "rendered": "function (form)\n{\n _this.form = form;\n}",
- "actioncomplete": "function (_self, action)\n{\n if (action.type == 'setdata') {\n // check if element can be templated or databased..\n \n \n }\n}"
+ "listeners" : {
+ "actioncomplete" : "function (_self, action)\n{\n if (action.type == 'setdata') {\n // check if element can be templated or databased..\n \n \n }\n}",
+ "rendered" : "function (form)\n{\n _this.form = form;\n}"
},
- "xtype": "Form",
- "|xns": "Roo.form",
- "items": [
+ "xtype" : "Form",
+ "$ xns" : "Roo.form",
+ "items" : [
{
- "labelWidth": 140,
- "legend": "Do you want to create the element :",
- "style": "width:350px",
- "xtype": "FieldSet",
- "|xns": "Roo.form",
- "items": [
+ "style" : "width:350px",
+ "legend" : "Do you want to create the element : ",
+ "xtype" : "FieldSet",
+ "labelWidth" : 140,
+ "$ xns" : "Roo.form",
+ "items" : [
{
- "fieldLabel": "From Template",
- "name": "template",
- "xtype": "ComboBox",
- "|xns": "Roo.form",
- "items": [
+ "fieldLabel" : "From Template",
+ "xtype" : "ComboBox",
+ "$ xns" : "Roo.form",
+ "name" : "template",
+ "items" : [
{
- "|xns": "Roo.data",
- "xtype": "Store",
- "*prop": "store"
+ "xtype" : "Store",
+ "$ xns" : "Roo.data",
+ "* prop" : "store"
}
]
},
{
- "allowBlank": true,
- "alwaysQuery": true,
- "displayField": "name",
- "fieldLabel": "From Database Table",
- "listWidth": 400,
- "name": "table",
- "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> {desc}</div>",
- "triggerAction": "all",
- "xtype": "ComboBox",
- "|xns": "Roo.form",
- "items": [
+ "alwaysQuery" : true,
+ "listWidth" : 400,
+ "triggerAction" : "all",
+ "fieldLabel" : "From Database Table",
+ "displayField" : "name",
+ "xtype" : "ComboBox",
+ "allowBlank" : true,
+ "$ xns" : "Roo.form",
+ "name" : "table",
+ "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> {desc}</div>",
+ "items" : [
{
- "|xns": "Roo.data",
- "xtype": "Store",
- "*prop": "store",
- "items": [
+ "xtype" : "Store",
+ "$ xns" : "Roo.data",
+ "* prop" : "store",
+ "items" : [
{
- "*prop": "proxy",
- "method": "GET",
- "xtype": "HttpProxy",
- "|url": "baseURL + '/Builder/ERM.php'",
- "|xns": "Roo.data"
+ "$ url" : "baseURL + '/Builder/ERM.php'",
+ "xtype" : "HttpProxy",
+ "method" : "GET",
+ "$ xns" : "Roo.data",
+ "* prop" : "proxy"
},
{
- "*prop": "reader",
- "root": "data",
- "totalProperty": "total",
- "xtype": "JsonReader",
- "|fields": "[ 'name' , 'desc' ]\n ",
- "|xns": "Roo.data"
+ "root" : "data",
+ "xtype" : "JsonReader",
+ "$ fields" : "[ 'name' , 'desc' ]\n ",
+ "$ xns" : "Roo.data",
+ "* prop" : "reader",
+ "totalProperty" : "total"
}
]
}
]
},
{
- "|xns": "Roo",
- "xtype": "LayoutRegion",
- "*prop": "center"
+ "xtype" : "LayoutRegion",
+ "$ xns" : "Roo",
+ "* prop" : "center"
},
{
- "listeners": {
- "click": "function (_self, e)\n{\n var vals = _this.form.getValues();\n \n _this.dialog.hide();\n \n if (vals.table.length) {\n Pman.Dialog.BuilderAddTable.show( \n Roo.apply({ table : vals.table } , _this.data), \n \n function(data) {\n _this.dialog.hide();\n var cls = data['|xns'] + '.' + data['xtype'];\n \n var res = Pman.Builder.Wizard[cls](data);\n _this.callback(res); \n });\n return;\n }\n \n // otherwise, call back with template??\n \n \n _this.callback(_this.data);\n}"
+ "listeners" : {
+ "click" : "function (_self, e)\n{\n var vals = _this.form.getValues();\n \n _this.dialog.hide();\n \n if (vals.table.length) {\n Pman.Dialog.BuilderAddTable.show( \n Roo.apply({ table : vals.table } , _this.data), \n \n function(data) {\n _this.dialog.hide();\n var cls = data['|xns'] + '.' + data['xtype'];\n \n var res = Pman.Builder.Wizard[cls](data);\n _this.callback(res); \n });\n return;\n }\n \n // otherwise, call back with template??\n \n \n _this.callback(_this.data);\n}"
},
- "*prop": "buttons[]",
- "text": "OK",
- "xtype": "Button",
- "|xns": "Roo"
+ "text" : "OK",
+ "xtype" : "Button",
+ "$ xns" : "Roo",
+ "* prop" : "buttons[]"
},
{
- "listeners": {
- "click": "function (_self, e)\n{\n _this.dialog.hide();\n}"
+ "listeners" : {
+ "click" : "function (_self, e)\n{\n _this.dialog.hide();\n}"
},
- "*prop": "buttons[]",
- "text": "Cancel",
- "xtype": "Button",
- "|xns": "Roo"
+ "text" : "Cancel",
+ "xtype" : "Button",
+ "$ xns" : "Roo",
+ "* prop" : "buttons[]"
}
]
}
- ],
- "permname": "",
- "modOrder": "001"
+ ]
}
\ No newline at end of file
// Auto generated file - created by app.Builder.js- do not edit directly (at present!)
+Roo.namespace('Pman.Dialog');
+
Pman.Dialog.BuilderAdd = {
dialog : false,
{
var _this = this;
this.dialog = Roo.factory({
- xtype: 'LayoutDialog',
- xns: Roo,
- closable : false,
- height : 170,
+ center : {
+ '|xns' : 'Roo',
+ xtype : 'LayoutRegion',
+ xns : Roo
+ },
+ '|xns' : 'Roo',
modal : true,
- resizable : false,
title : "Add Node",
+ xtype : 'LayoutDialog',
width : 400,
+ xns : Roo,
+ closable : false,
+ resizable : false,
+ height : 170,
+ buttons : [
+ {
+ '|xns' : 'Roo',
+ text : "OK",
+ xtype : 'Button',
+ xns : Roo,
+ listeners : {
+ click : function (_self, e)
+ {
+ var vals = _this.form.getValues();
+
+ _this.dialog.hide();
+
+ if (vals.table.length) {
+ Pman.Dialog.BuilderAddTable.show(
+ Roo.apply({ table : vals.table } , _this.data),
+
+ function(data) {
+ _this.dialog.hide();
+ var cls = data['|xns'] + '.' + data['xtype'];
+
+ var res = Pman.Builder.Wizard[cls](data);
+ _this.callback(res);
+ });
+ return;
+ }
+
+ // otherwise, call back with template??
+
+
+ _this.callback(_this.data);
+ }
+ }
+ },
+{
+ '|xns' : 'Roo',
+ text : "Cancel",
+ xtype : 'Button',
+ xns : Roo,
+ listeners : {
+ click : function (_self, e)
+ {
+ _this.dialog.hide();
+ }
+ }
+ }
+ ],
items : [
- {
- xtype: 'ContentPanel',
- xns: Roo,
+ {
+ '|xns' : 'Roo',
region : 'center',
+ xtype : 'ContentPanel',
+ xns : Roo,
items : [
- {
- xtype: 'Form',
- xns: Roo.form,
+ {
+ '|xns' : 'Roo.form',
+ xtype : 'Form',
+ xns : Roo.form,
listeners : {
- rendered : function (form)
- {
- _this.form = form;
- },
- actioncomplete : function (_self, action)
- {
- if (action.type == 'setdata') {
- // check if element can be templated or databased..
-
-
- }
- }
+ actioncomplete : function (_self, action)
+ {
+ if (action.type == 'setdata') {
+ // check if element can be templated or databased..
+
+
+ }
+ },
+ rendered : function (form)
+ {
+ _this.form = form;
+ }
},
items : [
- {
- xtype: 'FieldSet',
- xns: Roo.form,
- labelWidth : 140,
- legend : "Do you want to create the element :",
+ {
+ '|xns' : 'Roo.form',
style : 'width:350px',
+ legend : "Do you want to create the element : ",
+ xtype : 'FieldSet',
+ labelWidth : 140,
+ xns : Roo.form,
items : [
- {
- xtype: 'ComboBox',
- xns: Roo.form,
+ {
+ store : {
+ '|xns' : 'Roo.data',
+ xtype : 'Store',
+ xns : Roo.data
+ },
+ '|xns' : 'Roo.form',
fieldLabel : 'From Template',
+ xtype : 'ComboBox',
+ xns : Roo.form,
name : 'template',
- store : {
- xtype: 'Store',
- xns: Roo.data
- }
+ items : [
+
+ ]
+
},
- {
- xtype: 'ComboBox',
- xns: Roo.form,
- allowBlank : true,
- alwaysQuery : true,
- displayField : 'name',
- fieldLabel : 'From Database Table',
- listWidth : 400,
- name : 'table',
- tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> {desc}</div>',
- triggerAction : 'all',
+ {
store : {
- xtype: 'Store',
- xns: Roo.data,
proxy : {
- xtype: 'HttpProxy',
- xns: Roo.data,
+ '|xns' : 'Roo.data',
+ url : baseURL + '/Builder/ERM.php',
+ xtype : 'HttpProxy',
method : 'GET',
- url : baseURL + '/Builder/ERM.php'
+ xns : Roo.data
},
reader : {
- xtype: 'JsonReader',
- xns: Roo.data,
+ '|xns' : 'Roo.data',
root : 'data',
- totalProperty : 'total',
- fields : [ 'name' , 'desc' ]
- }
- }
+ xtype : 'JsonReader',
+ fields : [ 'name' , 'desc' ],
+ xns : Roo.data,
+ totalProperty : 'total'
+ },
+ '|xns' : 'Roo.data',
+ xtype : 'Store',
+ xns : Roo.data,
+ items : [
+
+ ]
+
+ },
+ '|xns' : 'Roo.form',
+ alwaysQuery : true,
+ listWidth : 400,
+ triggerAction : 'all',
+ fieldLabel : 'From Database Table',
+ displayField : 'name',
+ xtype : 'ComboBox',
+ allowBlank : true,
+ xns : Roo.form,
+ name : 'table',
+ tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> {desc}</div>',
+ items : [
+
+ ]
+
}
]
+
}
]
+
}
]
- }
- ],
- center : {
- xtype: 'LayoutRegion',
- xns: Roo
- },
- buttons : [
- {
- xtype: 'Button',
- xns: Roo,
- listeners : {
- click : function (_self, e)
- {
- var vals = _this.form.getValues();
-
- _this.dialog.hide();
-
- if (vals.table.length) {
- Pman.Dialog.BuilderAddTable.show(
- Roo.apply({ table : vals.table } , _this.data),
-
- function(data) {
- _this.dialog.hide();
- var cls = data['|xns'] + '.' + data['xtype'];
-
- var res = Pman.Builder.Wizard[cls](data);
- _this.callback(res);
- });
- return;
- }
-
- // otherwise, call back with template??
-
-
- _this.callback(_this.data);
- }
- },
- text : "OK"
- },
- {
- xtype: 'Button',
- xns: Roo,
- listeners : {
- click : function (_self, e)
- {
- _this.dialog.hide();
- }
- },
- text : "Cancel"
+
}
]
+
});
}
};