View Full Version : [OPEN] Broken Design View for Custom Formatter

19 Jun 2017, 5:22 AM
The Rendering of the design view seems to miss custom code extensions that work fine in the built project. This results in an empty design view in Architect.

To implement a generic way to handle internationalization, I've created a custom formatter so I can use it as 'bind' in Architect / the ExtJs Code:

Ext.define('Flex.override.util.Format', {

override: 'Ext.util.Format',

constructor: function(){
return this.callParent(arguments);

i18n: function(key){

Now I can use it like this on any bindable of a component:

bind: {
text: "{'myTextKey':i18n}"

which works fine for the saved / built project. Only Problem is, it seems to destroy the Design view (white page). In Architect, the Log shows the following error:

Design View Framework Error: Compile Error! Invalid format specified "i18n" (at index 43)

Is there any way to make Architect aware of the overridden Formatter to get rid of this?

28 Jun 2017, 2:35 AM
Thanks for the report! I have opened a bug in our bug tracker.

28 Jun 2017, 6:27 AM
Hi, I have sent you PM with possible workaround. Unfortunately SA doesn't support this.