我的模型配置:{ 字段:[ { name: 'AcctManagFirst', type: 'string' }, { name: 'AcctManagLast', type: 'string' }, { name: 'Name', type: 'string' }, { name: 'Terms', type: 'string' }, { name: 'Freight', type: 'string' }, { name: 'Taxable', type: 'string' }, { name: 'Taxtable', type :'字符串'},{名称:'TaxTableRate',类型:'字符串'},{名称:'BillToAddr',类型:'字符串'},{名称:'BCity',类型:'字符串'},{名称:'BState',类型:'string'},{名称:'BZip',类型:'string'},{名称:'WHAddr',类型:'字符串' },{名称:'WHCity',类型:'字符串'},{名称:'WHState',类型:'字符串'},{名称:'WHZip',类型:'字符串'},
和我的商店
config:{
model: 'Sample.model.User',
proxy:
{
type: 'jsonp',
url: 'http://xxx.xxx.com/customer_info.php',
buildUrl : function (request) {
var url = this.getUrl(request),
params = request.getParams() || {};
url = url + params.CustNo;
request.setUrl(url);
return this.callParent([request]);
},
reader: {
type: 'json',
rootProperty: 'content'
}
}
I will get the user data from the store... how to write a view that display data with respect to the user.. user data changes .. now I can write the static data but I need the data to be dynamic..