1. #1
    Sencha User
    Join Date
    Feb 2012
    Location
    Noida,India
    Posts
    31
    Answers
    1
    Vote Rating
    1
    shruti_nair is on a distinguished road

      0  

    Default 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
    Code:
    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'
        ]
    });
    my view
    [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..

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,330
    Answers
    3541
    Vote Rating
    847
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    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
    ________________
    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 in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Jul 2012
    Posts
    1
    Vote Rating
    0
    raaatuuul is on a distinguished road

      0  

    Default 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.

Thread Participants: 2