I have a problem save data to my database using an ExtJS updateable grid. I'm working with a REST API that I have written in Progress ABL. The API is working but the Input JSON and Output JSON is very specific.
I can read the JSON data into my grid and display it, but when I want to save a new record the grid creates a wrong JSON output.
My output has to be like this:
{
"request":
{
"dsUsers":
{
"ttUsers":
[{"ID":20,"LOGIN":"test","PASS":"","ID_ADDR":0,"ID_CUST":0}]
}
}
}
But I'm not able to create the request and dsUsers groups in the writer. I have tested a lot but I don't really know what I have to change to make it work.
Thanks