Hi All,
I want to do one validation before approve the workflow.
Example:
In my table I have a field called posted. So my validation is, if the record is posted then only system should allow to approve.
I tried to disable the workflow in form datasource active method but not worked.
public int active()
{
int ret;
ret = super();
if (TableA.Posted == NoYes::Yes)
{
element.design().workflowEnabled(true);
}
else
{
element.design().workflowEnabled(false);
}
return ret;
}
where can we write the code for this.
Either we can throw validation when we do approve or disable the approve button until the condition satisfies whatever is possible.