Print Page | Close Window

FilterText in v15.1.2

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=18769
Printed Date: 15 May 2024 at 4:20am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: FilterText in v15.1.2
Posted By: Xander75
Subject: FilterText in v15.1.2
Date Posted: 03 August 2011 at 11:59am
Hi,

I think I have found another bug, this time with the FilterText property in v15.1.2 this worked in v15.1.1.

Too late in the day as I am about to leave the office, but using the following code add a ReportControl, CommandButton and TextBox to a form and run the application. It doesn't appear to filter anymore. On another application it does filter, but when it does it's not finding results when it should! I search for "100" where I have Partcodes that begin A1000... and it can't find them!

Private Sub cmdFilter_Click()
    With ReportControl
        .FilterText = Trim$(txtFilter.Text)
        .Populate
        .Redraw
    End With
End Sub

Private Sub Form_Load()
    With ReportControl
        Dim Column As ReportColumn, Record As ReportRecord
       
        .Columns.Add 0, "ID", 100, False
        .Columns.Add 1, "Col 1", 100, False
        .Columns.Add 2, "Col 2", 100, False
        .Columns.Add 3, "Col 3", 100, False
        .Columns.Add 4, "Col 4", 100, False

        For i = 0 To 100
           
            Set Record = .Records.Add
            With Record
                .AddItem i
                .AddItem "1000"
                .AddItem "2000"
                .AddItem "3000"
                .AddItem "4000"
                .AddItem "5000"
            End With
           
        Next
       
        .Populate
    End With
End Sub




-------------
Product: Xtreme SuitePro (ActiveX) v15.3.1
Platform: Windows 7 64-bit (SP1) Professional Edition
Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6)



Replies:
Posted By: ABuenger
Date Posted: 03 August 2011 at 3:06pm
Hi,

nothing has changed here between 15.1.1 and 15.1.2.
Also the filter does work for me in the sample.

Andre



-------------
Codejock support


Posted By: Xander75
Date Posted: 04 August 2011 at 3:21am
Hi Andre,

Something starnge is happening for me as the above code doesn't filter at all for me!

I have uninstalled v15.1.2 and I am currently downloading it again before reinstalling.


-------------
Product: Xtreme SuitePro (ActiveX) v15.3.1
Platform: Windows 7 64-bit (SP1) Professional Edition
Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6)


Posted By: Xander75
Date Posted: 04 August 2011 at 3:54am
Andre,

I have reinstalled and the above sample code now filters ok.

However there does seem to be an issue when using this in a ReportControl with a TreeColumn and 3 levels. If the TreeColumn structure has 1 or 2 levels then the FilterText works as expected. Therefore there seems to be a bug with the FilterText when using a TreeColumn of 3 or more levels.




-------------
Product: Xtreme SuitePro (ActiveX) v15.3.1
Platform: Windows 7 64-bit (SP1) Professional Edition
Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6)


Posted By: Xander75
Date Posted: 04 August 2011 at 4:07am
Andre,

If you have a look at the following forum post: forum_posts.asp?TID=17718&title=bugs-rc-search-highlight-demo-w-metricstext - http://forum.codejock.com/forum_posts.asp?TID=17718&title=bugs-rc-search-highlight-demo-w-metricstext you will see that it was working for 2 levels from the screenshots I posted.

I have put the code back to using 2 levels and it works, therefore it's definitely a bug with 3 or more levels.

-------------
Product: Xtreme SuitePro (ActiveX) v15.3.1
Platform: Windows 7 64-bit (SP1) Professional Edition
Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6)


Posted By: Willowmaster
Date Posted: 04 August 2011 at 4:16am
It will not find a match at the first level and therefore will not show matches with child records?

-------------
Product: Xtreme SuitePro (ActiveX) version 15.3.1

Platform: Windows XP (32bit) - SP 3 (on VMWare)

Language: Visual Basic 6.0





Posted By: Xander75
Date Posted: 04 August 2011 at 4:20am
Awww damn it!!!

You're right Willowmaster, looks like the way in which I use the Filter won't work for me in this project Disapprove


-------------
Product: Xtreme SuitePro (ActiveX) v15.3.1
Platform: Windows 7 64-bit (SP1) Professional Edition
Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6)



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