1. Script for access to control

    Artikel: AN0001896Aktualisiert:
    Die vorgegebene Sprachenversion vom Artikeltext wird angezeigt, weil es kein Text von der ausgewählten Sprache und Version gibt.

    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;
      }
    }

×