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: Populate Datagrid with data from a different database
SLX_Novice
Posts: 246
 
Populate Datagrid with data from a different databaseYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 Feb 09 8:33 PM
Hi all.

I want to populate a datagrid with information from a different database from our SalesLogix. I populate the datagrid using script, here's an example:

strSQL = "Select A.ID FROM [DifferentDatabase].dbo.myTable A Where A.SalesLogix = '" & application.BasicFunctions.CurrentAccountID & "'"

When I run this in the client, I get the following error: "Invalid Table Name"

How can I access a table in a different database from our SalesLogix data?

Thank you in advance.
[Reply][Quote]
Phil Parkin
Posts: 819
Top 10 forum poster: 819 posts
 
Re: Populate Datagrid with data from a different databaseYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Feb 09 3:07 AM
Presumably you do not have remotes, or this will not work at all ...

The SLX Provider can access tables and (critically in this case) views which are in the current SLX database and which are owned by the sysdba schema (so sysdba.viewname, not dbo.viewname).

So your first step is to create the view in the SLX database, using standard SSMS techniques - but remember the sysdba bit.

Then you need to register the view to SLX, using the database manager. If you need more details, just ask.

Then you should be good to go with


strSQL = "Select A.ID FROM myView A Where A.SalesLogix = etc etc "


Phil
[Reply][Quote]
SLX_Novice
Posts: 246
 
Re: Populate Datagrid with data from a different databaseYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Feb 09 8:13 AM
Thanks for the reply Phil.

How do I "register the view to SLX, using the database manager"?

[Reply][Quote]
Stainless Steel Snake
Posts: 32
 
Re: Populate Datagrid with data from a different databaseYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Feb 09 8:41 AM
Click "Database Manager" button on toolbar in Architector or Administrator.
Then select your view and click "Edit Table Properties" button on toolbar.
Click "Enable" button, then "OK" button.
[Reply][Quote]
SLX_Novice
Posts: 246
 
Re: Populate Datagrid with data from a different databaseYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Feb 09 9:09 AM
Thanks for all your help Phil and Stainless!
[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:10:26 AM