Hello, here's a scenario, in the validatewrite method of a table, I check a field, if some conditions are not met, user should not be able to update the table, this works flawlessly, however the problem is, I also want to revert the value of a field to its original value, how can i achieve that?Because if the user updates multiple records in a grid and leaves the grid, the error message shows up and unless the user returns the values to their original values, he keeps getting the same error.
For example:
public boolean validateWrite()
{
boolean ret;
erm_ItemIdentQuotTable table;
select firstOnly ItemIdentQuot from table where table.QuotNo == this.QuotNo;
if (table.ItemIdentQuot == ItemIdentQuot::Created)
{
ret = super();
}
else
{
return checkFailed(strfmt("%1","You can only update newly created records"));
}
return ret;
}
*This post is locked for comments
I have the same question (0)