Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Tuesday, July 8, 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 to pass a recordset as a global variable
Bill
Posts: 71
 
How to pass a recordset as a global variableYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Feb 10 2:11 PM
Is there any way of passing a recordset as a global variable? I would like to be able to query the database based off values on one tab and pass the resulting recordset to another screen via a global variable.
[Reply][Quote]
Lane
Posts: 121
 
Re: How to pass a recordset as a global variableYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Feb 10 2:44 PM
set globalvar = recordset
all globals in slx are variants, example the crystal reports engine is a global too.
[Reply][Quote]
Bill
Posts: 71
 
Re: How to pass a recordset as a global variableYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Feb 10 3:08 PM
Thats how I initially had it set up, this is the code I used:

Application.BasicFunctions.GlobalInfoset "grsAcctProd", rsAcctProd

On the screen I am trying to pass the recordset to I have:

Application.BasicFunctions.GlobalInfoFor("grsAcctProd")

I receive a "Type Mismatch error on the screen I am trying to pass the recordset to so I thought I was overlooking something. Now I am trying to figure out why I receive the error.
[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: How to pass a recordset as a global variableYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Feb 10 10:19 PM
Everyone says you can, I never had any luck doing it.

It was far easier to pass an array of data back and forth.....

Application.Globalinfo.Add didn't work....probably because there is no SET object instanciation.....

There isn't any class serialization/GUID's so we couldn't pass a class object between forms either....
[Reply][Quote]
Lane
Posts: 121
 
Re: How to pass a recordset as a global variableYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Feb 10 7:59 AM
sorry, its been a few years and I'm not setup with a LAN install handy.
There is a trick to this and its on the initial setting of the global.
1) there are 2 sets of global functions, one works one doesn't (if i recall correctly)
And Yes you need to use a set cmd.
2) might try;
Dim r
r = "recordset string"
application.basicfunctions.globalInfoSet("gRecordset", x)
set r = allpication.GetNewConnection.Execute(select ...)
'Now test what Global value is ?
3) Anoter options I sometimes need to do (and it works) is to set the variable in a Legacy Script
Once done its still valid
So VBScript
set parameters as global
Invoke "Basic", "Utility:Script" '''calls the Sub main(), it processes the step
Read back global
[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): 7/8/2025 7:21:59 AM