Sencha Architect Integration

by Roland Schütz (comments: 0)

Introduction

With Bancha 1 you were able to use Sencha Architect, but you were forced to use nastly overrides to inject Bancha schema's into Sencha Architect. The main reason for this is that Sencha Architect does not provide any way to inject custom code inside the app. We focused our engineering efforts in Bancha 2 on a better integration, and we are happy to now preset it to you.

Integration with Sencha Architect 2

To use Bancha 2 you simply need to add one JS Ressource, which points to the Bancha ScriptTagInitializer. If you now want to have a Bancha model, simply create a normal model inside Sencha Architect and then create a new config called 'bancha' and set it to true. Bancha will then automatically inject all the fields, validation rules, associations and proxy configuration in the model and you are ready to go.

Integration with Sencha Architect 3

Because Sencha Architect 2 does not provide any way to augment the data inside Sencha Architect 2 we can not display the available model fields inside Sencha Architect. Of course, if you then run it in the browser everything works. This stil is not perfect.

Sencha announced at the SenchaConf that Sencha Architect 3 finally will allow Extension Import. We have looked in the small documentation. It indeed will finally give us the opportunity to present the model configurations including sample data inside Sencha Architect. We are looking forwards to Sencha Architect 3 and hope we will be able to provide greater ease of use and more elegant way of using Bancha models in Sencha Architect 3. 

Bancha Updates

In the meanwhile we have build a second Bancha 2 developer preview, updated your guide of how to use Bancha with Sencha Architect 2 and we have ported your Sencha Architect MVC example to Bancha 2.

Go back

Comments

Add a comment

Subscribe

Sign up for exclusive Bancha news!