Hi,
In order to know the dialog button usage..
Use the Box Class. to get different types of boxes available.

DialogButton dialogButton;
;

dialogButton = Box::yesNo(strfmt(‘Dimension is not specified for the ledger account %1 \nDo you want to continue posting?’, ledgerJournalTrans.AccountNum),
DialogButton::No
,”Dimension validation”,”Dimension validation”);
if(strfmt(“%1”,dialogbutton) == “No”)
{
throw error(“Dimension not specified for the voucher.”);
}