Pman.Dialog.CoreCompanies.bjs
[Pman.Core] / Pman.Dialog.CoreCompanies.bjs
index 1d19501..2b2334a 100644 (file)
                                                 "select": "function (combo, record, index)\n{\n    _this.grid.footer.onClick('first');\n}"
                                             },
                                             "alwaysQuery": true,
-                                            "displayField": "name",
+                                            "displayField": "comptype_name",
                                             "editable": "false",
-                                            "emptyText": "Select pulldown",
+                                            "emptyText": "Select Type",
                                             "fieldLabel": "Type",
                                             "forceSelection": true,
                                             "listWidth": 250,
                                             "loadingText": "Searching...",
                                             "minChars": 2,
+                                            "name": "comptype_name",
                                             "pageSize": 20,
                                             "qtip": "Select type",
                                             "queryParam": "query[name]",
                                             "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>",
                                             "triggerAction": "all",
                                             "typeAhead": false,
-                                            "valueField": "name",
-                                            "width": 300,
+                                            "valueField": "val",
+                                            "width": 200,
                                             "xtype": "ComboBox",
                                             "|xns": "Roo.form",
                                             "items": [