back to top

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.  This problem has been around a long time, as a first reported on this back in 2010!!!.  Essentially what happens is when the OnChange event occurs, the dependency lookup has yet to set the bound entity properties to the values selected in the dependency lookup.  The entity binding only occurs after the completion of the full postback. 

You have two work arounds for this.

1) Place you “OnChange” code for the Dependency Lookup on the Quick Form’s Page Load event with the On Repaint property turned on.  This is lame as it runs for every postback, not just when the Dependency Lookup Control changes.

2) Don’t rely on the bound entity, but look at the control itself to get the values entered.  Let’s look at that second approach:

To handle the OnChange event, what you need to do is to look at the dependency lookup control’s composite controls to find the textbox containing the result.  You can then get the value and then manually set the entity model directly.

Here is a sample C# snippet you could add to the Ticket ACI dependency lookup control. This code only deals with Area, but you could expand for Category and Issue Too.

Sage.Entity.Interfaces.ITicket t = this.BindingSource.Current as Sage.Entity.Interfaces.ITicket;
//There is a bug with the dependency lookups where the onchange event runs before the entity binding occurs.
//The entity binding occurs but only on page postback
//As a result, we have to check the control to see what was selected, rather than the entity. 
//Then set the entity property directly so our business rule works….       
string area = string.Empty;
foreach (Control c in dplArea.Controls)
{
    //Find Area return
    if (c.ClientID.EndsWith(“_dplArea_Area_Text”))
    {
        area = ((TextBox)c).Text;
    }
}
if (!string.IsNullOrEmpty(area)) t.Area = area;

 

 

Contact Customer FX for your CRM project
We let our expertise speak for itself - let us know how our all-star team can help on your CRM project
About the Author
Kris Halsrud
Kris Halsrud
Kris Halsrud is a Senior Analyst / Developer for Customer FX Corporation.

3 COMMENTS

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Infor CRM Sync for Exchange: Action Required by August 31, 2026

Using Infor CRM Sync for Exchange with Microsoft 365? Your Exchange administrator must update tenant settings by August 31, 2026 to prevent sync disruption.

[Webinar] What’s Coming Next for Infor CRM SLX and Why v10 Matters

See what’s coming next for Infor CRM SLX, including new marketing workflows, automation improvements, and reasons to consider upgrading to v10.

Disable Caching in Infor CRM SLX Web Client

In the rare case caching is causing issues in the Infor CRM SLX web client, it is possible to disable specific types of caching by making edits using Application Architect, and then deploying.

Exploring AI Options for Infor CRM v10

I've started taking a closer look at the AI capabilities built into Infor CRM v10. Over the next several posts, I'll share what I learn. From the built-in features and supported AI providers to implementation considerations, costs, and practical use cases.

Infor CRM SLX 10.0: Delegate Ownership Changes for “Everyone” Records

Learn how the new EveryoneOwnerAssignment secured action in Infor CRM SLX 10.0 allows designated users to change ownership of Everyone-owned records without requiring Administrator access.

Related Articles

Infor CRM Sync for Exchange: Action Required by August 31, 2026

Using Infor CRM Sync for Exchange with Microsoft 365? Your Exchange administrator must update tenant settings by August 31, 2026 to prevent sync disruption.

[Webinar] What’s Coming Next for Infor CRM SLX and Why v10 Matters

See what’s coming next for Infor CRM SLX, including new marketing workflows, automation improvements, and reasons to consider upgrading to v10.

Disable Caching in Infor CRM SLX Web Client

In the rare case caching is causing issues in the Infor CRM SLX web client, it is possible to disable specific types of caching by making edits using Application Architect, and then deploying.

Exploring AI Options for Infor CRM v10

I've started taking a closer look at the AI capabilities built into Infor CRM v10. Over the next several posts, I'll share what I learn. From the built-in features and supported AI providers to implementation considerations, costs, and practical use cases.

Related Videos