Filtering Metadata in the WebFOCUS Development Tools

In this section:

You can control which applications, files, fields, and field descriptions appear in WebFOCUS development tools like Managed Reporting or Developer Studio.

Note:


Top of page

x
Customization Overview

You can control the display of applications, files, fields, and field descriptions by placing FOCUS selection syntax (IF, WHERE commands) in FEX files that WebFOCUS includes when it requests a list of applications, files, or fields. You then declare variables that point to the FEX files containing the selection syntax.

WebFOCUS provides the following variables:

The variables can be set on either the WebFOCUS Client or the WebFOCUS Reporting Server:

Note: A variable set on the WebFOCUS Client overrides a variable set on the WebFOCUS Reporting Server.

The files containing syntax can be located anywhere on the server machine and may be given any name you choose. However, avoid names and directories with spaces. Placing the files outside of the root ibi directory is convenient for using them when you upgrade or reinstall. Examples in this document use the following directory:

C:\wfexcludes

If a variable is declared, the contents of its file are included when WebFOCUS requests a list of applications, files, or fields. If a variable is not declared, all applications, files, or fields are returned.

Note: If you are unfamiliar with FOCUS syntax, see the Creating Reports With WebFOCUS Language manual.


Top of page

x
Customizing the Display of Applications

How to:

The &&IBI_IF_APPS variable lets you specify a file that can limit which applications display in WebFOCUS Development tools. For example, you can stop the ibisamp directory from appearing in Developer Studio or Managed Reporting.

Developer Studio Desktop tree diagram



x
Procedure: How to Customize Which Applications Display
  1. Create a partial FEX file in a text editor containing only WHERE or IF selections on the value of the APPNAME attribute. You can use as many lines as needed.

    For example, create a file called excludeapps.fex and enter the following to hide the IBISAMP application:

    WHERE APPNAME NE 'ibisamp'

    Note: Be sure to use the correct case for the directory.

  2. Go to the following page on your Web server to run an ad hoc procedure to test your syntax:
    http://webserver/ibi_html/homepage/adhoc.htm
  3. Enter the following to test your file:
    APP ENABLE
    APP LIST HOLD
    TABLE FILE FOCAPPL
    PRINT APPNAME
    -INCLUDE path_to_file 
    END

    where:

    path_to_file

    Is the full path to the file on the WebFOCUS Reporting Server machine containing your syntax.

  4. Click Run.

    A list of desired applications appears if your syntax is correct. If not, troubleshoot accordingly.

  5. If your syntax is correct, edit edasprof.prf or site.wfs to declare and set the &&IBI_IF_APPS variable to the FEX file you just created.

    For example, in edasprof.prf:

    -SET &&IBI_IF_APPS='C:\wfexcludes\excludeapps.fex';

    Note: You can confirm the variable definition as explained in Troubleshooting Variable Settings.


Top of page

x
Customizing the Display of Files

How to:

The &&IBI_IF_FILE variable lets you specify a file that can limit which files display in WebFOCUS Development tools. For example, you can hide Master Files for sample data, like GGORDER, GGPROD, and GGSALES.

Browse Data dialog box



x
Procedure: How to Customize Which Files Display
  1. Create a partial FEX file in a text editor containing only WHERE or IF selections on the value of the NAME or REMARKS field. You can use as many lines as needed.

    For example, create a file called excludefiles.fex and enter the following to hide files that begin with gg*:

    WHERE NAME NOT LIKE 'GG%'

    Use uppercase for file names regardless of their case in the file system.

  2. Go to the following page on your Web server to run an ad hoc procedure to test your syntax:
    http://webserver/ibi_html/homepage/adhoc.htm
  3. Enter the following to test your file:
    SQL FMI SET FILECASE UPPER
    TABLE FILE SYSTABLE
    PRINT NAME
    -INCLUDE path_to_file 
    END

    where:

    path_to_file

    Is the full path to the file on the WebFOCUS Reporting Server machine containing your syntax.

  4. Click Run.

    A list of desired files appears if your syntax is correct. If not, troubleshoot accordingly.

  5. If your syntax is correct, edit edasprof.prf or site.wfs to declare and set the &&IBI_IF_FILE variable to the FEX file you just created.

    For example, in edasprof.prf:

    -SET &&IBI_IF_FILE='c:\wfexcludes\excludefiles.fex';

    Note: You can confirm the variable definition, as explained in Troubleshooting Variable Settings.


Top of page

x
Customizing the Display of Fields

How to:

The &&IBI_IF_FLDS variable lets you specify a file that can limit which fields display in WebFOCUS Development tools. You can hide fields containing sensitive data, undisplayable content (concatenated fields like an alpha for JOIN purposes), or intermediate fields (fields to calculate other fields (unsigned packed bytes)). For example, you can hide the DEALER_COST field in the sample car.foc data source.

