RTC Forums
November 23, 2024, 11:52:31 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: TRtcMemDataset problems  (Read 5103 times)
Max Terentiev
RTC License
***
Posts: 49


« 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.
Logged
Max Terentiev
RTC License
***
Posts: 49


« Reply #1 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 !
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #2 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
Logged
Max Terentiev
RTC License
***
Posts: 49


« Reply #3 on: September 14, 2016, 10:53:38 AM »

Understand, thanks.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.025 seconds with 17 queries.