Beispiel #1
0
 /**
  * Return combobox datastore code
  *
  * @param Field\ArrayToSelect $field
  * @return string
  */
 protected static function _getStore(Field\ArrayToSelect $field)
 {
     $key = $field->getKey();
     $grid = $field->getGridFilter()->getGrid();
     $gridKey = $grid->getKey();
     $url = $grid->getAction() . "/" . $key . "/filter-options";
     $store = "new Ext.data.Store({\n                        autoLoad: true,\n                        fields: [{name: 'id'}, {name: 'name'}],\n                        proxy: {\n                            type: 'ajax',\n                            url: '" . $url . "',\n                            reader: {\n                                root: '" . $gridKey . "',\n                                type: 'json'\n                            }\n                        }\n                    })";
     return $store;
 }
Beispiel #2
0
 /**
  * Update field
  *
  * return void
  */
 public function updateField()
 {
     parent::updateField();
 }