You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 11, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 11, 2023. It is now read-only.
I've a view where there is a form (category entity) and a list with inline edition (service entity). In my model, I define that Category has a collection of Service and also Service has a navigation property to Category. What I'm trying is to add the new category with its collection of service. The odata config is set with enableDeepSave = false and withReferenceMethods = true.
If I create a new category with one service, the batch request looks like this:
You can see one post for each entity and the last one would be the association between the two entities, but its body is empty. Debugging the oDataProvider.js, it seems that with a collection it cannot set the @odata.id property. Is there a way to solve this?
I think the fix is quite simple: in oDataProvider.js, line 742, value is an array, inside are the items with __convertedRefence, adding something like and a little refactoring would do the trick:
if(Array.isArray(value)){ for(var i = 0; i < value.length; i++){ // same process as line 746 } }
Activity
darianferrer commentedon Jun 17, 2017
I think the fix is quite simple: in oDataProvider.js, line 742, value is an array, inside are the items with __convertedRefence, adding something like and a little refactoring would do the trick:
if(Array.isArray(value)){ for(var i = 0; i < value.length; i++){ // same process as line 746 } }