1. Response to change in a record

    Article: AN0001918Updated:

    Following script evaluates condition as true if the there was a change in column escalate and it contains newly value TRUE.

    Where to use this script: Class rule: Script before saving an existing record
    var dr = OGActualDataRow;
    if ( dr.IsChange('escalate') && dr['escalate'])
    {
      …
    }

    Below script will set in column approved value FALSE, if there was a change in columns comment or date.

    Where to use this script: Class rule: Script before saving an existing record
    var dr = OGActualDataRow;
    if ( dr.IsChange('comment') || dr.IsChange('date'))
    {
        dr['approved'] = false;
    }
     

×