Results 1 to 4 of 4

Thread: ExtJs5.3 - Ext.data.Model.getField/getFields undocumented

  1. #1

    Default Answered: ExtJs5.3 - Ext.data.Model.getField/getFields undocumented

    Hi,

    While searching for a way to borrow some Model fields from a Model class to another, I found that the instance method getFields() internally calls a static getFields() method.

    But those methods (getField and getFields) are undocumented, are they private or public ?

    Thanks in advance for your help,
    Andréas
    Last edited by AndreasLivet; 28 Oct 2016 at 6:11 AM. Reason: Add ExtJs version

  2. I see them, you may have to check the Private checkbox in the upper-right corner to see private members:

    Attachment 55387

  3. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,379
    Answers
    3997

    Default

    I see them, you may have to check the Private checkbox in the upper-right corner to see private members:

    Screen Shot 2016-10-28 at 1.11.20 PM.png
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

  4. #3

    Default

    Quote Originally Posted by mitchellsimoens View Post
    I see them, you may have to check the Private checkbox in the upper-right corner to see private members:

    Screen Shot 2016-10-28 at 1.11.20 PM.png
    You are right ! They do not appears in my offline doc version (which I always use), neither in the source code, but they're displayed in the online doc.

    Sorry for the noise.

    Andréas

  5. #4
    Sencha Premium User
    Join Date
    Dec 2016
    Posts
    7

    Default

    Is there any example of how to use getField? I'm trying to do model.getField('fieldname'), but the fieldMap is empty.

Similar Threads

  1. Replies: 2
    Last Post: 29 Dec 2014, 5:11 AM
  2. getFields() of Model
    By aflx in forum Sencha Touch 2.x: Discussion
    Replies: 2
    Last Post: 8 Jan 2012, 4:03 AM
  3. getFields under model
    By tomalex0 in forum Sencha Touch 1.x: Discussion
    Replies: 0
    Last Post: 1 Sep 2011, 10:59 PM
  4. Replies: 1
    Last Post: 18 Mar 2010, 12:44 PM
  5. Replies: 7
    Last Post: 4 Mar 2010, 1:57 AM

Posting Permissions

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