DependTree/Window.bjs
[app.Builder.js] / dbgenerate.js
index 5efb7dd..45eb63a 100644 (file)
@@ -96,7 +96,8 @@ Gda.DataSelect.prototype.fetchAll = function()
 
 var map = {
     'date' : 'date',
-    'datetime' : 'string',
+    'datetime' : 'date',
+    'time' : 'string', //bogus
     'int' : 'int',
     'bigint' : 'int',
     
@@ -505,15 +506,7 @@ readers.forEach(function(reader) {
             "background": true,
             "region" : 'center',
             "listeners": {
-                "|activate": "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        _this.grid.footer.onClick('first');\n    }\n}",
-                "|rowdblclick": "function (_self, rowIndex, e)\n" + 
-                    "{\n" + 
-                    "    if (!_this.dialog) return;\n" + 
-                    "    _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {\n" + 
-                    "        _this.grid.footer.onClick('first');\n" + 
-                    "    }); \n" + 
-                    "}\n"
-                
+                "|activate": "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        _this.grid.footer.onClick('first');\n    }\n}"
             },
             "items": [
                 {
@@ -529,7 +522,14 @@ readers.forEach(function(reader) {
                             "    if (_this.panel.active) {\n" +
                             "       this.footer.onClick('first');\n" +
                             "    }\n" +
-                            "}"
+                            "}",
+                        "|rowdblclick": "function (_self, rowIndex, e)\n" + 
+                            "{\n" + 
+                            "    if (!_this.dialog) return;\n" + 
+                            "    _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {\n" + 
+                            "        _this.grid.footer.onClick('first');\n" + 
+                            "    }); \n" + 
+                            "}\n"
                     },
                     "|xns": "Roo.grid",
 
@@ -642,9 +642,13 @@ readers.forEach(function(reader) {
             continue;
         }
         formHeight += reader.form[k].xtype == 'TextArea' ? 100 : 30;
+        
         formElements.push(reader.form[k]);
     }
-    formElements.push(reader.form['id']);
+    if (reader.form['id']) {
+        formElements.push(reader.form['id']);
+    }
+    
 
     print("WRITE: " +  dir + '/' + cfg.DBNAME + '_' + reader.table + '.json');
     var frmCfg =