{
- "id": "roo-file-119",
+ "id": "roo-file-190",
"name": "Pman.Tab.MTrackMilestone",
"parent": "Pman.Tab.MTrack",
"title": "Pman.Tab.MTrackMilestone",
}
]
},
+ {
+ "allowBlank": "false",
+ "displayField": "name",
+ "editable": false,
+ "emptyText": "Select Projects",
+ "fieldLabel": "Projects",
+ "forceSelection": true,
+ "hiddenName": "project_id",
+ "listWidth": 400,
+ "loadingText": "Searching...",
+ "minChars": 2,
+ "name": "project_id_name",
+ "pageSize": 50,
+ "qtip": "Select Projects",
+ "queryParam": "",
+ "selectOnFocus": true,
+ "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{code}</b> {name}</div>",
+ "triggerAction": "all",
+ "typeAhead": true,
+ "valueField": "id",
+ "width": 200,
+ "xtype": "ComboBox",
+ "|xns": "Roo.form",
+ "items": [
+ {
+ "listeners": {
+ "|beforeload": "function (_self, o){\n o.params = o.params || {};\n // set more here\n}\n"
+ },
+ "*prop": "store",
+ "remoteSort": true,
+ "xtype": "Store",
+ "|sortInfo": "{ direction : 'ASC', field: 'code' }",
+ "|xns": "Roo.data",
+ "items": [
+ {
+ "*prop": "proxy",
+ "xtype": "HttpProxy",
+ "method": "GET",
+ "|xns": "Roo.data",
+ "|url": "baseURL + '/Roo/Projects.php'"
+ },
+ {
+ "*prop": "reader",
+ "xtype": "JsonReader",
+ "|xns": "Roo.data",
+ "id": "id",
+ "root": "data",
+ "totalProperty": "total",
+ "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]"
+ }
+ ]
+ }
+ ]
+ },
{
"|xns": "Roo.Toolbar",
"xtype": "Fill"
// Auto generated file - created by app.Builder.js- do not edit directly (at present!)
-
-
-// register the module first
-Pman.on('beforeload', function()
-{
- Pman.register({
- modKey : '200-Pman.Tab.MTrackMilestone',
- module : Pman.Tab.MTrackMilestone,
- region : 'center',
- parent : Pman.Tab.MTrack,
- name : "Pman.Tab.MTrackMilestone",
- disabled : false,
- permname: ''
- });
-});
-
-Pman.Tab.MTrackMilestone = new Roo.util.Observable({
-
- panel : false,
- disabled : false,
- parentLayout: false,
-
- add : function(parentLayout, region)
+Pman.Tab.MTrackMilestone = new Roo.XComponent({
+ part : ["MTrack","Milestone"],
+ order : '200-Pman.Tab.MTrackMilestone',
+ region : 'center',
+ parent : 'Pman.Tab.MTrack',
+ name : "Pman.Tab.MTrackMilestone",
+ disabled : false,
+ permname : '',
+ _tree : function()
{
-
var _this = this;
- this.parentLayout = parentLayout;
-
- this.panel = parentLayout.addxtype({
+ var MODULE = this;
+ return {
xtype: 'GridPanel',
xns: Roo,
listeners : {
xns: Roo,
pageSize : 25,
displayInfo : true,
- displayMsg : 'Displaying mtrack_milestone{0} - {1} of {2}',
- emptyMsg : 'No mtrack_milestone found'
+ displayMsg : "Displaying mtrack_milestone{0} - {1} of {2}",
+ emptyMsg : "No mtrack_milestone found"
},
toolbar : {
xtype: 'Toolbar',
]
}
},
+ {
+ xtype: 'ComboBox',
+ xns: Roo.form,
+ allowBlank : 'false',
+ displayField : 'name',
+ editable : false,
+ emptyText : "Select Projects",
+ fieldLabel : 'Projects',
+ forceSelection : true,
+ hiddenName : 'project_id',
+ listWidth : 400,
+ loadingText : "Searching...",
+ minChars : 2,
+ name : 'project_id_name',
+ pageSize : 50,
+ qtip : "Select Projects",
+ queryParam : '',
+ selectOnFocus : true,
+ tpl : '<div class="x-grid-cell-text x-btn button"><b>{code}</b> {name}</div>',
+ triggerAction : 'all',
+ typeAhead : true,
+ valueField : 'id',
+ width : 200,
+ store : {
+ xtype: 'Store',
+ xns: Roo.data,
+ listeners : {
+ beforeload : function (_self, o){
+ o.params = o.params || {};
+ // set more here
+ }
+ },
+ remoteSort : true,
+ sortInfo : { direction : 'ASC', field: 'code' },
+ proxy : {
+ xtype: 'HttpProxy',
+ xns: Roo.data,
+ method : 'GET',
+ url : baseURL + '/Roo/Projects.php'
+ },
+ reader : {
+ xtype: 'JsonReader',
+ xns: Roo.data,
+ id : 'id',
+ root : 'data',
+ totalProperty : 'total',
+ fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
+ }
+ }
+ },
{
xtype: 'Fill',
xns: Roo.Toolbar
}
]
}
- });
- this.layout = this.panel.layout;
-
+ };
}
});