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

  • Home
  • SEARCH
  • 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 8832573
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:33:51+00:00 2026-06-14T08:33:51+00:00

I have the following code which I got directly from a tutorial in ExtJs:

  • 0

I have the following code which I got directly from a tutorial in ExtJs:

updateUser: function (button) {
var win = button.up('window'),
form = win.down('form'),
record = form.getRecord(),
values = form.getValues();

record.set(values);
win.close();

Now, I am working on some modifications to suit my needs, what exactly do the following 3 lines return:

form = win.down('form'),
record = form.getRecord(),
values = form.getValues();

According to the documentation, the down() method above returns an Ext.Container.AbstractContainer that should not even be used according to the documentation. Furthermore, it does not have a getRecord() or a getValues() method. Can anyone explain what is going on here and what kind of objects those 2 calls return?

  • 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-14T08:33:52+00:00Added an answer on June 14, 2026 at 8:33 am

    When you call up it looks for the ancestor of selector passed. When you call down it returns the descendant of the selector passed. form.getRecord() returns the model instance of the form. and form.getValues() returns the actual values entered in the form.

    Ex: Model has 3 fields id, name, email and some config when you call form.getRecord() it returns the model instance, basically skeleton.

    Where as form.getValues() returns the values entered.
    Ex: If the following values are entered in the form id=1, name=xxxxx, email=aaaaa@test.com
    when you call form.getValues() it returns an object

    {
      id:1,
      name:'xxxxx',
      email:'aaaaa@test.com'
    }
    

    I hope this answers you question

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

Sidebar

Related Questions

i have the following code which switches some fullscreen-background-images (fadeOut, fadeIn). setInterval(function() { var
I have the following code which I got from http://css-tricks.com/startstop-slider/ I have it all
I have the following code which I got from http://css-tricks.com/startstop-slider/ I would like to
I have the following C++ code which I got from google's sparsehash website: #include
I have the following XML code, which I got by a UPnP device and
I have the following php code which I found here : function download_xml() {
I have currently got the following code which will run a bunch of ajax
I have just got weird error which involves protected modifier. I have following code:
I have drawn up the following PHP code which processes the data from a
I have the following code, which I got by looking at the sample on

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.