1. #1
    Sencha User
    Join Date
    Nov 2012
    Posts
    20
    Vote Rating
    1
    Rajesh2u is on a distinguished road

      0  

    Default Custom new Odata proxy Component for Architect

    Custom new Odata proxy Component for Architect


    Hi Experts,
    I have tried to create a new odata proxy component for Architect.
    But I am getting an error while importing this code.
    Can I know what is wrong with this one?

    Regards,
    Rajesh

  2. #2
    Sencha User
    Join Date
    Nov 2012
    Posts
    188
    Vote Rating
    16
    Gil Gordon will become famous soon enough

      1  

    Default I got OData.js working via JS resource and CreateAlias

    I got OData.js working via JS resource and CreateAlias


    I copied the OData.js file to my Architect project folder and then in Architect added OData.js to my project's Resources:
    Screen Shot 2013-04-01 at 4.47.19 PM.png

    I then created my Model, gave it RestProxy and set the createAlias config on it to odata:
    Screen Shot 2013-04-01 at 4.48.58 PM.png

    That was it.

    Were you doing something similar?
    Attached Images

  3. #3
    Sencha User
    Join Date
    Feb 2013
    Location
    Currently in USA
    Posts
    27
    Vote Rating
    0
    pawanchowdary is on a distinguished road

      0  

    Default


    Hi,

    I did the same thing as you mentioned.

    with this proxy, I'm getting this error in Sencha Architect
    Please make sure that the URL you set for your proxy is either local, or similar to the URL you set in your projects settings.
    If you plan to use a different domain, please use a JsonP proxy.

    Using OData.js and SA 3

    update: even it shows , it ran okay. thanks
    Pavan

    -Pavan

Thread Participants: 2