Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, February 21, 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!
 Architect Forums - SalesLogix .NET Extensions
Forum to discuss the use of .NET Extensions in SalesLogix version 7 and higher. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix .NET Extensions | New ThreadView:  Search:  
 Author  Thread: Capturing SLX Events Error
drey
Posts: 16
 
Capturing SLX Events ErrorYour last visit to this thread was on 1/1/1970 12:00:00 AM
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
[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): 2/21/2025 5:09:14 AM