ObjectGears Help

           
Forum   ObjectGears (Version: 1.6.0.0)

Skripts for record detail

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

  1. Create a rule Before existing record save.
  2. Enter followig expression into the Script for condition with the given column: OGActualDataRow['project'] == null
  3. Enter into the Error message e.g. "You have to select Project before saving the record"
This website is using cookies files to provide services and analyse visits. You agree with that by using this website.     Further information