1. Reading values from column

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

    If we have to respond in the record detail to a value in column, we have to read it by means of object OGColumns.
    The following script hides columns incident or problem if they do not contain any value.

    Where to use this script: Class detail: Script for record detail

    function OnPreRender()
    {
     var cinc = OGColumns['incident'];
     var cpro = OGColumns['problem'];
     cinc.Visible = !(cinc.ColumnUI != null && ( cinc.ColumnUI.GetData() == null || cinc.ColumnUI.GetData().Count == 0));
     cpro.Visible = !(cpro.ColumnUI != null && ( cpro.ColumnUI.GetData() == null || cpro.ColumnUI.GetData().Count == 0));
    }

×