RTC Forums

Subscription => Support => Topic started by: Max Terentiev on September 13, 2016, 04:04:07 PM



Title: TRtcMemDataset problems
Post by: Max Terentiev on September 13, 2016, 04:04:07 PM
Hi,

I notice some problems with TRtcMemDataSet:

1. First() method not working (not move table cursor to first record)
2. DevExpress's DBTreeList.SyncMode not working with TRtcMemDataSet (changing node in TreeList not change cursor position in TRtcMemDataSet). But it's working with any other DataSets including TRtcClientDataset.

I fill data to TRtcMemDataSet (GroupsTbl) this way:

void __fastcall TListManagerFrm::GetGroupsReturn(TRtcConnection *Sender, TRtcValue *Data,
     TRtcValue *Result)
{
if(Result->isType==rtc_DataSet)
   {
   ClientDM->GroupsTbl->Close();
   ClientDM->GroupsTbl->asObject=Result->asDataSet;
   Result->Extract();
   ClientDM->GroupsTbl->Open();
   }
}
//---------------------------------------------------------------------------

Received data showed in DB controls with no problems.
But if I call GroupsTbl->First() - it's not move table cursor to first record, it's just does nothing.


Title: Re: TRtcMemDataset problems
Post by: Max Terentiev on September 13, 2016, 04:33:12 PM
Update: problem happens only if TRtcMemDataSet used with DevExpress TcxDBTreeList. With TDBGrid all works fine including First() method.

But it's probably bug anyway because TcxDBTreeList works fine with any another DataSets including TRtcClientDataset !


Title: Re: TRtcMemDataset problems
Post by: D.Tkalcec (RTC) on September 13, 2016, 06:43:41 PM
TRtcMemDataSet component is outdated and kept ONLY for legacy reasons (OLD Projects which have to be compile with FreePascal). If you are using Delphi to compile your Projects, please switch to the TRtcClientDataSet component, which extends the TClientDataSet component from Delphi with a TRtcDataSetMonitor component from RTC.

Best Regards,
Danijel Tkalcec


Title: Re: TRtcMemDataset problems
Post by: Max Terentiev on September 14, 2016, 10:53:38 AM
Understand, thanks.