RE: How to make row non-editable with workflow
Hi Pooja,
If you go into the methods called, you can see the logic. To simplify this, you can take a look at editAllowed method in Tables\PurchTable. This method checks if the PurchTable record DocumentState is "In review" and returns false if it is.
You can try something similar for your table. This is a sample code you can try this the data source active method
int active()
{
boolean editRecord = true;
if (table1.WorkflowStatus == WorkflowStatus::InReview)
{
editRecord = false;
}
table1_ds.allowEdit(editRecord);
ret = super()
}