Hi,
I need to "clear" the ResolveArray of TWEBClientDataSet.
I fill the dataset manually (via Append/post) from another TWEBClientDataSet and then I need to clear ResolveArray before the client start the editing.
After I use GetPendingUpdates for process server updates.
But the only method for clear Pending Updates is ApplyUpdates that need a Connection.
I don't have connections, I need only to "commitupdates", or Clear pending Updates array.
How I can solve??
Thanks
Hi,
The easiest way is probably close and load the dataset again.
No, sorry.
Close and open dataset loose data.
I need ONLY to clear the pending Updates array.
I need to use the dataset (let's say dataset02) simply as a memory table, which takes data from another filtered dataset (dataset01) and allow the user to perform CRUD.
At this point I already need to reset the changes array (GetPendingUpdates) because the records taken from dataset01 (append/post) are present in the GetPendingUpdates array but are in fact the initialization of dataset02 and must not be present in the array.
I then need the array of changes made after the crud in dataset02 (GetPendingUpdate) to get the array of updates to be send on the server. Then I need to Clear this array again, for further Crud operations.
At this moment it is not possible to clear except through Applyupdates, which however needs an active connection (and I do not need it, it is all in memory).
I need a method similar to "CommitUpdates" in vcl, which allows to reset the array of changes made without performing Applyupdate.
Only in this way is it possible to use TwebClientDataset as a pure in-memory table (without connection) to be used in a custom way.
Is there a way to reset the pending updates array?
Otherwise I am forced to go back to the original Unigui project (I am trying to port a web project from stateful to stateless, in practice, but I am stuck on the cached update of the TwebClientDataset)
Thanks
I agree clearing the pending updates would be better.
Therefore I have created a feature request.
Hi,
Yes, it's very important for my business logic.
Only with a "ClearPendingUpdates" I can use TwebClientDataset like a true memory dataset.
Thank you for help!
We added ClearPendingUpdates to TWebClientDataSet. It will be available in the next release.
Thank you.
Would that also be possible for TXDataWebDataSet?
Yes, we also added it for TXDataWebDataset. Available in next update.
That is great. Thank you!
Perfect!
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.