WebFOCUS Development tools dialog box



x
Procedure: How to Customize Which Fields Display
  1. Create a partial FEX file in a text editor containing only WHERE or IF selections on the value of field attributes, such as NAME, ALIAS, DESCRIPTION, or USAGE. You can use as many lines as needed. Specific selections will apply to all files viewed through WebFOCUS development tools. To limit selections to specific files, use the TBNAME attribute.

    For example, create a file called excludefields.fex and enter the following to hide the DEALER_COST field of car.foc:

    WHERE NAME NE 'DEALER_COST'
  2. Go to the following page on your Web server to run an ad hoc procedure to test your syntax:
    http://webserver/ibi_html/homepage/adhoc.htm
  3. Enter syntax similar to the following to test your file:
    TABLE FILE SYSCOLUM
    PRINT NAME ALIAS COMPUTE DESCRIPTION/A3000 = REMARKS;
    -* any other fields needed
    IF TBNAME EQ testfile 
    ON TABLE HOLD AS WF$HOLD
    END
    TABLE FILE WF$HOLD
    PRINT testfield 
    -INCLUDE path_to_file 
    END

    where:

    testfile

    Is a Master File (not including the .mas extension) you want to test your field selection against. The case should match the case in the file system. For example:

    car

    testfield

    Is a field or fields you want to display in the test results. For example:

    NAME

    path_to_file

    Is the full path to the file on the WebFOCUS Reporting Server machine containing your syntax.

  4. Click Run.

    A list of desired fields appears if your syntax is correct. If not, troubleshoot accordingly.

  5. If your syntax is correct, edit edasprof.prf or site.wfs to declare and set the &&IBI_IF_FLDS variable to the FEX file you just created.

    For example, in edasprof.prf:

    -SET &&IBI_IF_FLDS='c:\wfexcludes\excludefields.fex';

    Note: You can confirm the variable definition as explained in Troubleshooting Variable Settings.


Top of page

x
Customizing the Display of External Descriptions

How to:

The &&IBI_EXTDESC variable lets you display field descriptions held in external files. For example, if instead of describing fields in the same table or Master File in which the fields appear, the descriptions might be stored in a separate table. You can use the &&IBI_EXTDESC variable to specify FOCUS syntax to join and display these descriptions in WebFOCUS Development tools.



x
Procedure: How to Display External Descriptions
  1. Create a partial FEX file in a text editor containing only syntax to JOIN and display the descriptions. You can use as many lines as needed.

    Refer to the Creating Reports With WebFOCUS Language manual for syntax necessary to JOIN and display the descriptions.

    In the following example, FIELDDESCX.DAT is an external file and each record is 'filename || fieldname' followed by a description:

    FILEDEF XXX DISK C:\FIELDDESCX.DAT
    DEFINE FILE WF$HOLD ADD
    FNFLD/A132 = FILENAME || NAME ;
    XDESCRIPTION/A3000 = DECODE FNFLD(XXX ELSE ' ');
    DESCRIPTION = IF XDESCRIPTION NE ' ' THEN XDESCRIPTION 
                  ELSE DESCRIPTION;
    END
  2. Go to the following page on your Web server to run an ad hoc procedure to test your syntax:
    http://webserver/ibi_html/homepage/adhoc.htm
  3. Enter syntax similar to the following to test your file:
    TABLE FILE SYSCOLUM
    PRINT FILENAME NAME ALIAS COMPUTE DESCRIPTION/A3000 = REMARKS;
    -* any other fields needed
    IF TBNAME EQ testfile 
    ON TABLE HOLD AS WF$HOLD
    END
    -INCLUDE path_to_file 
    TABLE FILE WF$HOLD
    PRINT NAME DESCRIPTION/A80
    END

    where:

    testfile

    Is a Master File (not including the .mas extension) you want to test your field selection against. The case should match the case in the file system. For example:

    car

    path_to_file

    Is the full path to the file on the WebFOCUS Reporting Server machine containing your syntax.

  4. Click Run.

    A list of desired fields and descriptions appear if your syntax is correct. If not, troubleshoot accordingly.

  5. Edit edasprof.prf or site.wfs to declare and set the &&IBI_EXTDESC variable to the FEX file you just created.

    For example, in edasprof.prf:

    -SET &&IBI_EXTDESC='c:\wfexcludes\externaldesc.fex'

    Note: You can confirm the variable definition as explained in Troubleshooting Variable Settings.


Top of page

x
Troubleshooting Variable Settings

To test whether a variable has been properly declared:

  1. Go to the following page on your Web server to run an ad hoc procedure:
    http://webserver/ibi_html/homepage/adhoc.htm
  2. Enter the following to display all declared variables:
    ? &&
  3. Click Run.

    A page appears showing any declared variables.

If no variables appear:

If variables appear:


WebFOCUS