添加使用商店Sencha touch2显示用户数据的视图

时间:2013-06-14 13:59:06

标签: extjs sencha-touch-2 store sencha-touch-2.1

我的商店JSON看起来像这样:

"content" : {
    "RecId" : "123",
    "CustNo" : "123",
    "Attn" : "",
    "AcctManagFirst": "Sample ",
    "AcctManagLast": "Sample2",
    "Name": "Works",
    "Terms": "1234",
    "Freight":0,
    "Taxable":1,
    "TaxTable": "EXEMPT",
    "TaxTableRate": "0.000000",
    "BillToAddr": "GGGGGGGGG",
    "BCity": "New Iberia",
    "BState": "LA",
    "BZip": "70560",
    "WHAddr": "Perry",
    "WHCity": "New Iberia",
    "WHState": "LA",
    "WHZip": "70560"
}

使用上面我想创建一个显示用户信息的视图,如:

Name                              {Name from the store}
AccountManager Last NAme            {AcctManagLast from the store}

我是Sencha的新手。请帮助我如何编写显示标签的表单,后跟商店中的值。

1 个答案:

答案 0 :(得分:1)

包含模板和数据的简单面板适合您,请查看:http://www.senchafiddle.com/#KmNX8#yqVQt