您的位置:首页 > 其它

Ext.FormPanel/Ext.form.FormPanel load data/加载数据

2010-07-16 09:19 495 查看
the Ext.form.FormPanel does not hava store(Ext.data.Store)

. so you could get data by the following way, //通过一个session 拿到一条数据

gui.findById("MP_picklistno").load({url:"/servlet/IndexServlet?_p_action=fetch&_p_form=MP_picklistno", waitMsg:'Loading'});//get data
reader : new Ext.data.XmlReader({record : 'record'}, [{name: 'InventLocation', mapping:'FrmWarehouse',type:"string"},{name: 'WMSLocation', mapping:'FrmLocation',type:"string"}]),//read data


xml data i just get what i need

<?xml version='1.0' encoding='UTF-8'?><records><totalCount>1</totalCount><record><UserSetId>33</UserSetId><UserId>john</UserId><FrmWarehouse>A7</FrmWarehouse><FrmLocation>1F</FrmLocation></record></records>


refer the following link

http://www.sencha.com/deploy/dev/examples/form/xml-form.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: