Friday, January 24, 2014

Workflow Event hnadler in class of SalesCreditLimitApprovalEvent Handler Method : Returned

//Workflow Event hnadler in class of SalesCreditLimitApprovalEvent Handler
Method : Returned

public void returned(WorkflowElementEventArgs _workflowElementEventArgs)
{
SalesTable SalesTable;
ttsbegin;
select forupdate SalesTable
where SalesTable.RecId ==_workflowElementEventArgs.parmWorkflowContext().parmRecId();
SalesTable.CreditLimitApprovalStatus = SalesCreditLimitApprovalStatus::Rejected;
SalesTable.update();
ttscommit;
}

No comments:

Post a Comment

Search hierarchy for a match (TableALLGroup) X++

  Table1 ppt;  select firstonly ppt  order ItemCode, ItemRelation, AccountCode, AccountRelation where      (ppt.ItemCode == TableGroupAll::T...