TXDataWebDataSet.GetPendingUpdates not found

Before ApplyUpdates i want to test if there are any changes to apply and GetPendingUpdates is not a class member of TXDataWebDataSet. How to solve and use it ?

GetPendingUpdates is available in TXDataWebDataset. You can use it.

In last version ? i've webcore 1.8.2 and TXData 4.17 installed ...

You have an old TMS XData version, but that method is actually provide by Web Core. Yes, it should be. Well, to start with, have you tried? What compilation error do you get, exactly?

image

Did you try to compile it?

Can you tell me how use it please ? its return a boolean value ? then i will try to compile ...

You can use something like this:

var
  Info: TResolveInfoArray;
begin
  Info := XDataWebDataSet1.GetPendingUpdates;
  if Length(Info) > 0 then
    XDataWebDataset1.ApplyUpdates;

Hi Wagner,

I Have XData v5.19.0.3 installed. However I cannot find the GetPendingUpdates procedure in TXDataWebDataSet (XData.Web.DataSet) Only in TWebClientDataSet (WEBLib.cds)

Kind regards.

Hi @Tobias_Kluver, welcome to TMS Support Center.

This error happens only at design-time, in the IDE. But you can still compile and run your Web Core application normally.

We will fix this problem in the error insight for the next version, regardless.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.