Hybrid View

  1. #1
    Sencha Premium Member
    Join Date
    Oct 2011
    Location
    Duluth, MN
    Posts
    126
    Vote Rating
    4
    badgerb1 is on a distinguished road

      0  

    Default Ext Direct Proxy API configuration does not remain an object

    Ext Direct Proxy API configuration does not remain an object


    Hi guys,

    If I define an Ext Direct Proxy with an api configuration without defining the API location in the project setup, the api configuration for the proxy winds up as a string. This also happens if the API cannot be found when you launch the designer. This happens to me all the time because my tomcat isn't always running when I launch the Designer.

    To recreate.

    Add a direct proxy without setting an Ext Direct URL in the project settings.
    Attempt to put in a valid api object.
    Result is a string instead of an object.

    Add a Ext Direct URL to the project settings.
    Return to the proxy and re enter the correct api object.
    Result is an object as is appropriate.

    Exit designer and turn off your Ext Direct API service.
    Re open the designer.
    It will pop up with an error in the project settings for the Ext Direct URL.
    If you cancel out of the settings box, and return to your proxy you will see that the api has again be converted to a string instead of an object.

    To resolve the above in case anyone else gets to here, do the following:
    Restart your API service (or reconnect to it if you've lost connection somehow)
    Open the project settings (you'll notice that the API url isn't showing an error outline anymore)
    Save the project settings.
    copy the api config value.
    Delete the api config value.
    past the api config value back in.
    It should now be an object again.

    Thanks
    Bob

  2. #2
    Sencha User
    Join Date
    Jun 2011
    Posts
    350
    Vote Rating
    1
    bharatn is on a distinguished road

      0  

    Default


    Hi Bob,

    This issue has been fixed and should be available in your next update. So the change is whatever you specify in directFn would be written as raw value (no string). Also direct api url is not mandatory anymore.

    Thanks
    Bharat Nagwani
    Sencha Designer Development Team

  3. #3
    Sencha User
    Join Date
    Jan 2012
    Posts
    6
    Vote Rating
    0
    datosula is on a distinguished road

      0  

    Question DitectProxy api object turned into string

    DitectProxy api object turned into string


    Hi All,

    I have sencha designer 2.0.0 build 311. When I try to put api object in DirectStore's api field it is turned into string not an literal object. I have pointed directapi url in the project settings. If I try to point directFn value, drop down list shows me direct api actions. In addition I've tried to put actions in single quotes and it is turned into literal object. So, what I'm doing wrong? From this thread I see that if you have pointed direct api url in the settings you should be able to point ditectproxy api object.

    I trying to put this in designer
    {
    create:lookupsController.insertCountries,
    read:lookupsController.loadCountries,
    update:lookupsController.updateCountries,
    destroy:lookupsController.deleteCountries
    }

    Please help....

    Thanks in advance.

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