Thursday, July 22, 2010

Modify label of Runbase OK button

There are number of requirements when a developer wants to change the label of runbase dialog OK button in Dynamics AX. You can use the following code to change the label of OK button on Runbase dialog in AX

Insert the following code after the super() call in the putToDialog method

protected void putToDialog()
{
FormBuildCommandButtonControl commandButton;
;
super();
commandButton = dialog.dialogForm().control("OkButton");

commandButton.text("Yes");

}