Results 1 to 2 of 2

Thread: Problem with template

  1. #1
    Sencha User
    Join Date
    May 2010
    Posts
    178

    Default Problem with template

    I have a template that I am trying to display in the west panel
    I have a data store that contains a single record that I query from mysql with php.

    But I can;t get the data to display in the panel.

    here is how I'm trying to load the template:

    Code:
      var detailPanel = Ext.getCmp('detailPanel');
       var tempRecord = notices.driverStore.getAt(0); 
       bookTpl.overwrite(detailPanel.body, tempRecord.data);
    the error I get in firebug is tempRecord is undefined.

    if I try this :

    Code:
    bookTpl.overwrite(detailPanel.body, notices,driverStore);
    I get no errors the template displays but there is no data.

    Can someone tell me what I am doing wrong?

  2. #2
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246

    Default

    Loading is asynchronous. Are you waiting for the server to respond before you access the first record?

Similar Threads

  1. Combobox with template problem
    By eudoxem in forum Ext GWT: Discussion
    Replies: 2
    Last Post: 11 Oct 2010, 6:11 AM
  2. template problem in ie 8
    By chrizmaster in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 11 May 2009, 7:08 AM
  3. Problem with Ext.template
    By estraver in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 21 Nov 2008, 8:46 AM
  4. [2.2][CLOSED] Ext.Template problem
    By Evolic in forum Ext 2.x: Bugs
    Replies: 4
    Last Post: 9 Oct 2008, 8:53 AM
  5. Template problem
    By pan43 in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 9 Apr 2008, 3:23 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •