Results 1 to 6 of 6

Thread: How do I put views, stores, etc in sub-directories?

  1. #1
    Sencha Premium Member
    Join Date
    Jun 2013
    Location
    Boulder, CO
    Posts
    546
    Vote Rating
    10
      0  

    Default How do I put views, stores, etc in sub-directories?

    Hi;

    We have about 68 windows in the app we're porting to the web. Needless to say, we don't want 68 .js files in the app/view folder.

    How do we tell Architect to put classes in a sub-directory?

    thanks - dave

  2. #2
    Touch Premium Member BostonMerlin's Avatar
    Join Date
    Aug 2010
    Location
    Boston
    Posts
    548
    Vote Rating
    44
      0  

    Default

    Users (including myself) have requested simple folder organization since the day architect was conceived. Short answer, you can't and for some reason, Sencha doesn't want to.

    The types of enterprise apps we build need organization and structure beyond simple controller/view/store/model. I have three projects and all three force you to scroll past dozens and dozens of views, components and sub components. Pretty bad usability issue.

    John
    I love being a dad (5 & 7), flying airplanes (KBED) and writing code (spaghetti).
    BostonMerlin aka John Bond aka JB
    See U @ SenchaCon '13

  3. #3
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,487
    Vote Rating
    146
      0  

    Default

    Quote Originally Posted by DavidThi808 View Post
    Hi;

    We have about 68 windows in the app we're porting to the web. Needless to say, we don't want 68 .js files in the app/view folder.

    How do we tell Architect to put classes in a sub-directory?

    thanks - dave
    When naming your class just use a package name. For example lets say you have a UserGrid, UserForm and UserDetail class you could name these
    user.Grid
    user.Form
    user.Detail

    The classes would then be written into a folder called user and a class called Grid within your directory structure.
    Aaron Conran
    @aconran

  4. #4
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,487
    Vote Rating
    146
      0  

    Default

    Quote Originally Posted by BostonMerlin View Post
    Users (including myself) have requested simple folder organization since the day architect was conceived. Short answer, you can't and for some reason, Sencha doesn't want to.

    The types of enterprise apps we build need organization and structure beyond simple controller/view/store/model. I have three projects and all three force you to scroll past dozens and dozens of views, components and sub components. Pretty bad usability issue.

    John
    We're aware of the need and it has nothing to do with not wanting to do it; it has to do with the fact that the feedback we've received as that there are more critical things to address prior to being able to view folders in the inspector.

    We hope to be able to get this in sooner rather than later for you guys.
    Aaron Conran
    @aconran

  5. #5
    Sencha Premium Member
    Join Date
    Jun 2013
    Location
    Boulder, CO
    Posts
    546
    Vote Rating
    10
      0  

    Default

    thank you - that's the critical part for us (reflecting it with a tree in the project inspector would be a nice plus, but we can live without that).

  6. #6
    Sencha User
    Join Date
    Jul 2012
    Posts
    17
    Vote Rating
    0
      0  

    Default

    Wow, I was unaware of this. This makes, among other things, implementing profile-based strategies in SA much easier.

Posting Permissions

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