if ( tmpBOMRouteTree.ConfirmDelete
&& !Box::yesNo(strFmt("@SYS67139",bomCache.ItemId),DialogButton::No,"@SYS10308","@SYS10308"))
{
return;
}
this.deleteBOM(_nodeIdx);
[ExtensionOf(formStr(BOMDesigner))]
final class BOMDesigner_MYMODEL_Extension
{
[DataSource]
class BOM
{
public boolean validateDelete()
{
boolean ret;
DialogButton dialoguePick = Box::yesNo("Are you sure you want to delete this record?", DialogButton::No);
if(dialoguePick == DialogButton::No)
{
return false;
}
ret = next validateWrite();
return ret;
}
}
}
[ExtensionOf(formStr(EcoResProductDetailsExtended))]
final class EcoResProductDetailsExtended_Extension
{
public void init()
{
this.form().design().showDeleteButton(false);
next init();
}
}
André Arnaud de Cal... 291,391 Super User 2024 Season 2
Martin Dráb 230,445 Most Valuable Professional
nmaenpaa 101,156