Results 1 to 3 of 3

Thread: Broken Design View for Custom Formatter

    You found a bug! We've classified it as DSGNR-7963 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha User
    Join Date
    Feb 2008
    Location
    Germany
    Posts
    4

    Default Broken Design View for Custom Formatter

    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:

    Code:
    Ext.define('Flex.override.util.Format', {
    
        override: 'Ext.util.Format',
    
        constructor: function(){
            return this.callParent(arguments);  
        },
    
        i18n: function(key){
            return(Flex.i18n(key));
        }
    });
    Now I can use it like this on any bindable of a component:

    Code:
      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?

  2. #2
    Sencha User
    Join Date
    Jun 2016
    Posts
    12

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

  3. #3
    Sencha User
    Join Date
    Sep 2014
    Location
    Central Europe
    Posts
    795

    Default

    Hi, I have sent you PM with possible workaround. Unfortunately SA doesn't support this.

Similar Threads

  1. Replies: 4
    Last Post: 20 Feb 2018, 12:52 AM
  2. [INFOREQ] design view broken often on 3.0.1.1355
    By pkellner in forum Sencha Architect 3.x: Bugs
    Replies: 2
    Last Post: 16 Dec 2013, 8:07 AM
  3. [CLOSED] Architect Design View Blank after adding custom property
    By eyepoker in forum Sencha Architect 2.x: Bugs
    Replies: 1
    Last Post: 19 Sep 2013, 5:47 AM
  4. Rendering custom components in design view
    By bseddon in forum Sencha Architect 2.x: Help & Discussions
    Replies: 0
    Last Post: 3 May 2013, 1:04 PM
  5. Are custom CSS Button icons supposed to show up in SA Design view?
    By rbraddy in forum Sencha Architect 2.x: Help & Discussions
    Replies: 10
    Last Post: 17 Aug 2012, 9:13 AM

Tags for this Thread

Posting Permissions

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