use extra params in store dynamically

前端 未结 5 2774
鱼传尺愫
鱼传尺愫 2021-02-20 17:59

I have a form. In the form, I am using a comboBox with a store.

{
    xtype: \'combobox\',
    id: \'SubContractor\',
    name: \'SubCo         


        
5条回答
  •  耶瑟儿~
    2021-02-20 18:34

    Try this:

      .
      . 
      proxy: {
        type: 'ajax',
        api: {
            create: CONTEXT_PATH + '/mvc/odon/create', 
            read: CONTEXT_PATH + '/mvc/odon/list',
            update: CONTEXT_PATH + '/mvc/odon/update',
            destroy: CONTEXT_PATH + '/mvc/odon/delete'
        },
        .
        .
    

    Passing the parameter:

     var storeDiagnostico= down('gridpanel').getStore();//Ext.create('store.odont.DStore');
            storeDiagnostico.getProxy().setExtraParam("idOdontologia", value);
            storeDiagnostico.load();
    

提交回复
热议问题