Results 1 to 1 of 1

Thread: [RESOLVED] Please fix JsonStore so it can C_UD through web services

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1

    Default [RESOLVED] Please fix JsonStore so it can C_UD through web services

    The JsonStore is unable to Create, Update or Destroy records in web service datasets. No examples provided anywhere, including the PHP example "write.js" actually work. PHP examples other than JsonStores or JsonWriter work so I know it is JsonStore and JsonWriter and not PHP or failing to run the web services through an actual web server.

    It will successfully Read remote data and it will C_UD if the data is hardcoded as data in a js file.

    Please remember I am referring to web service datasets, such as a web server that sends and receives Json.

    I debugged using Firebug before I posted it as a bug.

    I am running the writer.html from IIS 7 and Apache. No dice.

    Both the writer.html example and my own code generate the same error.

    I am submitting the create manually by use of the store.save() method.

    The error occurs in the JsonStore and not the JsonWriter.

    I have debugged the callback but it is never reached. Only the exception is reached, so the exception code must be cancelling the event bubble for the callback.

    I mention the following because they have been suggested as solutions, so I tried them and they didn't work:
    I have tried sending the ID field empty and with a value.
    I have tried using "id" and "ID" and "Id" and "iD" as the name of the field.
    I have tried it with and without using the idProperty=(tried all the above case spellings).
    I have tried it with and without a declared JsonReader and JsonWriter (all four combinations).

    POST:
    Code:
    {"priorities":{"ID":0,"Priority":7,"Ticket":"99999999","IncidentDes":"Incident Description"}}
    STATUS:
    Code:
    200 OK
    RESPONSE:
    Code:
    {success: true,message: "Insert successful","priorities": 
    [{"ID":99,"Priority":7,"Ticket":"99999999","IncidentDes":"Incident Description"}]}
    ERROR:
    Code:
    communication error
    Last edited by markjlyon; 19 Aug 2010 at 8:04 AM. Reason: RESOLVED

Similar Threads

  1. Restful Web Services - XMLReader
    By megaskins in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 1 Feb 2010, 11:45 AM
  2. Replies: 2
    Last Post: 29 Sep 2009, 10:41 PM
  3. Remote Web Services
    By Tereno in forum Ext GWT: Help & Discussion (1.x)
    Replies: 3
    Last Post: 17 Jul 2008, 1:35 PM
  4. ExtJS with RESTful Web Services
    By JoeK in forum Ext 2.x: Help & Discussion
    Replies: 9
    Last Post: 5 Dec 2007, 12:46 AM

Posting Permissions

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