Jump to content
Stano

FDTable: EFDException with message '[FireDAC][Stan][Eval]-117. Empty expression'

Recommended Posts

          
Suddenly, everywhere I have FDTAble at MyTable.Open throws me the given error. No change in the code.
I have D professional, so I don't have the source.
At design time the table can be activated.
The only thing I have done is an update:

  • EurekaLog to EurekaLog_7.12.0.4_Professional_for_RAD_Studio - hotfix
  • CnPack 31.12.2023

Share this post


Link to post

The error is in this code:

  //  MyTable.Filter is empty
  MyTable.Filtered := True;
  MyTable.Open;

From another discussion:
Probably during the upgrade they decided that enabling the filter without a defined filter expression is nonsense. And it is.

 

I fully agree with that. I have already figured it out. I found no mention of such behaviour.
The problem was that I didn't know what the Empty exptession referred to!

Share this post


Link to post

That's why I write

MyTable.Filtered := not Mytable.Filter.isEmpty;

 

Share this post


Link to post
50 minutes ago, Serge_G said:

That's why I write


MyTable.Filtered := not Mytable.Filter.isEmpty;

 

I will add this to my solution!

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×