Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Ext JS Premium Member
    Join Date
    Jun 2010
    Posts
    18
    Vote Rating
    2
    nickelstar5 is on a distinguished road

      0  

    Default Configuration Objects Converted to String

    Configuration Objects Converted to String


    When adding configuration objects like Ext.window.Window.loader, the object is converted to a string. I was expecting it to be left as an object. In any case, the configuration does not work... either is ignored upon load or creates errors.

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,182
    Vote Rating
    119
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    If there is a syntax error in your object definition, we will do this to protect you. We need to add in some better warning message to notify users what is going on.

    Are there any extra commas and/or variables/function calls that Architect cannot resolve?
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  3. #3
    Ext JS Premium Member
    Join Date
    Jun 2010
    Posts
    18
    Vote Rating
    2
    nickelstar5 is on a distinguished road

      0  

    Default


    I don't think it's a formatting issue. To show a simplified example, I've attached 2 screenshots showing a loader config object that gets converted to a string. I should note that I tried wrapping the object in curly brackets as well but that too was converted. The pic on the left is the class definition with the object converted to a string. The right one is the editor for the config object.

    class_listing.PNGin_editing_mode.PNG

  4. #4
    Ext JS Premium Member
    Join Date
    Jun 2010
    Posts
    18
    Vote Rating
    2
    nickelstar5 is on a distinguished road

      0  

    Default


    It looks like the object's property names must be wrapped in quotes. That's okay but isn't the way Architect or myself write them in our own code. Easy enough to do now that I've figured that out. However, there's still a problem if you want to assign a variable to a property like this:

    {'productNumber': myProductNumberVar }

    This gets converted to string even though it's a valid Javascript object.

  5. #5
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,182
    Vote Rating
    119
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    That's correct. It does not support variables/functions/JS expressions at this time.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  6. #6
    Ext JS Premium Member
    Join Date
    Jun 2010
    Posts
    18
    Vote Rating
    2
    nickelstar5 is on a distinguished road

      0  

    Default


    Fair enough. Also, I did find at least one object editor that accepts property names without quotes: the 'editor' parameter on Grid columns. So it looks like the object editors are applying inconsistent formatting rules. Not a big deal but something to be aware of.

  7. #7
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,182
    Vote Rating
    119
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Quoted on the lefthand side is not a requirement unless its something like "320x460"
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  8. #8
    Ext JS Premium Member smcguire36's Avatar
    Join Date
    Sep 2007
    Location
    Manchester, Connecticut, USA
    Posts
    99
    Vote Rating
    0
    smcguire36 is on a distinguished road

      0  

    Default


    Definitely need to have a warning message letting the user know about these restrictions when it converts it to a string with perhaps an option to disable the warning. This took my colleague and I several hours of trial and error and then searching here to figure out why our JSON object was always converted to a string. Also, definitely need the ability to handle varialbles, functions and JS expressions.

    Stewart McGuire
    Ext JS 2.x, 3.x, 4.x - Advanced User / Sencha Architect 3 - User

  9. #9
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,182
    Vote Rating
    119
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Look for coming improvements in Architect 2.2.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  10. #10
    Ext JS Premium Member smcguire36's Avatar
    Join Date
    Sep 2007
    Location
    Manchester, Connecticut, USA
    Posts
    99
    Vote Rating
    0
    smcguire36 is on a distinguished road

      0  

    Default


    Sweet!

    Stewart McGuire
    Ext JS 2.x, 3.x, 4.x - Advanced User / Sencha Architect 3 - User

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi