Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, July 4, 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!
 Web Forums - SalesLogix Web Platform & Application Architect
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: The type or namespace 'Data' does not exist in the namespace 'System' from Business Rule
Steve Knowles
Posts: 657
Top 10 forum poster: 657 posts
 
The type or namespace 'Data' does not exist in the namespace 'System' from Business RuleYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 31 Aug 09 7:58 AM
I have a standalone table with that holds some default values - one row only. I have a custom entity that I want to populate with these values on a button click. I am trying to create a business rule that returns the default values from the standalone table then populates the values at the the entity level. My first thought is to run SQL to get the default values. I have run SQL in custom smartparts in the past. Using the code below in a business rule I keep getting the error: The type or namespace 'Data' does not exist in the namespace 'System'

System.Data.OleDb.OleDbConnection oConn = (System.Data.OleDb.OleDbConnection)data.GetConnection();
oConn.Open();

I tried adding System.Data to the usings and get the same error.. How can I run sql in the business rule? Is there a better way to return the values from this standalone table to a business rule on my custom entity? Thanks

[Reply][Quote]
Jim Wright
Posts: 12
 
Re: The type or namespace 'Data' does not exist in the namespace 'System' from Business RuleYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Oct 09 2:15 PM
Steve,
I don't know if you received an answer to this already, but I just ran across the same issue. I had to edit this file:
C:\Documents and Settings\All Users\Application Data\Sage\Platform\Configuration\Global\codesnippets.xml
and add the location of the system.data.dll to the defaultreferences section:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Data.dll
-jim
[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/4/2025 5:08:01 AM