Version:
  1. Reading values from column

    Article: AN0001908 Displayed: 915x

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

  2.    ---
    Your rating:
    Rated by users: 0x
  3. Top
SearchTitle
×