Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Thursday, June 19, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Architect Forums - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: QueryJumpToTypeAhead
Mark Richardson
Posts: 25
 
QueryJumpToTypeAheadYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 14 Dec 06 10:33 AM
fiogf49gjkf0d
Hi,

In legacy basic I asm used to using 'QueryJumpToTypeAhead' on a TextBox Change Event to dynamically jump to a record in a DataGrid.

Can anybody please tell me how this is done in 6.2.4 VB please ?

Cheers, Mark
[Reply][Quote]
Mark Richardson
Posts: 25
 
Re: QueryJumpToTypeAheadYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 Dec 06 4:12 AM
fiogf49gjkf0d
Any offers yet ??? I'll send a smiley face and everything....
[Reply][Quote]
Brett Willis
Posts: 9
 
Re: QueryJumpToTypeAheadYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 Jul 07 2:48 PM
Has anyone ever figured this one out? I am also in need of this functionality and can't find a way to mimick it... Thanks!
[Reply][Quote]
Bob (RJ)Ledger
Posts: 1103
Top 10 forum poster: 1103 posts
 
Re: QueryJumpToTypeAheadYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 Jul 07 4:30 PM
Quote:
Originally posted by Mark Richardson

Any offers yet ??? I'll send a smiley face and everything....


I already have a large collection of those .....

The ONLY way (even in the unreleased v7.2) AFAIK to do this is to employ "dynamic recordset filtering". You will have to build it from scratch.

OR

Purchase the "Quantum Grid" and install your own custom control... but I'd tend to avoid that approach.

This has been an issue that was discussed back in early 2004 in the partner's NG and occasionally pops up as folks (FINALLY) get rid of legacy junk...
--
rjl
[Reply][Quote]
Brett Willis
Posts: 9
 
Re: QueryJumpToTypeAheadYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Jul 07 9:41 AM
This might help. I figured out a way to dynamically rebuild the datagrid SQL based on the currently sorted column. Instead of jumping ahead to the row that matches the query, it filters the datagrid. The example below would work on a simple Manage Products form.

option explicit
dim strSQL, strSort
strSQL = "SELECT * FROM PRODUCTS"
strSort = "ORDER BY ACTUALID ASC"

Sub AXFormOpen(Sender)
' Set Default Sort Column
Application.BasicFunctions.GlobalInfoSet "gFilter", "ACTUALID"
QueryChange Sender
End Sub

Sub QueryChange(Sender)
grdMain.SQL = strSQL & " WHERE " & Application.BasicFunctions.GlobalInfoFor("gFilter") & " like '" & edtQuery.Text & "%' " & strSort
grdMain.Refresh
End Sub

Function grdMainColumnSorting(Sender, ByRef Column)
Application.BasicFunctions.GlobalInfoSet "gFilter", Column.FieldName
End Function

[Reply][Quote]
Mark Richardson
Posts: 25
 
Re: QueryJumpToTypeAheadYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Jul 07 11:30 AM
Firstly, thanks to Bob for his input - haven't had time to reply to his thread yet.

Brett - thanks to you too.
Indeed, I have 'sort of' considered and played with this type of option (which does do a job), but with large datasets it negates the dynamic (as one types into an editbox) side of this whole thing.

Again though, thanks for both your inputs.

Ps if anybody is reading this i have a nice couple or 3 plugins I can share - will probably post on here when I pull my finger out but if anyone interested they are:

SLX Export to MapPoint - Maps pushpins onto map with account name from a Group. Also maps meetings onto MapPoint map - choose day etc etc. (requires MapPoint installed)
'Add Contact to Outlook' Button/script on Contact View - does what it says on the tin
Crystal Report -> PDF -> Outlook with one click of a button - This pumps Record selection criteria to a crystal, creates a pdf & attaches it to email and Outlook Mail Message (with aformentioned attachment) pops to user (v.Quick too!)

Regards,

Mark
[Reply][Quote]
Lawrence Reid
Posts: 63
 
Re: QueryJumpToTypeAheadYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 20 Jul 07 9:48 AM
Would the datagrid property TypeAhead do what you need? Another thought would be to loop through the records until you find what you are looking for with the GetFieldValue.
[Reply][Quote]
Mark Richardson
Posts: 25
 
Re: QueryJumpToTypeAheadYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 20 Jul 07 9:55 AM
Hi Lawrence,

Thanks for the reply - Are you talking version 6.2 DataGrid (SLX Datagrid) ?

I can't see any references in the DataGrid object for 'TypeAhead' ?? Could you please show / provide an example so I know where abouts to look.

Thanks in advance,

Mark
[Reply][Quote]
Lawrence Reid
Posts: 63
 
Re: QueryJumpToTypeAheadYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 20 Jul 07 10:03 AM
I am currently looking 7.1. There is a boolean TypeAhead property for datagrids in the properties window in the architect. By default it is unchecked. The hint dispayed states "Determines whether typeahead is enabled on the currently sorted column."
[Reply][Quote]
Mark Richardson
Posts: 25
 
Re: QueryJumpToTypeAheadYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 20 Jul 07 10:15 AM
Ahh.. That may explain it - This Q was specifically relating to v6.2.4 (see original post at top!).

Oh well - i'll 'play' with my v7 although the business don't plan to run with it 'til next year but, as they say, forewarned is forearmed !

Thanks Lawrence

Have a good weekend
[Reply][Quote]
Lawrence Reid
Posts: 63
 
Re: QueryJumpToTypeAheadYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 20 Jul 07 10:19 AM
I am interested in your 3 plug-ins. Would you please post them.
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 6/19/2025 4:30:20 PM