I'm trying to extend the display method from the table "TrvExpTrans" and receiving an error during the build.
Error message
Display methods can take only optional arguments, other than the first argument which can be a table
Display method
public display boolean isEditable(boolean _checkUserAccess = true, boolean _splitLineTypeCheck = true)
{
if (_splitLineTypeCheck && this.SplitLineType == TrvExpSplitLineType::SplitHeader)
{
return false;
}
switch (this.ApprovalStatus)
{
case TrvAppStatus::Approved:
case TrvAppStatus::Cancelled:
case TrvAppStatus::Ledger:
case TrvAppStatus::Pending:
case TrvAppStatus::Submitted:
case TrvAppStatus::Ready:
case TrvAppStatus::None:
case TrvAppStatus::Matched:
return false;
}
return _checkUserAccess ? TrvAccessHelper::canCreateNewTransactions(this.CreatingWorker) : true;
}
COC Method
public display boolean isEditable(boolean _checkUserAccess, boolean _splitLineTypeCheck)
{
boolean ret;
ret = next isEditable(_checkUserAccess, _splitLineTypeCheck);
return ret;
}

Report
All responses (
Answers (