Query dataContext/dataManger for uncommitted data

How can I query records which have not been committed to database using dataContext / dataManager or any other construct?

Hello @getshahzad,

You can use dataContext to track changed entities.

For example:

dataContext.getModified(); //Returns an immutable set of entities registered as modified.
dataContext.getRemoved(); //Returns an immutable set of entities registered for removal.

Regards,
Nikita

Thanks for the reply @shchienko

I am aware of these methods, in fact I have a large screen with many tabs and interdependent entities and sometimes users can update dependent entities, plan was to get list unsaved entities. Now I know, I will have to do with these methods, I will write logic around them or force user to save dependent entities first.