7/6/2025 1:29:58 PM
|
|
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!
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.
|
|
|
|
Code error
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
|
|
|
|
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!
|
|
|
|
|
|
|
|