back to top

Getting around how the Address control’s Edit form is not editable in the SalesLogix Web Client

The Address control that is found on the Account and Contact detail forms in the SalesLogix web client is a custom composite control.  One of the features this gives you is an edit dialog to update the address fields. This is invoked when you click the Pencil Icon that is also part of the composite control:

Edit Address Dialog in Standard SalesLogix Address Control

 

Unfortunately this edit dialog, as well as most other attributes of the Address control are contained in a compiled Sage Web Control assembly and are not customizable.  The SalesLogix web client does have an OOTB edit address screen, that is invoked from the Address tab at the Account and Contact level.

Edit Address Quick Form in Standard SalesLogix

 

 

If you need to change the default address edit dialog (like if you have added a custom address field, or want some custom validations, etc) it would sure be nice to do this.  How can you though when the edit address dialog of the Address control is not customizable?  Well a little creativity is all you need.  lets take a look at how to do this.

Step 1- Add a custom load action

On the main detail quick form, add a C# Snippet Action Item to Page Load of the quickform (Make sure On Repaint Event of the code is set to True)

Address.ReadOnly = true;
Address_lbl.ForeColor = System.Drawing.Color.Blue;
Address_lbl.Style[“text-decoration”] = “underline;”;
Address_lbl.Text = “Edit Address”;
Address_lbl.ToolTip = “Click to Edit Address”;
Address_lbl.Attributes.Add(“onclick”, “var btn= document.getElementById(‘” + btnEditAddress.ClientID + “‘); if(btn) btn.click();”); 
btnEditAddress.Style[“Display”] = “none”;

What this code is doing is setting the address control (Named Address) to be read only.  This will eliminate the pencil icon to prevent the wrong edit screen from opening.  Next we are changing the label of the address control (rendered as the control name + “_lbl”).  We are making the label appear like a hyperlink with the text “Edit Address”. Finally we are adding a client side event to the click action.  This client side action is looking for a button on our form (we have not added it yet) and then is invoking its client side action, which will in turn execute the server side action of the same button (we will add that later too).

Step 2- Add our custom button with a server side click action

I normally will add this button to the toolbar area of the quickform just so it is out of the way and less likely to be removed by somebody who sees the button on the form and does not know what it is.  The important bits about adding the button are as follows:

 

  • ControlID: btnEditAddress
  • Caption: Do Not Delete
  • On the Click Action, add a new C# Snippet Action Item with the following code (this is for the contact view, you would need to change the first line for another entity):

Sage.Entity.Interfaces.IContact con = this.BindingSource.Current as Sage.Entity.Interfaces.IContact;

if(con != null && con.Address!=null)
{
    string Id = con.Address.Id.ToString();
    if (DialogService != null)
    {
        DialogService.SetSpecs(200, 200, 318, 600, “AddEditAddress”, “”, true);
        DialogService.EntityType = typeof(Sage.Entity.Interfaces.IAddress);
        DialogService.EntityID = Id;
        DialogService.ShowDialog();
    }
}

This code will be called after our client side code runs we added in step 1.  The tricky thing here is we are invoking the edit address quick form which is already on the standard Account and Contact pages because it is used by the Address tab.

Here is what our deployed details page looks like after these changes:

Custom Edit Address on SalesLogix detail Quick Form

 

 

And clicking the label opens the Edit Address Quick Form:

Edit Address Quick Form in Standard SalesLogix

 

 

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.

1 COMMENT

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