Customization MessageBox

Is it possible to call this.PublishInfoMessage from a customization? I expected the following code to display a message box (grid):

this.PublishInfoMessage($"{message}", Ice.Common.BusinessObjectMessageType.Information, Ice.Bpm.InfoMessageDisplayMode.Grid, "", "");

How should I go about displaying a message after a button is pressed in a customization?

There might be an easier way but you could always write your own “message box” to be invoked on the screen and build out the form to have a grid with data in it. I don’t know of an out of the box solution for a grid inside a message box. The other think you could do is build the data you’re displaying to look “grid like” with columns and stuff as a string, which might work

Thank you.

I instead called a BPM to display a message box. I can’t find a way to display messages via customizations.

Maybe you can try the below:
Erp.UI.EpiMessageBox.ShowLocale(“mustBeNumeric”, “mustBeNumeric_title”, MessageBox.Buttons.YesNo, MessageBox.Icon.Warning);

2 Likes

Hi Elias,
please forgive my ignorance, may i jus ask why not using the standard Button_Click event ?

image

image

3 Likes

Pleas forgive my ignorance.

I didn’t realize customizations had using System.Windows.Forms; nor that I could add references to the Script class. This is exactly what I was looking for.

Thank you.

2 Likes