1. #1
    Sencha User
    Join Date
    Mar 2011
    Location
    Germany
    Posts
    118
    Answers
    6
    Vote Rating
    0
    da_b0uncer is an unknown quantity at this point

      0  

    Question Unanswered: Domain Classes, SDK, Architecture, XML

    Unanswered: Domain Classes, SDK, Architecture, XML


    I want to build a GUI to create some XML-files and have some ExtJS related questions.

    The XML is more about configuration, than about datasets. So I don't know, if the Model-LocalStore-XmlReader/Writer idea is suited for this.

    If it's not, I'd rather build some JS-Datastructure, which could convert itself to the needed XML after finished. I can use Ext.define() for creating those domain-classes, but since they are neither model/store/view/controller, where to put them?

    I mean this SDK deployment application tries to put every needed code in one big minified file, does the use of Ext.define() and Ext.create() alone take care, that the stuff will be included?

    Thank you in advanced!

  2. #2
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,508
    Answers
    528
    Vote Rating
    288
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      0  

    Default


    If your classes don't fit into the model/store/view/controller structure then you can just put them wherever you want. To load such classes within the MVC you'll just need to put them in a requires. If you aren't using the Ext.Loader then there's no problem anyway.

    Generating a single production JS file is done using JSBuilder. Take a look at the files included in the ExtJS zip download. You should find jsb files in there for producing the ExtJS build. You can do something similar to create your own build file. There's an example of this in examples/desktop. It will not be done automatically based off the requires in your Ext.define.

  3. #3
    Ext JS Premium Member tvanzoelen's Avatar
    Join Date
    Apr 2008
    Location
    Groningen - Netherlands
    Posts
    1,111
    Answers
    83
    Vote Rating
    30
    tvanzoelen has a spectacular aura about tvanzoelen has a spectacular aura about tvanzoelen has a spectacular aura about

      0  

    Default


    Generating a single production JS file is done using JSBuilder. Take a look at the files included in the ExtJS zip download.

    Its better, I think, to take the JS builder in SDK tools instead of the jsbuilder shipped with the code release. http://www.sencha.com/products/sdk-tools/

    The JSBuilder shipped with the release gave me some trouble.

  4. #4
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,633
    Answers
    3453
    Vote Rating
    817
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    You don't have to extend a Store or a Model in order to put them into those folders... If you make a custom data class, it would still at least go into the model folder.

    Why do you think the Store isn't ideal?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  5. #5
    Sencha User
    Join Date
    Mar 2011
    Location
    Germany
    Posts
    118
    Answers
    6
    Vote Rating
    0
    da_b0uncer is an unknown quantity at this point

      0  

    Default


    I want to build a visual-join editor for tables.
    The system I'm working with uses a proprietary XML-definition format, so I would get something like:

    Code:
    <definition>
      <table id="users">
        ...
      </table>
      <table id="posts">
        ...
      </table>
      <join id="joined" left="users" right="posts">
        ...
      </join>
    </definition>
    But it can get really big, with many tables, and joins, like SQL in XML-format. So it's a configuration data-structure and not a set of data-records.

    I don't know, if it's a good idea to put the the tables in a store with table-models, because the table-nodes can have other data nested into them.