D365FO – AX – How to add a Dialog text in a RunBase dialog with X++?

THis code explains how to add a text in a Runbase dialog?

public Object dialog()
{
   dialog = super();
 
   dialog.addGroup("Folder for export");
   dialogFieldFilePath = dialog.addFieldValue(extendedTypeStr(FilePath), filePath);
   dialog.addGroup("Directory");
   dialogUpdateStatus = dialog.addFieldValue(extendedTypeStr(NoYesId), updateStatus, "Update Status?");
   dialog.addText("If "Not" job will create only log file"); //This is a Text dialog field
   return dialog;
}

This is the result :

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s