Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6604013
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:05:40+00:00 2026-05-25T19:05:40+00:00

I have the usual data passed into my onItemDisclosure as below: onItemDisclosure: function(record, btn,

  • 0

I have the usual data passed into my onItemDisclosure as below:

  onItemDisclosure: function(record, btn, index) {
       console.log(record.data);
  }...

I can see the data no problems but I would like to pass this data onto my panel so its template can then use it?

How would I go about this.

I have this so far in the detailed panel, but with in the panel code how do I then grab this?

detailPanel.update(record.data);

UPDATE

Well having a play around it seems that I placed the data variable within the template as normal and the whole thing works

    <tpl for="."><div>{name}</div></tpl>

But my Other question is that I have my json set up with a field as below:

  "name"," joe bloggs",
   "contacts": [
            {
                "home":"0844 482 5171",
                "mobile":"",
                "work":"0844 482 5100"          
            }],.....

Now I can access these if I console.log(contacts[0].mobile) but if I place this in the template <tpl for="."><div>{contacts[0].mobile}</div></tpl> it just simply prints out {contacts[0].mobile}

So how can I obtain this data within contacts?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T19:05:41+00:00Added an answer on May 25, 2026 at 7:05 pm

    Update

    use <tpl for="contacts">{mobile}</tpl>

    end

    Add the tpl property to the detailPanel object, like this:

    tpl:'<h1>{text}</h1>'
    

    where text is some property of the record.data object.

    Here are some good tutorials about sencha’s templates:

    http://www.sencha.com/learn/xtemplates-part-i/

    http://www.sencha.com/learn/xtemplates-part-ii/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have my index page which posts a single entry instead of the usual
I have a SQL Server 2005 data-mart star schema with the usual fact and
The usual approach with recursive data structures is to have a parent pointer in
I have an MVC app divided into the usual layers: MVC presentation layer, Business
I have the following data scheme that I want to turn into an application.
I have a MySQL table with clients in it, the usual data, names, addresses,
We have the usual web.xml for our web application which includes some jsp and
I have a usual login form consisting of two input fields, one for login,
I have looked at the usual suspects...Spark, NHaml, etc. They all seem to be
I have a nib that I load the usual way [NSBundle loadNibNamed:@AuthorizationWindow owner:self]; and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.