1. #1
    Sencha Premium Member
    Join Date
    Feb 2012
    Posts
    6
    Vote Rating
    0
    afink is on a distinguished road

      0  

    Default How do create a sencha build from designer 2.0 generated files

    How do create a sencha build from designer 2.0 generated files


    When i use the commands from the 'Getting started with Ext JS 4" guide, to create a production build from the designer 2.0 generated files:

    sencha create jsb -a designer.html -p app.jsb3
    sencha build -p app.jsb3 -d .

    I end up with empty files, the jsb3 file doesn´t list any files in the files array.

    What am i doing wrong ? Do i have to add the files manually to the jsb3 file ?

    Best regards
    Andreas

  2. #2
    Ext JS Premium Member
    Join Date
    Aug 2011
    Posts
    9
    Vote Rating
    0
    ottobar is on a distinguished road

      0  

    Default


    Something will need to change in order for the designer and the SDK build tools to work together.

    I found out from this post

    http://www.sencha.com/forum/showthread.php?182304-Problem-with-sencha-create-jsb-using-Ext-Js-4-classes-missing-in-app.jsb3

    that the SDK tools do not work when you put a store or model into the app.js file (designer.js). However, there is no way to put those into a controller class with the designer.

  3. #3
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,266
    Vote Rating
    121
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    We have a lot planned in order to make Designer and SDK tools to work in harmony.

    Quote Originally Posted by ottobar View Post
    However, there is no way to put those into a controller class with the designer.
    What do you mean by that?
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  4. #4
    Ext JS Premium Member
    Join Date
    Aug 2011
    Posts
    9
    Vote Rating
    0
    ottobar is on a distinguished road

      0  

    Default


    If I were writing my controller by hand, I would do something like this:

    Code:
    Ext.define('MyApp.controller.MyController', {
      extend: 'Ext.app.Controller',
      stores: [
        'MyStore'
      ],
      models: [
        'MyModel'
      ]
    });
    I do not see a way to add the stores and models properties onto a controller with the designer.

  5. #5
    Sencha Premium Member
    Join Date
    May 2010
    Location
    Guatemala, Central America
    Posts
    1,267
    Vote Rating
    81
    ssamayoa is a jewel in the rough ssamayoa is a jewel in the rough ssamayoa is a jewel in the rough ssamayoa is a jewel in the rough

      0  

    Default


    Quote Originally Posted by ottobar View Post
    I do not see a way to add the stores and models properties onto a controller with the designer.
    What you mean?

    Is there:

    AutoGestion (CnewlsMoviclubAutoGestion)_2012-03-08_08-50-27.png
    UI: Sencha Architect 3.x / ExtJS 4 & 5
    Server side: JEE / EJB 3.x / CDI / JPA 2.x/ JAX-RS / JasperReports
    Application Server: Glassfish / WildFly
    Databases: Oracle / DB2 / MySQL / Firebird

    If you like my answer please vote!

  6. #6
    Ext JS Premium Member
    Join Date
    Aug 2011
    Posts
    9
    Vote Rating
    0
    ottobar is on a distinguished road

      0  

    Default


    Ah, I didn't notice that down there in the properties. Thank you.

  7. #7
    Sencha User
    Join Date
    Apr 2008
    Posts
    80
    Vote Rating
    0
    g13013 is on a distinguished road

      0  

    Default


    is their a way to not include a controller in the main app config in order to load the controller at runtime.?