Jump to content

Problem ordering records in a TFDMemTable


ElCherchu

Recommended Posts

Hello

In my application I load data into a TFDMemTable table and if I try to put an order at runtime, using this code 

with TblMemDe.Indexes.Add do begin
    Name := 'by_origen';
    Fields := 'ID_ORIGEN;GRUPO;CONCEPTO';
    Active := True;
  end;
  TblMemDe.IndexName := 'by_origen';

Some records already loaded previously are remove, the strange thing is that if I put the index to the table in design time when I try to insert the records it does not load it. I have tried in several ways but it does not work for me, I have also tried: 

TblMemDe.IndexFieldNames := 'ID_ORIGEN;GRUPO;CONCEPTO';

But it doesn't work either.

Could anyone give me a hand with this case?

I use Delphi 10.2
Unigui: 1.90.0.1530

Thanks a lot.

Link to comment
Share on other sites

36 minutes ago, Efrenis said:

Hi,

I think that is related to Unigui because using native delphi the code I posted before work, and just in Unigui doesn't work.

I use the same component TFDMenTable in both cases..

Thank.

Hello

Are you using professional version? Can you try with latest unigui version?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...