form control clicked coc
[ExtensionOf(formControlStr(WHSLoadTable, btnInboundShipConfirm))]
Final class WHSLoadTableFrm_btnInboundShipConfirmButton_POR_Extension
{
public void clicked()
{
FormDataSource whSLoadTable_fds = this.formrun().dataSource(formDataSourceStr(WHSLoadTable, WHSLoadTable));
List getList = WHSInboundShipmentHelper_POR::getLoadIdsFromDataSource(whSLoadTable_fds);
// WHSLoadTable whsLoadTable = this.formrun().dataSource(formDataSourceStr(WHSLoadTable, WHSLoadTable)).cursor() as WHSLoadTable;
boolean ret = true;
boolean validationStatus = WHSInboundShipmentHelper_POR::validateInboundShipment_POR(getList);
str errorMessage = WHSInboundShipmentHelper_POR::getInfoLogMessages_POR();
infolog.clear();
if(!validationStatus)
{
DialogButton selection = Box::okCancel(strFmt("%1",errorMessage), DialogButton::Cancel);
if (selection == DialogButton::Ok)
{
ret = true;
}
else
{
throw info(strFmt("@GLS104964"));//throw Global::error(strFmt("@GLS104964"));
}
}
next clicked();
}
}
Comments
Post a Comment