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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:40:45+00:00 2026-06-09T22:40:45+00:00

I saw some example with Ext (cant find it again now) that it should

  • 0

I saw some example with Ext (cant find it again now) that it should be possible to give parameter to the view like I do below in the push function. If this is also possible in Sencha 2, how can I retrive this value in the view ?

var saveResponse = account.save({
      success: function(model, operation) {
          console.log('The Account was created, response: '+model);
          loginview.push({
              xtype: 'adultmenulist',
              adult: model
          });
      },
      failure: function(model, operation) {
          ....
      }
});
  • 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-09T22:40:46+00:00Added an answer on June 9, 2026 at 10:40 pm

    I usually create a function in my custom object called something like: updateWithRecord. Whenever i push the object i call this method and then proceed to push it like this:

    var record = Ext.create('MyApp.model.Adult', { firstName: 'Thomas', lastName: 'Vervik' });
    this.getAdultMenuList().updateWithRecord(record);
    this.getNav().push(this.getAdultMenuList());
    

    Note how i use MVC ref’s for both my detailpage and the NavigationView:

    refs: {
        nav: {
            selector: 'mainnavigation',
            xtype: 'mainnavigation',
            autoCreate: true
        },
        adultMenuList: {
           selector: 'adultmenulist',
           xtype: 'adultmenulist',
           autoCreate: true
       }
    }
    

    And my page would look something like this:

    Ext.define('MyApp.view.AdultMenuList, {
       extend: 'Ext.Container',
       config: {
         items: [
            { xtype: 'label', name: 'firstName' }, { xtype: 'label', name: 'lastName' }
          ]
        },
        updateWithRecord: function(record) {
           this.down('label[name="firstName"]').setHtml(record.get('firstName'));
           this.down('label[name="lastName"]').setHtml(record.get('lastName'));
        }    
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I saw some websites that (for example): if you want to view your message
Does jQuery validation plugin have some dependencies? For example, I saw blogposts that said
I downloaded some example code from github and saw that the BookRepository.cs class was
Saw that in some example codes, but ive never used it, unless im dynamically
Here's an example I saw for some GLX code: display = XOpenDisplay(0); // ...
I saw some html that displays the results of a PHP code just by
I saw some code like this: try { db.store(mydata); } finally { db.cleanup(); }
I saw some scala code that assign _ to a field of class, what
EDIT: See my comment. Hello. I just saw that some (only some) flash files
Quick disclaimer: I saw some plugins that truncate text strings but they do not

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.