Results 1 to 2 of 2

Thread: How to set appFolder so that export does not wipe it out in designer.js

  1. #1
    Sencha Premium Member
    Join Date
    Mar 2012
    Location
    Still Here
    Posts
    15
    Vote Rating
    1
      0  

    Default How to set appFolder so that export does not wipe it out in designer.js

    I need to set the path for the application. Modifying (against the rules) ext.application in the generated designer.js to include:
    appFolder: '/myurl/app',
    works but is wiped out every time I hit export (of course).

    Is there a property in designer I'm missing?

    I noticed someone esle reporting a bug that the following modification to the calling .html doesn't work and should, but the bug was closed saying that modifying appFolder as described above worked (but is not the solution).
    <script type="text/javascript">
    Ext.Loader.setConfig({ enabled: true });
    Ext.Loader.setPath('Foo', 'foo/app');
    </script>
    <script type="text/javascript" src="foo/app/Application.js"></script>

    That thread was entitled MVC appFolder path

    Thanks,
    Gerry?e:

  2. #2
    Sencha User Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Olney, MD
    Posts
    1,953
    Vote Rating
    65
      0  

    Default

    This is possible in Sencha Designer 2 but not in Ext Designer.

    Work around would be to create a index.js that is a copy of designer.js and that you've altered to include appFolder. In general the designer.js file is an example that shows all of your views on the same screen but in practice you wouldn't only use this as an idea. Export will not overwrite index.js.
    Phil Strong
    @philstrong

Posting Permissions

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