on 03-09-2016 1:31 PM
Hi Guys
We are currently developing an application for offline OData using the Kapsel plugins. We have a list of items beeing updated by the user and would like to display an error indicator next to each item, to show if an edit request against the specific item has failed. E.g.:
Item 1 Error: No
Item 2 Error: Yes
Item 3 Error: No
I know it is possible to add a custom tag to each request. Here we could add the item ID to later be able to query the ErrorArchive to check for errors for each item.
During my invetigation i have also come across the naigation property AffectedEntity in the ErrorArchive. Acording to the documentation this navigation property should point to the entity that had the error (in this case i would expect the Item). But when i try to expand the property using "/ErrorArchive?$expand=AffectedEntity" i get an error saying that an entity in the error archive cannot be acessed using this url.
Does anyone have experience with this?
Best regards,
Olav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Kenichi Unnai posted the following answer to a comment i made on
Thanks for pointing out. It is a new feature of SDK SP11.
You can use it to access entities that are in an error state due to a particular failed request, you can only access them through a specific error archive entity.
So /ErrorArchive?$expand=AffectedEntity will throw an error
But /ErrorArchive(1)/AffectedEntity should work fine.
As this remark is not documented, there will be some update on the help doc soon.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.