extjs - Insert data to db -
i have checkbox grid , button. when push button want insert selected rows data db.
the checkbox part succeed , rows out cant figure hout how insert data db.
i know simple stuck on days , cant figure out docs or google.
var temp = ''; (i=0; i<=checkboxselection.length-1; i++){ temp = temp + checkboxselection[i].get('vendor_name') + ","; } alert(temp);
this store:
var v_url = 'getbiddingrows.jsp'; store: ext.create('ext.data.store', { fields:[ {name: 'stat_data', type: 'date' , sorttype: 'asdate', format: 'y-m-d h:m:s'}, {name: 'operator_desc'}, {name: 'vendor_name'}, {name: 'currency'}, {name: 'rate', type: 'float', sorttype: 'asfloat'} ], proxy: { type: 'ajax', timeout: 120000, url: v_url, reader: { type: 'json', root: 'data', successproperty: 'success' } }, autoload: true }),
how pass var temp getbiddingrows.jsp?
you can send server using ajax request:
ext.ajax.request({ url: 'foo', params: { vendors: temp } });
Comments
Post a Comment