Managing Metadata for Excel (via Direct Retrieval)

Topics:

When the server accesses a data source, it needs to know how to interpret the data stored there. For each data source the server will access, you create a synonym that describes the structure of the data source and the server mapping of the data types.

Creating Synonyms

How to:

Synonyms define unique names (or aliases) for each Excel worksheet that is accessible from the server. Synonyms are useful because they hide the underlying data source location and identity from client applications. They also provide support for extended metadata features of the server, such as virtual fields and additional security mechanisms.

Using synonyms allows an object to be moved or renamed while allowing client applications to continue functioning without modification. The only modification required is a redefinition of the synonym on the server. The result of creating a synonym is a Master File that represents the server metadata.

Note that certain settings can affect synonym creation. For more information on the adapter settings, see Changing Adapter Settings.

Procedure: How to Create a Synonym

To create a synonym, you must have previously configured the adapter. You can create a synonym from the Applications or Adapters pages of the Web Console.

  1. From the Web Console sidebar, click Connect to Data.

    The Adapters page opens.

  2. Right-click a connection and click Show Files.

    A file picker dialog box opens.

  3. Navigate to the application and Excel file for which you want to create the synonym and Click OK.

    The Select Excel Worksheets page opens, as shown in the following image.

  4. Enter or select values for the following parameters.
    Scan All Rows

    If checked, scans all rows to determine data types and lengths.

    Row Scan Limit

    Specifies the maximum number of rows to scan to determine data types and lengths. The default value is 5000.

    Extend Character Length

    Is a percentage to add to the characters lengths to compensate for a partial scan. The default value is 25.

    Missing Value

    Enter a string to indicate a missing value.

    Column format recognition

    Can be Loose, to use the row scan limit to determine types and lengths, or Strict, to determine data type using the first row and the lengths using the row scan limit. The default value is Loose.

    Number of header rows

    Enter the number of header rows containing column names. The default value is 1.

    Add RowID Column

    If checked, adds a row number for each spreadsheet row.

    Customize data type mappings

    If checked, opens additional fields for decomposing date fields, adding geographic roles, and selecting the data type for numeric fields and for alphanumeric fields.

    Application

    Enter an application name or click the ellipsis (...) to navigate to the application for the synonym.

    Prefix

    Assign a prefix to the synonym names.

    Suffix

    Assign a suffix to the synonym names.

    Workbook

    Select the workbooks for which synonyms are to be created. You can change the synonym name by selecting the default name and typing a new name.

  5. Click Create Base Synonyms.

WebFOCUS

Feedback