Displaying Client-Side Alerts in the Infor CRM Web Client

To display an alert to the user in Infor CRM, there are some built-in options that look nicer than the standard Javascript/browser “alert” dialog. Let’s take a look how to use them.

Displaying Alerts to the User

A few other message types you can use are for displaying different message type alerts to the user.

Sage.UI.Dialogs.alert('This is a message', 'The Title');

This looks like this:

There are also the following alert functions which are also mean to display an icon for the alert based on the type, however in current versions of Infor CRM, the CSS hides the icon, so these will all look the same:

// info alert 
Sage.UI.Dialogs.showInfo('This is an info message', 'Info Title');

// warning alert
Sage.UI.Dialogs.showWarning('This is a warning message', 'Warning Title');

// error alert
Sage.UI.Dialogs.showError('This is an error message', 'Error Title');

To display this same alert from server-side code, you can use the following

throw new Sage.Platform.Application.ValidationException("This is an error message");

Technically, this throws the exception, which is caught and the client-side alert is displayed as above.


Ryan Farley

Ryan Farley is the Director of Development for Customer FX and creator of slxdeveloper.com. He's been blogging regularly about SalesLogix, now Infor CRM, since 2001 and believes in sharing with the community. His new passion for CRM is Creatio, formerly bpm'online. He loves C#, Javascript, web development, open source, and Linux. He also loves his hobby as an amateur filmmaker.

Submit a Comment

Your email address will not be published. Required fields are marked *

Subscribe To Our Newsletter

Join our mailing list to receive the latest Infor CRM (Saleslogix) and Creatio (bpm'online) news and product updates!

You have Successfully Subscribed!