Print Page | Close Window

CXTPReportRecord IsFiltered not being cal

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=1031
Printed Date: 06 November 2025 at 9:00am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPReportRecord IsFiltered not being cal
Posted By: Italo
Subject: CXTPReportRecord IsFiltered not being cal
Date Posted: 06 August 2004 at 2:06pm

IsFiltered is only called if the report control has a filter string. This causes a problem when you’re trying to write a program that uses custom filters. I would like for IsFiltered to be called regardless if the report control has a filter string. I know that I could just set the filter string to a bogus value, but I don’t want the expense of checking all rows.

 

 

The existing code in CXTPReportControl::ApplyFilter is:

 

      // not filtered if filter text is empty

      if (!pRecord || strFilterText.IsEmpty())

             return FALSE;

 

      if (pRecord->IsFiltered())

             return TRUE;

 

 

Can this be changed to?

 

      if (!pRecord ) return FALSE;

 

      if (pRecord->IsFiltered())

             return TRUE;

 

      if( strFilterText.IsEmpty() ) return FALSE;

 

Thanks, Italo




Replies:
Posted By: Oleg
Date Posted: 10 August 2004 at 2:45am
Fixed. Thank you.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net