1. Script for access to control

    Article: AN0001896Updated:

    We can use script for allowing access to certain functionalities based on facts assessed by script. Below example hides button 'start_pc' to user, that does not have role 'workstation_admin'.

    Where to use this script: Script for record detail or list of records, Script in page detail

    function OnLoad()
    {
      if ( !OG.Person.IsUserInRole('worstation_admin'))
      {
        OGControlOperations['start_pc'].Visible = false;
      }
    }

×