View Full Version : datastore proxy

15 Mar 2011, 12:20 AM
hey plz help me with datastore and proxy.......... i m using the single proxy object for datastores of different
combobox . this proxy's url uses globel variable for setting values to send..i m changing the values of globel var from different functions which are get called on events such as click on combobox..but url
var are not changing after fuction call

var hidden_Name = 'initially';

var catid = 0,typeid = 0,nameid = 0;

var myProxy = new Ext.data.HttpProxy({

url: (http://www.sencha.com/forum/"../AssetServlet&hidden_Name="+hidden_Name+"&catid="+catid+"&typeid="+typeid+"&nameid="+nameid,method:'POST')"../AssetServlet&hidden_Name="+hidden_Name+"&catid="+catid+"&typeid="+typeid+"&nameid="+nameid, (http://www.sencha.com/forum/"../AssetServlet&hidden_Name="+hidden_Name+"&catid="+catid+"&typeid="+typeid+"&nameid="+nameid,method:'POST')
method:'POST' (http://www.sencha.com/forum/"../AssetServlet&hidden_Name="+hidden_Name+"&catid="+catid+"&typeid="+typeid+"&nameid="+nameid,method:'POST')

function categoryOnClick(){
hidden_Name = 'category';
var viewComp = view.getComponent('tabp');
var assignForm = viewComp.getComponent('assignTab');
var typeComboBox = assignForm.getComponent('type1');
var type_dataStore = typeComboBox.getStore();
catid = catCombo.getValue();

typeid = typeCombo.getValue();
catid:catid ,
typeid:typeid ,
nameid:nameid }

18 Mar 2011, 8:15 AM
Try this with your global variables:

hidden_Name = 'initially';

or else try the method setUrl()