on 04-07-2015 4:44 PM
Hi Guys,
I'm working on a gateway project which is receiving data as a deep structure for PUT request from UI.
I was able to perform PUT for flat structures in the gateway but for a deep structure the logic doesn't get triggered.
I went through some blogs and threads saying the Gateway doesn't have anything like UPDATE_DEEP.
What could be the best way way to handle this type of request. The data is a project systems structure coming in hierarchy format which can be nested upto 4 levels.
Any help from you guys will be much appreciated.
Regards,
Abhishek
I was able to find the solution using $batch as mentioned by Krishna.
Since there can be multiple PUT requests in the batch and I need to save them together I'm using the method CHANGESET_PROCESS to combine all the PUT requests and make a single database update.
To trigger CHANGESET_PROCESS I had to set the flag CV_DEFER_MODE in the method CHANGESET_BEGIN.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Using $batch and having parent and child update calls within a single changeset would be the right approach. There are several documents in SCN explaining how to do a $batch.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Abhishek,
Using Create_Deep_Entity is the way by modelling GW with Association and Navigation.
Its like Firing Update inside a Create. I feel its not right way.
But Still this would be an work around which can be used if you are left with no other option.
Regards,
Ashwin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.