Results 1 to 6 of 6

Thread: How to bring a non-Architect form definition into an Architect form

  1. #1
    Sencha Premium User varsos's Avatar
    Join Date
    Feb 2008
    Location
    Long Island, NY
    Posts
    367
    Answers
    6

    Default Answered: How to bring a non-Architect form definition into an Architect form

    Hello,

    Is it possible to bring into Architect an outside form definition that was created manually?
    For example, I have an existing form with a complex absolute layout of over 100 fields, and I want to take that code that is in items array and bring it into a Sencha Architect form where I can make adjustments.

    Any ideas would be appreciated.

    Thanks
    varsos

  2. If you search the forum you will see that this has been asked many times and currently Architect does not support bringing in an existing screen. I believe the official Sencha road map does include importing code in a future version.

    Erik

  3. #2

    Default Import

    If you search the forum you will see that this has been asked many times and currently Architect does not support bringing in an existing screen. I believe the official Sencha road map does include importing code in a future version.

    Erik

  4. #3
    Sencha Premium Member
    Join Date
    Jan 2010
    Location
    Vancouver, Canada
    Posts
    258
    Answers
    4

    Default

    I was interested in this feature as well.

    You might consider trying to hack your way by editing the SA files manually, though I am not sure it is worthwhile your time. Commit the SA project in git, add one or two controls and see what is changed. Then following the patterns you discover in the files try to add your controls in those files using the editor of your preference.

  5. #4
    Sencha Premium User dawesi's Avatar
    Join Date
    Mar 2007
    Location
    Melbourne, Australia (aka GMT+10)
    Posts
    1,246
    Answers
    26

    Default

    Here's how you do it:

    1) create a form panel in architect
    2) click on 'code view'
    3) click 'create override'
    4) create an 'items' array inside and paste the fields from your form

    done.
    Cloud Application Architect

    Sencha Specialist / Sencha MVP / Sencha Technical Trainer
    ExtJs Developer + Contributor since 0.2.2 - Champion of the per developer license.

  6. #5
    Sencha Premium Member
    Join Date
    Jan 2010
    Location
    Vancouver, Canada
    Posts
    258
    Answers
    4

    Default

    @dawesi - That's a very good pattern, or he can add a container and implement a Process Config method for it where he can do whatever.

    I originally thought he wanted to be able to design the form visually using SA.

  7. #6
    Sencha Premium User dawesi's Avatar
    Join Date
    Mar 2007
    Location
    Melbourne, Australia (aka GMT+10)
    Posts
    1,246
    Answers
    26

    Default

    1) can also add a custom javascript file and put it in 'app/view/... ' folder as the url and it will put it in the app and copy it on build if 'required' in app.

    You lose editor ability to do this tho doing it this way but you can drop in the entire class this way.

    2) create your code into a SA extension using the docs to generate the SA files...

    https://docs.sencha.com/architect/4/...structure.html
    Cloud Application Architect

    Sencha Specialist / Sencha MVP / Sencha Technical Trainer
    ExtJs Developer + Contributor since 0.2.2 - Champion of the per developer license.

Similar Threads

  1. How do I display a form in design more in Architect
    By DavidThi808 in forum Sencha Architect 3.x: Q&A
    Replies: 6
    Last Post: 13 Jul 2016, 10:46 PM
  2. Only get to see form rendered for half a second in Sencha Architect 3.2
    By marc.fearby in forum Sencha Architect 3.x: Bugs
    Replies: 4
    Last Post: 28 Jun 2015, 7:27 PM
  3. Add bbar to form panel in sencha architect 3.0
    By rakesh.mmp in forum Sencha Architect 3.x: Q&A
    Replies: 1
    Last Post: 16 Jul 2014, 7:45 AM
  4. Replies: 3
    Last Post: 2 Feb 2013, 8:59 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
  •