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!
|
|
When developing an external assembly, from where should I add the references to be able to access Sage's services and Slx Entities?
Posted: 28 Apr 09 12:40 PM
|
Hi all,
I wonder what's the correct way of developing external assemblies to be used within SalesLogix web. Let's say I want to create a DLL in visual studio which will have functionality that will be used from SalesLogix web, and I want to be able to get (for instance) the connection or the logged in user, etc.
From where I should add the references to do so? Is there a recommended way of developing such external libraries? Any gotchas I should be aware? When I rebuild the project inside AA, do I have to rebuild my external library too, or something like that? Everytime I change my external library, do I have to update the one in "bin" folder used as external reference from AA?
Thanks and regards to all. |
|
|
|
Re: When developing an external assembly, from where should I add the references to be able to access Sage's services and Slx Entities?
Posted: 29 Apr 09 12:11 AM
|
In AA, you'll want to go under Tools->Copy Assemblies. This will place the files you need into C:\Program Files\SalesLogix\ReferenceAssemblies. This is where you'll want to draw from for your VS project.
Some "basic" references you'll want are log4net Microsoft.Practices.ObjectBuilder NHibernate Sage.Entity.Interfaces Sage.Platform Sage.Platform.Application Sage.Platform.Configuration Sage.Platform.Orm.CodeGen Sage.Platform.WebPortal Sage.SalesLogix Sage.SalesLogix.Client.GroupBuilder Sage.SalesLogix.Security Sage.SalesLogix.System Sage.SalesLogix.web
You may not need all of those, but will give you a good base. |
|
|
| |
| |
|
Re: When developing an external assembly, from where should I add the references to be able to access Sage's services and Slx Entities?
Posted: 29 Apr 09 12:04 PM
|
When inside a code snippet, open properties toolbar (f4), and from the combo box at the top of the properties window select Sage.Platform.Orm.Entities.CodeSnippetHeader. Sometimes this is not visible, click on the code snippet header inside the code and try again. At some point it will appear. There you have a collection of references. You have to enter the assembly name ("MyAssembly.dll" for instance) and the hint path, which is the full path to the assembly ("C:\something\MyAssembly.dll" for instance).
Good luck. |
|
|
| |
| |
| |
|