-
4 Nov 2011 7:46 AM #1
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!
-
4 Nov 2011 9:31 AM #2
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.
-
4 Nov 2011 9:39 AM #3Ext JS Premium Member
- Join Date
- Apr 2008
- Location
- Groningen - Netherlands
- Posts
- 1,010
- Vote Rating
- 23
- Answers
- 75
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 Nov 2011 11:56 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,599
- Vote Rating
- 435
- Answers
- 3102
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
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
-
10 Nov 2011 6:20 AM #5
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:
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.Code:<definition> <table id="users"> ... </table> <table id="posts"> ... </table> <join id="joined" left="users" right="posts"> ... </join> </definition>
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.


Reply With Quote