on 07-23-2016 6:36 AM
Hi,
Whenever I am calling oModel.update, get_entity method is getting called twice before the update entity,
Syntax:
oModel.update("/EntitySet('" + ID + "')", aData, null);
Why is this behaviour?
Thanks and Regards,
Gopa.
The two times calling of get methods is the optimization technique followed by NetWeaver Gateway.
In the first call the $count query option is appended to OData call to determine whether any suitable record exists for the URL formed.
If the count is more than 0, then the subsequent call is made to fetch the actual data.
BR.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
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.