Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Thursday, August 28, 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: How do I get at the selected records in a MainView's list view?
Mark Hanford
Posts: 131
 
How do I get at the selected records in a MainView's list view?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Mar 09 6:10 AM
Hello again

I'm trying to create a "merge records" function for my new SERVICES Main View, and I've added the relevent links in my main view form. I can now select a few records, right-click and select "Merge Records" and it goes off and fires off my ActiveScript's main() method.

The thing is, how do I reference the currently selected records or record id's from that method?

I suppose a related question might be where to find functions used by the MainView:XXX links on the OOTB Main Views - then I could peek in those and copy some ideas. Or are they internal generic functions not available to peruse as Active Scripts?
[Reply][Quote]
Mark Hanford
Posts: 131
 
Re: How do I get at the selected records in a MainView's list view?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Mar 09 6:35 AM
Nevermind, looks like I got it. I didn't RTFM enough it seems, and missed a little nugget of info.

Application.MainViews.ActiveView.GroupsPane.Selection returns an array of selected ID's.

Dim i
For i = 0 To Application.MainViews.ActiveView.GroupsPane.Selection.Count - 1
MsgBox "Selected ID is " & Application.MainViews.ActiveView.GroupsPane.Selection.Item(i)
Next
[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/28/2025 10:27:28 AM