Results 1 to 3 of 3

Thread: Extending user defined Models in Architect

  1. #1
    Sencha Premium User EricRicher's Avatar
    Join Date
    Jul 2014
    Posts
    45

    Default Extending user defined Models in Architect

    This may have been answered before so I apologize if this is a repeat question.

    In Architect 4, how can I create a model and then using it as a base for another model?

    I want to do something like this:



    I am trying to avoid having to create user extensions as these models will be only used in this project.

    Thanks in advance

  2. #2
    Sencha User
    Join Date
    Sep 2014
    Location
    Central Europe
    Posts
    795
    Answers
    103

    Default

    Hi

    With SA 4.2 you should be able to edit extend config of the class. I think this works also in SA 4.1

    uF8mFzp.jpg

    Keep in mind that you can edit the "extend" so it should work as expected. But there is no extra support implemented. Let's say when SA offers you automatically the "fields" from the model in the grid or combo-box or something it will not offer you the fields from the base but you can always just write it there manually.

  3. #3
    Sencha Premium User EricRicher's Avatar
    Join Date
    Jul 2014
    Posts
    45

    Default

    Quote Originally Posted by petr.vecera View Post
    Hi

    With SA 4.2 you should be able to edit extend config of the class. I think this works also in SA 4.1

    uF8mFzp.jpg

    Keep in mind that you can edit the "extend" so it should work as expected. But there is no extra support implemented. Let's say when SA offers you automatically the "fields" from the model in the grid or combo-box or something it will not offer you the fields from the base but you can always just write it there manually.
    Thanks. I find out that I could do as you suggested right after I posted my thread. I also saw found out that there is no extra support in SA to use the inheritance from the base model.

Similar Threads

  1. User defined Extensions
    By SebastianZ in forum Sencha Architect 3.x: Q&A
    Replies: 1
    Last Post: 19 May 2014, 1:02 PM
  2. Using already defined Models?
    By Dumas in forum Sencha Architect 2.x: Help & Discussions
    Replies: 0
    Last Post: 16 Feb 2012, 8:32 PM
  3. Replies: 2
    Last Post: 19 Jan 2012, 9:13 AM
  4. extending models with associations [4.1. Prev]
    By christophe.geiser in forum Ext: 4.x Beta
    Replies: 0
    Last Post: 25 Oct 2011, 12:29 AM
  5. [Solved]Help with User-Defined properties
    By boovoon in forum Ext 2.x: Help & Discussion
    Replies: 21
    Last Post: 19 May 2009, 12:03 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
  •