Login / Register  search  syndication  about

          Kris Halsrud's Blog

Kris Halsrud on development and Integration with CRM and Development

Wiring up a SalesLogix Entity Event to an External Assembly

The SalesLogix entity model allows you to add an event/business rule action to a public method in an external assembly.  This post talks about how to do this.  I will not be talking about actually building an external assembly but just how to wire them up.

To do this:

Log into the Application Architect as Admin.

Go to the menu View…Project Explorer.  This will open the Project Explorer navigator in your current workspace.  Expand out the Entity Model…SalesLogix Application Entities… Select your entity.  For my example I will choose SalesOrderItem.

Project Explorer

Once you expand out your entity you will see Rules, and under this are the Business Rule and Event hooks.  In my sample I will be adding an OnBeforeDelete Post Execute Event.

SalesLogix already wires up some events to have Primary Steps.  You can only have one active Primary step.  Usually it is not advisable to replace the SalesLogix pre-wired event as it handles important business logic (usually).  Typically you always want to add either Pre Execute Steps or Post Execute Steps.  In my case I am adding a post execute step, which will run after the built in SalesLogix Primary Step. BTW, on a side note these pre-wired steps SalesLogix has reference external assemblies, just like what we are going to do.

 Back to the Sample, I double click on the OnBeforeEvent and the Event opens in the Application Architect.

 OnBeforeDelete-Primary Steps

 I want to add a Post Execute Step, so I will click on that tab.

OnBeforeDelete-Post Execute1

 I can see there are no Steps defined yet.  If there were I could add an additional step.  Pre and Post events can have multiple Steps.  Only the Primary Step can have one active step defined. 

Click Add to add a new Step.

 New Business Rule Step

 In the New Business Rule Step dialog that opens,

Choose the option for External Assembly.  Notice that the bottom part of the screen changes and all of the edit boxes are read only.  This is OK.  The interface doesn’t want you to type in freely and make a mistake.  Instead, click the hyperlink “Choose type and method from assembly”.

 Class Browser

The class browser window appears. 

The only choice here is to choose the menu File..Open. This will open a Browser window where you can browse out to your External Assembly file.  When you do so, Click Open on the browser window.

 Class Browser -Broswer Window

 

Now that you have selected your Assembly, the Class Browser dialog should show you all of the Namespaces, Classes and Methods in the assembly.  Navigate the assembly and choose the method you want to use.

 Class Browser Filled

 

Select OK.

OnBeforeDelete-Post Execute2

The Event has now been wired up.

What's This?
  
Bookmark and Share

About Kris Halsrud

   Kris Halsrud is a Senior Analyst / Developer for Customer FX Corporation.


Related Content
   Easily Showing and Hiding Tabs at Runtime in Infor CRM (Saleslogix)
Showing and hiding tabs in the Infor CRM (Saleslogix) client should be an easy thing. It should be someth
Posted on Dec 16, 2014 by Ryan Farley to Ryan Farley's Blog
 
   Problem setting SLXTextbox enabled property / Setting unexposed base control properties for a custom control
I recently had an issue with a Quickform where I was attempting to set the Enabled property of a TextBox
Posted on Dec 05, 2014 by Jason Buss to Jason Buss' Blog
 
   Checking Infor CRM (Saleslogix) Picklists for valid data
This week I received a question about a particular picklist. One of the picklist items, when chosen, wou
Posted on Dec 05, 2014 by Dale Richter to Infor CRM Questions & Answers
 
   Avoiding the Dirty Data Message When Programatically Redirecting to a Record in Infor CRM (Saleslogix)
In my last post I wrote about using the OnClientClick property of a control (or button) to run JavaScript
Posted on Dec 02, 2014 by Ryan Farley to Ryan Farley's Blog
 
   Infor CRM (formerly Saleslogix) Web- Dependency Lookup OnChange Event Not Working Correctly
In the Saleslogix 8.1 web client the dependency lookup still has a problem with the OnChange event. 
Posted on Nov 26, 2014 by Kris Halsrud to Kris Halsrud's Blog
 
Comments

 

Twitter Trackbacks for Wiring up a SalesLogix Entity Event to an External Assembly - Kris Halsrud's Blog [customerfx.com] on Topsy.com said:

Pingback from  Twitter Trackbacks for                 Wiring up a SalesLogix Entity Event to an External Assembly - Kris Halsrud's Blog         [customerfx.com]        on Topsy.com

April 7, 2010 8:31 AM

Leave a Comment

(required)  
(optional)
(required)  
Add
All contents Copyright © 2014 Customer FX Corporation
Customer FX Corporation
2324 University Avenue West, Suite 115
Saint Paul, Minnesota 55114
Tel: 800.728.5783

  Follow @CustomerFX on twitter
Follow the best news, tips, and articles
  Subscribe to Customer FX on youtube
Watch SalesLogix tutorial videos from Customer FX
Login / Register