Skip to main content

Make report columns hidden by default

Bravura Security Fabric allows you to make columns hidden by default in any report that is available in the application; end-users can display the columns at any time via the [Show / Hide columns] menu.

To hide a column by default:

  1. Open the reportHeaderVisibilityConfig.js file located in the \<instance>\design\src\js\ directory.

  2. Modify the defaultReportColumnVisibility variable using the following format:

    <report exec name>: [list of columns to hide]

    For example:

    var defaultReportColumnVisibility = {
    ACCOUNT: [angular.language._NPHPSA_USER_ID___, angular.language.C_TGROUP],
    MEMBERSHIP: [angular.language._NPHPSA_GROUPID__,angular.language.
    _NPHIDC_GROUP_DESC,’Path’]};

    You can use the column names as they appear in the report, but if other languages are installed for the application, you can use the KVG language tags. ACCOUNT and MEMBERSHIP are IDs of reports and can be obtained by calling the command from browser console: $('div[data-name="ReportInputTable"]').attr('id').

  3. Save the file and run the following two commands:

    make.bat default en-us
    make.bat install default en-us
  4. Test the result by opening the report specified in the reportHeaderVisibilityConfig.js file.