Home
|
Forums
|
Contact
|
Search
|
Syndication
[login]
[create account]
Thursday, November 21, 2024
slxdeveloper.com
Home
Search
Contact us
About slxdeveloper
Syndication
Community
Forums
(NEW!)
Newsletter Archive
Members
Your Profile
Submit Article
General
Administration
(6)
OLE DB Provider
Miscellaneous
(2)
Architect
VBScript
(9)
ActiveX Controls
(6)
How To's
(14)
.NET Extensions
(3)
External
OLE DB Provider
(12)
SLAPI (SlgxApi.dll)
SalesLogix COM
(1)
Web
ASP/ASP.NET
(2)
Web Services
Web Client
Downloads
Samples
(17)
Documentation
(7)
Utilities
(18)
Resources
SalesLogix
(3)
Programming
(1)
11/21/2024 2:50:15 PM
slxdeveloper.com
Now Live!
View User Profile
User Profile -
Preston Zappa
Preston Zappa
S1 Corp
fjrigjwwe9r1SiteUser:UserBio
fiogf49gjkf0d
Log in
to send this member a message!
Preston Zappa
's Contributions
Preston Zappa
has contributed
2
comments and
0
articles.
Select to view:
Comments
Articles
Comment:
Re: Introduction to .NET in SalesLogix Version 7
fiogf49gjkf0d
Try replacing :
System.Data.OleDb.OleDbConnection o_con = new OleDbConnection(constr);
with
System.Data.OleDb.OleDbConnection o_con = new System.Data.OleDb.OleDbConnection(constr);
Author:
Preston Zappa
- 4/8/2008
Comment:
Re: Introduction to .NET in SalesLogix Version 7
fiogf49gjkf0d
I've got the below to work, but I can't seem to get it to return a value..preferebly a string. Any ideas?
C#:
public class Class1 : Sage.SalesLogix.NetExtensions.BaseRunnable
{
public override object Run(object[] Args)
{
string msg = (Args.Length == 0 ? "None" : Args[0].ToString());
string msg2 = (Args.Length == 0 ? "None" : Args[1].ToString());
MessageBox.Show(msg + "-" + msg2, "Test Message Box");
SLXTransWebSvc.SLXTransWebSvc t = new SLXTransWebSvc.SLXTransWebSvc();
string result = t.LoadStaging("200701");
return result;
}
}
SLX Code:
Dim ext ' this variable will hold the handle for the loaded .NET Extension
Dim args(2)
' instanciate the .NET Extension
ext = Application.Managed.Create("SLXTEST", "SLXTEST.Class1")
args(0) = "TestParam1"
args(1) = "TestParam2"
' run it (and pass any arguments)
Application.Managed.Run ext, args
' destroy the loaded .NET Extension
Application.Managed.Destroy ext
Thanks! --Preston
Author:
Preston Zappa
- 3/7/2007
slxdeveloper.com is brought to you courtesy of
Ryan Farley
&
Customer FX Corporation
.
This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.
code of conduct
|
page cache (param): 11/21/2024 3:22:22 PM