cancel
Showing results for 
Search instead for 
Did you mean: 

Reset OData entity changes with Mobile Development Kit possible?

697

Hello everyone,

it is possible to reset changes of an OData OfflineStore Entity while working with the Mobile Development Kit?

For example, there is a OData OfflineStore Entity called "Order" and there are changes of this entity. Now the editor of the entity will reset the changes of the entity "Order" before synchronizing the OData OfflineStore. Is there a Mobile Development Kit OData Action type or API functionality to archieve this?

Maybe you can help me.

Thanks!

View Entire Topic
Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

thomasschilling

Do you want to undo the local changes done against "Order" entity?

If so, you can use Offline OData UndoPendingChanges action

0 Kudos

Hi Jitendra,

this is the proper Action I was searching for.

Is there also a functionality to retrieve all entities with pending changes?

For example there is a functionality which retrieves the following Offline OData entities with pending changes (UPDATE, CREATE, DELETE):

  • OrderSet('ID1')
  • OrderSet('ID2')
  • DefectSet('ID1')
  • CheckListItemSet('ID1')
  • CheckListItemSet('ID2')
  • CheckListItemSet('ID3')

With this list of entities I will process for each entity the Action UndoPendingChanges.

Thank you!