TCRDBGrid filter bar <>* not running.
TCRDBGrid filter bar <>* not running.
Hi,
I am using 8.1.4 for RAD Studio XE2.
TCRDBGrid filter bar * not running. Please help.
Thanks.
I am using 8.1.4 for RAD Studio XE2.
TCRDBGrid filter bar * not running. Please help.
Thanks.
Running version 6.10 with Delphi 7 without any problem.
But this version with XE2 not running.
I need your help.
Similar problem :
http://www.devart.com/forums/viewtopic.php?t=19564
But this version with XE2 not running.
I need your help.
Similar problem :
http://www.devart.com/forums/viewtopic.php?t=19564
I have a project.
Written delphi7 using odac version 6.10.
Users can use TCRDBGrid Filter Bar '*' for get empty records.
I want to migrate this project from Delphi 7 to Delphi XE2.
Using latest odac vesion 8.1.4
TCRDBGrid Filter Bar '*' not running.
Users use '*' for get empty records.
How to get empty records?
Written delphi7 using odac version 6.10.
Users can use TCRDBGrid Filter Bar '*' for get empty records.
I want to migrate this project from Delphi 7 to Delphi XE2.
Using latest odac vesion 8.1.4
TCRDBGrid Filter Bar '*' not running.
Users use '*' for get empty records.
How to get empty records?
Hello,
We have fixed the bug with the Null values filtering in CRDBGrid, this fix will be included in the next version of the product. At present, you can fix the CRDBGrid.pas module by yourself, changing the following
change
to
We have fixed the bug with the Null values filtering in CRDBGrid, this fix will be included in the next version of the product. At present, you can fix the CRDBGrid.pas module by yourself, changing the following
change
Code: Select all
else
Result := Field.FieldName + Sign + AnsiQuotedStr(ConstStr, '''');Code: Select all
else
if (Trim(ConstStr) = '''''') or (Trim(ConstStr) = '""') then
Result := Field.FieldName + Sign + 'null or ' + Field.FieldName + Sign + ''''''
else
Result := Field.FieldName + Sign + AnsiQuotedStr(ConstStr, '''');Hello,
Thank you for the information. For correct filter on multiple fields, in the code I brought you, replace the string
and in this same method before the string
add string
After this, for searching empty and Null strings, you should type =[]''. For searching Null values in the fields of other types (not String), type =[]Null
Thank you for the information. For correct filter on multiple fields, in the code I brought you, replace the string
Code: Select all
Result := Field.FieldName + Sign + 'null or ' + Field.FieldName + Sign + ''''''
to
Result := '(' + Field.FieldName + Sign + 'null or ' + Field.FieldName + Sign + ''''')'Code: Select all
case Field.DataType ofCode: Select all
if (UpperCase(Trim(ConstStr)) 'NULL') or (Field.DataType in [ftString,ftWideString]) then