Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - [SOLVED] Search or Filter
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[SOLVED] Search or Filter

 Post Reply Post Reply
Author
Message
JamGodz View Drop Down
Groupie
Groupie
Avatar

Joined: 25 February 2010
Status: Offline
Points: 67
Post Options Post Options   Thanks (0) Thanks(0)   Quote JamGodz Quote  Post ReplyReply Direct Link To This Post Topic: [SOLVED] Search or Filter
    Posted: 19 November 2011 at 6:40am
Hi everyone!

Please refer below highlighted in red.
Does anybody know:

1. How to add the control.
2. How to search/filter and display only the filtered value type by the user.

Any suggestion please..

Thank you.



Back to Top
Xander75 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 April 2007
Status: Offline
Points: 353
Post Options Post Options   Thanks (0) Thanks(0)   Quote Xander75 Quote  Post ReplyReply Direct Link To This Post Posted: 21 November 2011 at 2:44am
JamGodz,

1. The Filter is a FlatEdit & PushButton, which are associated using the Buddy Control. Why do I know this you ask? Simply the screenshot you're displaying is from one of my applications, which is found in jpbro's [BUGS] RC Search Highlight Demo w/ Metrics.Text post.

2. As for how to filter, simply go to http://forum.codejock.com/forum_posts.asp?TID=17718 where you found this screenshot and download jpbro's demo and replace the code in the BeforeDrawRow event with the code I posted in that post further down the page.

PS. Just to let you know, the Filter will only work with one level as I found out after playing about with the demo that it doesn't filter correctly in a tree structure as can be seen in http://forum.codejock.com/forum_posts.asp?TID=18769
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)
Back to Top
lyu View Drop Down
Newbie
Newbie
Avatar

Joined: 24 October 2011
Location: Bucuresti
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote lyu Quote  Post ReplyReply Direct Link To This Post Posted: 21 November 2011 at 3:53am
Hi

put the code in Method "Change" (filter: = 10) , this is a code from Visual Fox Pro please adapt to visual basic

For Each xtremeColumn In ThisForm.wndReportControl.Columns
        xtremeColumn.Filtrable = .T.
Next xtremeColumn
With ThisForm.wndReportControl
        .FilterText = AllTrim(ThisForm.txtSearch.Text)
        .Populate
        .Recalc(.T.)
EndWith

Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 21 November 2011 at 11:46am
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....
Back to Top
JamGodz View Drop Down
Groupie
Groupie
Avatar

Joined: 25 February 2010
Status: Offline
Points: 67
Post Options Post Options   Thanks (0) Thanks(0)   Quote JamGodz Quote  Post ReplyReply Direct Link To This Post Posted: 22 November 2011 at 4:54am
thank you so much everyone.... Thumbs Up
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.230 seconds.