-
12 Apr 2012 10:50 PM #1
Unanswered: Load data from store into html
Unanswered: Load data from store into html
hi i have a panel in which i wish to diplay sm data from the store
Model
my viewCode:Ext.regModel('receipts_model', { fields:[ 'timestamp', 'receiptID', 'Identifier', 'retailer', 'transactionID', 'postcode', 'location', 'total' , 'vat', 'offer' ], hasMany: {model: 'Items', name: 'Items'} }); Ext.regModel('Items', { fields:[ 'name', 'quantity', 'amount' ] });
[CODE]
what i want to do is show the 'items' data in a panel
if i use html:<div>{transactionID}</div>
it doesnt work
how can i show the data into the html..
-
13 Apr 2012 6:56 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,656
- Vote Rating
- 435
- Answers
- 3108
You can set the tpl config on the panel and set the data config to the record.data property or use panel.update(record.data)
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
5 Nov 2012 2:06 AM #3
One request
One request
Can you give an example of this situation? It will be very helpfull to me. Please give a demo of showing store data to html.


Reply With Quote