Form control clicked event COC on form control
[ExtensionOf(formControlStr(WHSLoadPlanningListPage, btnInboundShipConfirm))]
Final class WHSLoadPlanningListPageFrm_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