AX – D365FO – Add a lookup to Runbase dialog field

This is the result we want to obtain

Create a RunBasebatch class

class ERAWriteOffLaunch extends RunBaseBatch

{
   DialogField                 dialogCustAccount;
   accountName                 custAccount;
}


<!-- wp:code -->
<pre class="wp-block-code"><code>class ERAWriteOffLaunch extends RunBaseBatch

{
   DialogField                 dialogCustAccount;

   accountName                 custAccount;

}



public Object dialog()

{

   DialogRunbase       dialog = super();
   dialogGroupSites = dialog.addGroup("@SYS103214");
   dialogCustAccount = dialog.addField(extendedTypeStr(CustAccount));

   return dialog;

}


public boolean getFromDialog()

{

   custAccount = dialogCustAccount.value();

   return super();

}

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 )

Facebook photo

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

Connecting to %s