2/21/2025 5:00:56 AM
|
|
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 .NET Extensions in SalesLogix version 7 and higher. View the code of conduct for posting guidelines.
|
|
|
|
Capturing SLX Events Error
Posted: 13 Feb 09 3:25 PM
|
I saw the example in the forum entry "Capturing SLX Events" and it is not working for me. I am missing something. when I try to set set loader = Application.Managed.Run( ext, temp) I get a "Object Required" error. What else should I do to access the .Net object in Saleslogix?
my .Net code: [ComVisible(true)] [Guid("3f356886-a81c-4382-b74a-985a4cb23b24")] public class Loader : Sage.SalesLogix.NetExtensions.IRunnable { private PlanogramDisplay _ctrl = null; private Sage.SalesLogix.NetExtensions.SalesLogix.ISlxApplication _SlxApplication;
public void Initialize(Sage.SalesLogix.NetExtensions.SalesLogix.ISlxApplication SlxApplication, Sage.SalesLogix.NetExtensions.Licensing.ILicenseKeyManager LicenseKeyManager) { _SlxApplication = SlxApplication; }
public object Run(object[] Args) { string conn = string.Empty; object handle = Args.Length == 0 ? null : Args[0]; object x = Args.Length == 1 ? string.Empty : Args[1]; object y = Args.Length == 2 ? string.Empty : Args[2];
string accountid = x.ToString(); string admin = y.ToString();
conn = _SlxApplication.ConnectionString;
Load(accountid, admin, conn);
return this;
}
my saleslogix code is: Sub AXFormShow(Sender) dim accountid dim sUserID dim temp(3)
temp(0) = container.HWND temp(1) = Application.MainViews.ActiveView.CurrentID temp(2) = Application.BasicFunctions.CurrentUserID
ext = Application.Managed.Create("RackStylePlanogramLib", "RackStylePlanogramLib.Loader") set loader = Application.Managed.Run( ext, temp) loader.Print
End Sub Thank you |
|
|
|
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!
|
|
|
|
|
|
|
|