Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, August 23, 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: Get the SQL of the "Lookup Results" Group
Brian Segers
Posts: 69
 
Get the SQL of the "Lookup Results" GroupYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 26 Dec 07 7:25 PM
I need to get the SQL that is creating the Lookup Results group for a mainview. I can use the Application.BasicFunctions.GetGroupSQL if it is an actual group, but as far as I can tell the Generic Lookup Results group has no Id.

Thans in advance, Brian


[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: Get the SQL of the "Lookup Results" GroupYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 27 Dec 07 4:22 AM
sql = Application.MainViews.ActiveView.CurrentGroupSQL
msgbox sql

Should do the trick - you can replace your existing Application.BF.GetGroupSQL with this as well.

Also, if you wanted to find just the selected ID's on this view you can use:


with application.MainViews.ActiveView.GroupsPane
For intIndex = 0 To .Selection.Count - 1
msgbox .Selection.Item(intIndex)
Next
end with

[Reply][Quote]
Brian Segers
Posts: 69
 
Re: Get the SQL of the "Lookup Results" GroupYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 27 Dec 07 8:54 AM
Mike,

That was exactly what I was looking for, not sure why I got stuck in App.BF last night.

Thanks again.

Brian
[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: Get the SQL of the "Lookup Results" GroupYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 27 Dec 07 12:18 PM
Yup, it's a "legacy" thing
[Reply][Quote]
topknot
Posts: 16
 
Re: Get the SQL of the "Lookup Results" GroupYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 20 Mar 08 10:17 AM
Quote:
Originally posted by Mike Spragg

sql = Application.MainViews.ActiveView.CurrentGroupSQL
msgbox sql

There is no such function in SLX 6.2.6.1007, do we have something to use instead of it?

Quote:
Also, if you wanted to find just the selected ID's on this view you can use:

with application.MainViews.ActiveView.GroupsPane
For intIndex = 0 To .Selection.Count - 1
msgbox .Selection.Item(intIndex)
Next
end with


Also I was trying to iterate through accounts with Application.MainViews.ActiveView.GroupsPane.IDs but it too way slow! From profiler I can see that it reload information for whole group at every access to IDs(i).

Is there a way to have SQL for "Lookup Results" so I can obtain all account ids with one call?
[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): 8/23/2025 10:26:32 AM