Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, August 29, 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: Replacement for DBGridGetSelectedIDs
Guy Barrett
Posts: 63
 
Replacement for DBGridGetSelectedIDsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Aug 09 10:20 AM
Hi All,

I'm currently converting a lot of old legacy scripting to VB, and I notice that (as far as I can see) there is no DBGridGetSelectedIDs("dbgridname") command anymore.

This is disappointing as I used to use it to pass multiple IDs to Crystal Report parameters.

Does anybody know of an equivalent command, or just happens to have a function that they have written that produces the same results?

Thanks in advance!

Guy.
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Replacement for DBGridGetSelectedIDsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Aug 09 11:18 AM
If the grid is single select:

grid.GetCurrentField("")


If the grid is multi select:

i = grd.SelectedNodes.Count
If i > 0 then
Do While i > 0
i = i - 1
ids = ids + grd.SelectedNodes.Item(i).Values(0) & ","
Loop
ids = left(ids, len(ids) - 1)



[Reply][Quote]
Guy Barrett
Posts: 63
 
Re: Replacement for DBGridGetSelectedIDsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Aug 09 3:26 AM
That's perfect. Thanks Raul!
[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/29/2025 10:13:28 AM