Article: AN0001889Updated:
Hiding columns at creation of the record
function OnAfterLoadColumns()
{
if ( OGDataRowId == null)
{
OGColumns.GetByCode('approved-by').Visible = false;
OGColumns.GetByCode('status').Visible = false;
}
}
Mandatory column at record creation
-
Create a rule Before existing record save.
-
Enter followig expression into the Script for condition with the given column: OGActualDataRow['project'] == null
-
Enter into the Error message e.g. "You have to select Project before saving the record"