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 8792561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:59:44+00:00 2026-06-13T22:59:44+00:00

I have the following listener on a list view in a tab panel: listeners:

  • 0

I have the following listener on a list view in a tab panel:

listeners: {
    itemtap: function (list, index, item, e) {
    var record = list.getStore().getAt(index);
    this.fireEvent('showListCommand', this, record);
}

This is the config of my controller:

config: {
    refs: {
        mainView: "mainview",
        activeLists: "activelists",
        listView: "listview"
        // I deleted some code for easier reading
    },
    control: {
        activeLists: {
            showListCommand: "onShowListCommand"
        }
    }
},

This is the onShowListCommand function and the function it calls, both in the controller:

onShowListCommand : function (list, record) {
    this.activateListView(record);
},

slideLeftTransition: { type: 'slide', direction: 'left' },

activateListView: function (record) {
    var listView = this.getListView();
    listView.setRecord(record);
    console.log(record.get('id'));
    Ext.Viewport.animateActiveItem(listView, this.slideLeftTransition);
},

Console log works as expected here, it logs the id of the list item that was tapped. Also I know setRecord function works, it displays both the title, id and budget fields from the model inside the form textfield in listView.

Now, what I’m trying to succeed for the past 10h is to pass these model fields to the listView and to be able to use them outside the form, for example in the title or html. So basically I have a list inside a tab panel and on itemtap I’m displaying another view using Ext.Viewport.animateActiveItem.

ListView is “Ext.form.Panel” and it currently has a toolbar and a fieldset via initialize() function, but I want to replace the fieldset with some plain html but I can’t use the data from the setRecord() in any way.

  • 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-06-13T22:59:44+00:00Added an answer on June 13, 2026 at 10:59 pm

    I solved this. The main problem was that I tried to display the data that wasn’t yet passed because all this was in the initialize function. I figure out a way to pass the data through viewport too.

    Here’s how my function to display the view where I want to pass the data to looks now:

    activateListView: function (record) {
            Ext.Viewport.animateActiveItem( {xtype: 'listview', data: record.data}, {type: 'slide', direction: 'left'} );
        }
    

    Here’s how I use the data in the view:

    var datafield = this.getData();
    console.log(datafield .id);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have following view model: var viewModel = { List: ko.observableArray([ { Id: 1,
I am trying to set On Click Listener on the List view. I have
Should be straight-forward, right? We have the following listener at our disposal. chrome.tabs.onRemoved.addListener(function (tabId,
I have the following event listener in SecurityConfig security { active = true useSecurityEventListener
I have the following code in a c++ listener class (more or less), which
I have the following JavaScript/jQuery code that starts the listener that highlights the DOM
I have following source. In insertMessage(..), it calls selectMessage to check whether duplicate record
I have created a custom adapter for my list view so that I can
I have an android activity that consists of a List View and a Text
Have following listener for keyboard ArrowDown event(it's key code is 40 ): window.onload =

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.