3 weeks ago
I want to update an order in OData V4 Model from a CAP Project.
The order has "array of string" ex : BO_DataTransferContent
var contextActBinding = oDataModel.bindContext('/RequestSet(' + dataObject.ID + ')', undefined, { $$updateGroupId: "$auto" });
Methord1
for (const [key, value] of Object.entries(dataObject)) {
contextActBinding.getBoundContext().setProperty(key, value);
}
error
Method 2
for (const [key, value] of Object.entries(dataObject)) {
if (typeof value === 'object') {
contextActBinding.getBoundContext().setProperty(key, JSON.stringify(value));
} else {
contextActBinding.getBoundContext().setProperty(key, value);
}
}
Any Solution?
Thanks in Advance
Hello santoshgowda,
Deserialization errors occur when the data does not match the type which is stated in OData service.
You may need to check following link, if you are using SQLite its being mapped to LargeString columns.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
9 | |
8 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.