StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Incremental Search in the BrowseDialogExpand / Collapse
Author
Message
Posted 08/29/2006 9:12:03 PM


Advanced StrataFrame User

Advanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame User

Group: StrataFrame Users
Last Login: Yesterday @ 9:57:58 PM
Posts: 658, Visits: 27,148
Our old VFP Framework's search class worked so that when the user entered text in the search field, the results display would constantly update with the closest match. I would like to either add this capability to the SF default BrowseDialog by creating my own and inheriting your class or replace the existing behavior. I dont want to have problems down the road when you publish updates though. Can you point me in the right direction?

I am also quite interested how this works out from a performance standpoint, I remember once the person that taught me VFP -back in the day- showed me this function searching a table with over a million rows and it was instant.
Post #2545
Posted 08/31/2006 12:53:24 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 12/02/2008 4:42:46 PM
Posts: 2,686, Visits: 1,890
Yes, an incremental search in FoxPro was quite easy to develop, but with SQL Server, it's a bit more difficult because you're not working with directly connected data.  In fact, our browse functionality that is included with our current FoxPro medical software version includes incremental search functionality. 

If you want to include incremental search functionality to the BrowseDialog, you'll most likely have to do so by using the soure code file for the BrowseDialog and modifying it... there's not really any way to extend it and provide that functionality.  The reason being is that each type you type a character, you need to query the database for the proper data... and you'll end up with the functionality similar to an "auto-complete" textbox where as you type, it searches for possible options to complete for you.  You would also need to make these database queries asynchronous since you cannot pause the UI in between each keypress to retrieve the next set of records.  And when you get into asynchronous processing, you'll need to make sure you synchronize your thread through an ISynchronizeInvoke object on the main thread (usually the BrowseDialogForm itself).  Those topics are way more advanced than I have time to get into on the forum, but MSDN's documentation has lots of info on it if you search for "async calls" and "ISynchronizeInvoke".

Have fun with that


www.bungie.net
Post #2577
Posted 08/31/2006 12:11:53 PM


Advanced StrataFrame User

Advanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame User

Group: StrataFrame Users
Last Login: Yesterday @ 9:57:58 PM
Posts: 658, Visits: 27,148
LOL ok thanks.
Post #2595
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 2:41am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.109. 11 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.