PDA

View Full Version : load grid according to particular Id



PriyankaM
26 Nov 2013, 1:58 AM
Hello,

I want to get the column value from taskstore and pass it to the assignmentStore as parameter.So how can i get the particular column that i can pass to proxy as parameter.

As here in App.js

var g = Ext.create("App.view.GanttPanel", {
height: 400,
width: 1000,
margin: '66px 0 0 278px',
renderTo: Ext.getBody(),
startDate: start,
endDate: end,
taskStore: taskStore,(Here want to get the value of particular column for eg: taskstore.FunctionId it is custom column in TaskModel want to pass its value to Assignment Controller get method)


assignmentStore: Ext.create("App.store.Assignment", {
resourceStore: resourceStore,
autoLoad: true,
proxy: {
extraParams : { foo: "bar" },
method: 'GET',
type: 'ajax',
api: {
read: 'Assignments/Get',
create: 'Assignments/Create',
destroy: 'Assignments/Delete'
},
reader: {
type: 'json',
root: 'assignmentdata'
},
writer: {
root: 'assignmentdata',
type: 'json',
encode: true,
allowSingle: false
}
}
}),
// assignmentStore: Ext.create("App.store.Assignment", { resourceStore: resourceStore }),Id
//assignmentStore: Ext.create("App.store.Assignment", {
// username : "john",
// password : "123"
//}),
// dependencyStore: dependencyStore,
resourceStore: resourceStore
});

scottmartin
26 Nov 2013, 7:17 AM
Duplicate post:
http://www.sencha.com/forum/showthread.php?276787