Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Sunday, July 6, 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: Code error
Jeff Ng
Posts: 34
 
Code errorYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 14 May 09 5:30 AM
Dear all,

I would like to seeking advice from all yours.
I am having problem with trigger code from textbox control. The error message I got when building the web platform are as follows
-"Reference required to assembly "System.Data, Version = 2.0.0.0, Culture=neutral, Publickeytoken = b77a5c561934089"
containing the type 'System.Data.lDbConnection', Add one to your project.
- Type lDbconnection is not defined
- Type lDbCommand is not defined

The following is the code I created

#Region "Usings"
Imports System
Imports Sage.Entity.Interfaces
Imports Sage.Form.Interfaces
Imports Sage.Platform
Imports System.Runtime.InteropServices
Imports System.Data
#End Region

Namespace Sage.BusinessRules.CodeSnippets

Partial Public Class TicketDetailsEventHandlers

Public Shared Sub txtstoreno_OnChangeStep1( ByVal form As ITicketDetails, ByVal args As EventArgs)

Dim service As Sage.Platform.Data.IDataService
Dim conn As IDbConnection
Dim comm As IDbCommand
service = Sage.Platform.Application.ApplicationContext.Current.Services.Get
conn = service.GetConnection
conn.Open
comm = conn.CreateCommand
comm.CommandText = "Select location from store"
comm.ExecuteScalar

End Sub

End Class

End Namespace

[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/6/2025 1:58:58 PM