私のモデル構成:{ フィールド: [ { 名前: 'AcctManagFirst', タイプ: '文字列' }, { 名前: 'AcctManagLast', タイプ: '文字列' }, { 名前: '名前', タイプ: '文字列' }, { name: 'Terms', type: 'string' }, { name: 'Freight', type: 'string' }, { name: 'Taxable', type: 'string' }, { name: 'Taxtable', type : 'string' }, { name: 'TaxTableRate', type: 'string' }, { name: 'BillToAddr', type: 'string' }, { name: 'BCity', type: 'string' }, { name : 'BState', type: 'string'}, { name: 'BZip', type: 'string' }, { name: 'WHAddr', type:'string' }, { name: 'WHCity', type: 'string' }, { name: 'WHState', type: 'string' }, { name: 'WHZip', type: 'string' },
そして私の店
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..