Results 1 to 2 of 2

Thread: (DataItem) Is record.get the same as

  1. #1
    Sencha User
    Join Date
    Mar 2013
    Vote Rating

    Default Unanswered: (DataItem) Is record.get the same as

    I noticed in the updateRecord function that i can handle my data using either record.get('someField') or Are they both the same or more static?

    I created some DataItems so that several components would keep up to date with the changes to the database auto-magically.

    My issue is that all of my models have associations (nestled fields). In order for me to iterate through the nestled fields to build my components, I've been using I haven't figured out the equivalent record.get command.

    I just want to be sure that using the nomenclature will allow for the components to dynamically update the same way as record.get would.


  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL
    Vote Rating


    They both will function the same. You could technically change the data property to another name and that's where the get method will handle it.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2

    Think my support is good? Get more personalized support via a support subscription.

    Need more help with your app? Hire Sencha Services

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts