---
title: "Sencha Touch 1.1: Setting Panel properties after selecting item in List"  
description: "Sencha Touch 1.1: Setting Panel properties after selecting item in List"  
author: "Anonymous User"  
published: 2013-05-31  
updated: 2013-06-01  
canonical: https://www.mindstick.com/forum/952/sencha-touch-1-1-setting-panel-properties-after-selecting-item-in-list  
category: "sencha touch"  
tags: ["sencha touch"]  
reading_time: 2 minutes  

---

# Sencha Touch 1.1: Setting Panel properties after selecting item in List

Hi [Expert](https://www.mindstick.com/articles/13120/an-expert-financial-advice-will-improve-your-finances)! \
I'm using [Sencha Touch](https://www.mindstick.com/interview/23004/define-class-system-of-sencha-touch) 1.1. I have a Ext.List and when the user selects an item, I switch to the details page usingrootPanel.setActiveItem('details'); That [works fine](https://answers.mindstick.com/qa/115732/my-software-works-fine-on-windows-10-but-crashes-on-windows-11-why). Now I want to get the details of the selected item and [populate](https://www.mindstick.com/blog/60/populate-records-in-second-listbox-according-to-the-selection-in-first-list-box) [properties](https://www.mindstick.com/articles/23331/nootropics-7-different-types-and-their-unique-properties) in the 'details' panel. How do I do that?\
At the moment I'm passing the record around to the various panels of the details page by using this code:\
onItemDisclosure: [function](https://www.mindstick.com/articles/13001/multi-statement-table-valued-user-defined-function-in-sql-server) (record) { // user has selected a [Country](https://yourviews.mindstick.com/view/85543/do-you-think-that-french-will-be-islamic-country) from the Country List. // TODO: There must be a better way to [pass the data](https://answers.mindstick.com/qa/33498/how-do-you-pass-the-data-to-sub-activities-android-explain-for-example) around CountryDetailsToolbar.setTitle(record.data.title); var upperData = { upper: record.data.title.toUpperCase()}; CountryDetailsHeaderLeft.[update](https://www.mindstick.com/forum/156353/what-is-hummingbird-update)(upperData); CountryDetailsHeaderMonth.update(record.data); viewport.setActiveItem('CountryDetailsCarousel'); }\
This seems a bit messy to me. Is there a cleaner way to set titles and update panels with the data "record"?\
Thanks in [advance](https://www.mindstick.com/blog/33258/jee-mains-and-jee-advance-exams)!

## Replies

### Reply by AVADHESH PATEL

Hi Lois!\
You can use rootPanel.getActiveItem() to get instance of currently selected panel, i am not sure about what do you mean by populate properties in the details tab\
**Update:**\
I think there isn't any problem in passing record data between panels, i think that is the most efficient way\

```
onItemDisclosure: function (record) {    // user has selected a Country from the Country List.    var title = record.get('title');    CountryDetailsToolbar.setTitle(title);    CountryDetailsHeaderLeft.update({ upper: title.toUpperCase() });    CountryDetailsHeaderMonth.update(record.data);    viewport.setActiveItem('CountryDetailsCarousel');}
```


---

Original Source: https://www.mindstick.com/forum/952/sencha-touch-1-1-setting-panel-properties-after-selecting-item-in-list

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
