Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext User jvolt's Avatar
    Join Date
    Jan 2008
    Posts
    44
    Vote Rating
    0
    jvolt is on a distinguished road

      0  

    Default [FIXED] Please fix the api between quotes =/

    [FIXED] Please fix the api between quotes =/


    Weel, it was working very well before that last updates....

    My form api properties get quotes when I export my projects.

    Let me explain as that happen:

    Open the project (it says direct loaded...), do something, then export. The result is: ALL api properties getting quotes because its not recognized as objects, but as strings... Something so..


    If and just if I clean the api property, save, export and then type all again. That back to work. Save correctly.


    Looks like if the designer check the direct objects when I type that in property, but don't when I open the project.


    I am very upset about it, I'm typing a lot every day in the morning

  2. #2
    Sencha User j-joey's Avatar
    Join Date
    Apr 2008
    Location
    Mersin, Turkey
    Posts
    186
    Vote Rating
    0
    j-joey is on a distinguished road

      0  

    Default


    are you using single quotes in your api property?

    i encountered same problem in baseParams config of jsonstores when i use single quote. when i change singles to double quotes designer generates correct code.

  3. #3
    Ext User jvolt's Avatar
    Join Date
    Jan 2008
    Posts
    44
    Vote Rating
    0
    jvolt is on a distinguished road

      0  

    Default Im not using quotes

    Im not using quotes


    I'm not using quotes, the Ext Designer put the quotes automatically.

    i.e:
    I type:
    {
    load: Text.getText,
    submit: Text.setText
    }

    When i reopen the Ext Designer and export my project it saves:
    '{
    load: Text.getText,
    submit: Text.setText
    }'


    It was an old bug and got back some days ago =(

  4. #4
    Sencha - Desktop Packager Dev Team jarrednicholls's Avatar
    Join Date
    Mar 2007
    Location
    Frederick, MD
    Posts
    1,747
    Vote Rating
    7
    jarrednicholls will become famous soon enough jarrednicholls will become famous soon enough

      0  

    Default


    Since the Ext.Direct API loads in a deferred manner, a bug was introduced into the object config restoration routine which fixed a problem with restoring object configs after Duplicating a component. The bug has been fixed for our next release.

  5. #5
    Sencha User
    Join Date
    Mar 2010
    Posts
    41
    Vote Rating
    2
    heratech is on a distinguished road

      0  

    Default


    Hello,
    This is still happening for me on xds-1.0.2.14 on Ubuntu 10.10 x64. Everything is fine until i save, quit and load the project. Then it puts it into a string (api : '{ blah }' instead of just api: { blah }). I have to go to each form and type a character, let it save the change, then remove the character and it puts it back to being a proper object.
    Any date on a fix? As the original poster said its alot of work to go through each form and fix every time you load the project. If its not soon, how can I set api in the .js file that we make changes in?
    Thanks

  6. #6
    Ext JS Premium Member
    Join Date
    Oct 2009
    Location
    Hamilton ON Canada
    Posts
    25
    Vote Rating
    0
    fargs is on a distinguished road

      0  

    Default


    This is happening to me as well. It wasn't too bad when I had only a few forms but I add more it is becoming more annoying. A fix would be appreciated.

    Thanks,

  7. #7
    Sencha - Desktop Packager Dev Team jarrednicholls's Avatar
    Join Date
    Mar 2007
    Location
    Frederick, MD
    Posts
    1,747
    Vote Rating
    7
    jarrednicholls will become famous soon enough jarrednicholls will become famous soon enough

      0  

    Default


    Should be good in 1.0.3.

  8. #8
    Touch Premium Member
    Join Date
    Jun 2008
    Location
    Germany, Dortmund
    Posts
    249
    Vote Rating
    13
    hschaefer123 will become famous soon enough

      0  

    Default


    Hi Jarred,
    the bug is still there in 1.0.3.2

    An API like

    {
    create : Text.find,
    read : Text.getText,
    update : Text.getText,
    destroy : Text.getText
    }

    still works, but in my case the used method names are in CamelCase like

    {
    create : ProductGroupBean.find,
    read : ProductGroupBean.getText,
    update : ProductGroupBean.getText,
    destroy : ProductGroupBean.getText
    }

    Any chance to get a quick fix?

    Best wishes,
    Holger

Similar Threads

  1. [FIXED-672] DirectProxy Issue and Fix
    By timothy in forum Ext 3.x: Bugs
    Replies: 4
    Last Post: 4 Mar 2010, 9:37 AM
  2. Config Objects. Quotes or no Quotes
    By BlackBerry in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 16 Nov 2009, 1:28 PM
  3. Replies: 5
    Last Post: 5 Aug 2009, 7:46 PM
  4. Replies: 1
    Last Post: 9 Jul 2009, 7:31 AM
  5. Replies: 6
    Last Post: 20 May 2009, 10:31 AM

Thread Participants: 5