Viewing and Editing Synonym Attributes

Topics:

How to:

Reference:

The Metadata canvas enables you to view and edit the field attributes in a synonym. For example, a geographical field may have a role attribute that you want to change. You can do this using the Metadata canvas. Then, all subsequent reports derived from the synonym will include the edited geographical role.

Procedure: How to View and Edit Synonym Attributes

To view and edit synonym attributes:

  1. Double-click a synonym, or right-click it and select Open.

    The Metadata canvas opens to the Field View tab, which shows a hierarchy of segments and columns on the left, with the attributes and values of the selected item on the right.

    The attributes available depend on the type of synonym.

    The values for Display Name (Title), Format, Expression, Description, and Nulls are viewable in the hierarchy with the columns. To edit these values, use the corresponding attribute fields in the Properties panel on the right-hand side of the Metadata canvas.

  2. You can change the attribute values by typing in new values or by using the drop-down menus and check boxes.

    The Properties panel does not let you make any changes that would render the synonym unusable. Therefore, you cannot edit any value field that is highlighted gray. In addition, if a change does not have proper syntax or format applied, the field may appear in red text. Messages and warnings appear if you try to save a file that contains an error.

  3. Save changes by clicking Save from the Quick Access Toolbar.

    Note: You can multi-select fields to change attributes for multiple fields in a single operation. The display changes to show only those attributes that can be changed.

  4. Close the Metadata canvas.

Note: If you close the Metadata canvas without saving your changes, you are prompted to do so.

Reference: File Attributes Summary

Synonyms can have the following file attributes:

General
SUFFIX

Identifies the type of synonym or data source.

MFD_PROFILE

Identifies the name of the FOCEXEC that will be executed before running a request based on the Master File.

FDEFCENT

Defines the default century value, specifying a century number for handling cross-century dates.

Note: Use the default setting (0) unless you wish to retrieve data from an earlier century (for example, 19xx).

FYRTHRESH

Defines the base years, to represent the lowest year to which the century value applies (FDEFCENT).

Note: Use the default setting (0) unless you wish to retrieve data from an earlier century (for example, 19xx).

REMARKS

Enables you to include descriptive information at the file level and specify multiple language descriptions for the synonym. Remarks are displayed along with the file name during reporting.

DATASET

Identifies the location of the data source to be used in the file name, including the extension and the location of the data file.

Note: The attributes available depend on the type of synonym.

Codepage
CODEPAGE

Defines the language to use for the synonym.

Note: Information about the attribute that has focus is displayed at the bottom of the attribute list. In this case, an explanation of the REMARKS attribute appears.

Reference: Segment Attributes Summary

If a synonym segment is selected, the attributes listed below are available.

Note: Information about the attribute that has focus is displayed at the bottom of the attribute list.

General
SEGMENT

Is the name of the segment.

ENCRYPT

Check this box to scramble field values in the current segment in order to protect it from unauthorized examination.

SEGTYPE

Specifies the type of relationship that a segment has to its parent, and indicates which of the segment fields are key fields and in what order they are sorted.

Type. Identify the segment type and sorting options from the Type drop-down list.

Keys. Records are sorted in a data source by key fields. Enter the names of key fields that you want to use for sorting. For example, no two employees can have the same employee ID number, so you can use that field as the key. A segment instance can have more than one field that makes up the key. That is, two or more field values may be used to distinguish records.

Miscellaneous
SEGSUF

SEGSUF is used when part of the data source being described by the synonym is of a different data source type than that declared for the entire structure.

DESCRIPTION

Contains a description or comments about the segment.

SEG_TITLE_PREFIX

An optional attribute that enables you to provide the title prefix for the segment fields that appear in reports. You can split the text across up to five separate title lines by separating the lines with a comma.

CRFILENAME

Is the name of the cross-referenced data source.

CRSEGNAME

Is the name of the cross-referenced segment.

CRKEY

Identifies the common join field for the cross-referenced segment.

Note: These cross-referenced values (CRFilename, CRSegname, CRKey) are available for WebFOCUS data sources.

OCCURS

Describes repeating fields or groups of fields in a data source. OCCURS can be based on an integer value showing the number of occurrences (from 1 to 4095), a field name, which names a field in the parent segment or a virtual field in an ancestor segment whose integer value contains the number of occurrences of the descendant segment, or a variable, which indicates that the number of occurrences varies from record to record.

POSITION

Specifies the name of the field in the parent segment that specifies the starting position and overall length of the multiply occurring fields.

Adapter Specific

Adapter Specific fields are shown if an Access File component has been generated with the synonym.

CARDINALITY

Defines how many members of a dimension can be retrieved for a report.

TABLENAME

Identifies the table or view. It may contain the owner ID, as well as the table name. For some synonyms, it must also contain the data source name. This value may be a variable.

CONNECTION

Indicates the host server or data source for synonyms. This value may be a variable.

KEY

Identifies the names of the columns that constitute the primary key.

KEYORDER

Identifies the logical sort sequence of data by the primary key.

WRITE

Specifies whether write operations are allowed against the table.

FOREIGN_KEY

Specifies the type of table persistence and related table properties. This is optional for database management systems that support volatile tables, and required otherwise.

DBSPACE

Identifies the storage area in which the table resides.

PERSISTENCE

Specifies the type of table persistence and related table properties. This is optional for database management systems that support volatile tables, and required otherwise.

Note: The attributes available depend on the type of synonym.

Reference: Column/Field Attribute Summary

If a column or field in a synonym is selected, the attributes listed below are available. The available attributes depend on the type of synonym. Information about the attribute that has focus is displayed at the bottom of the attribute list.

General
FIELDNAME

Is the name of the column.

ALIAS

Assigns an alternative name for a column, or the real column name for a DBMS synonym.

For file data sources, a special reserved ALIAS of INSTANCE means the associated FIELD will show the name of the file when it is read.

When a FIELDNAME of RECTYPE is used the ALIAS contains the value that identifies the record type.

KEY COMPONENT

Indicates whether the field is part of the primary key for the table.

KEY SEQUENCE NUMBER

Indicates the sequence number of the field in the primary key for the table.

MISSING

Controls how null data is handled, that is, if no transaction value is supplied.

TITLE

Supplies a title to replace the column name that is normally used in reports and enables you to specify multiple language titles for the column or field.

ACTUAL

Describes the type and length of data as it is actually stored in the data source.

USAGE

Describes the data type and format for the column for usage or display.

Note: Additional attributes, DEFCENT and YRTHRESH, are available if the Usage field is set to Date, Time, or DateTime (Timestamp) format. Use these attributes to enter the century and year threshold values for the column or field.

Miscellaneous
DESCRIPTION

Contains a description or comments about the column or field.

ACCEPT

Specifies criteria for validating data.

  • OR enables you to specify an acceptable value.
  • SYNONYM enables you to specify a synonym as the source of the accept list.
  • FOCEXEC enables you to specify a FOCEXEC as the source of the accept list.
  • FROM-TO enables you to specify a range of acceptable value fields.
  • FIND enables you to supply file and field names to instruct where to search for a data source and for a list of acceptable values. You supply the field name of the data field for which the validation criteria are being assigned, the file name of the target WebFOCUS data source where the field can be found, and the field name of the target data field that contains the validation criteria.

    FIND is only available for WebFOCUS data sources and does not apply to OLAP-enabled synonyms. Also note that, in the Maintain environment, FIND is not supported when developing a synonym.

WITHIN

Contains the name of a field to be included in a dimension.

PROPERTY

Describes which hierarchy property the column represents.

REFERENCE

Points to the field that is the unique identifier for the hierarchy.

FIELDTYPE
  • I - Index identifies an indexed column in a WebFOCUS data source.
  • R - Readonly indicates a read-only column. This setting is useful for columns that are automatically assigned a value by the RDBMS.
ACCESS_PROPERTY

Specifies access options for the column data.

  • INTERNAL defines a column that does not appear in sample data or in the list of available columns. Restricts the field from showing in any of the field Lists in the reporting tools.
  • NEED_VALUE defines a column that requires a value to access the data.
  • Select By defines a column by value, range, or multi-values.
  • AUTHRESP defines a column that describes the result of an authentication operation. Correct response values must be provided in the ACCEPT attribute (using the OR predicate if more than one value is acceptable).
  • AUTHTOKEN defines a column that contains a response token to be passed as an input value to the operation to be executed.
HELPMESSAGE

Appends a help message to a column.

This attribute is not used by WebFOCUS.

GEOGRAPHIC_ROLE

Describes the geographic role of the column.

TEMPORAL_PROPERTY

Inserts virtual fields in the Master File to show how selected totals progressed through a time period for specified intervals.

USE_STYLE

Are the styles (for example, font and color) to apply to the field.

The attributes available depend on the type of synonym.

Adapter Specific

AUTOINCREMENT

Indicates that the field is automatically incremented by the relational database when rows are inserted. This option is only available for selected relational databases. When selected, the field must also be identified with a field type of read-only.

The following attributes are only used if AUTOINCREMENT is checked.

  • START. Indicates the starting value for this AUTOINCREMENT field. If not specified, 1 is used.
  • INCREMENT. Indicates the increment value for this field. If not specified, 1 is used.
  • SEQUENCE. Is the name of the corresponding database SEQUENCE object for this field. This option is only available for ORACLE tables.

Setting Up Multilingual Titles and Descriptions

How to:

You can open a synonym in the Metadata canvas and provide text for the title, caption, and description in multiple languages. These descriptions appear in the specified language in reports generated against the synonym.

The Multilingual Titles dialog box is available from the Remarks, Title, and Description attribute value fields in the Metadata canvas.

Note: The attributes available depend on the type of synonym.

Procedure: How to Set Up Multilingual Titles and Descriptions

  1. From the Projects or Data Servers area, double-click the Master File.

    The Master File opens to the Field View tab in the Metadata canvas.

  2. To add multilingual text:
    • For Remarks, click the root level of the Master File (application/filename) on the left.
    • For Title, click a column from the Master File hierarchy of columns on the left.
    • For Descriptions, click a column, segment, or custom field from the Master File hierarchy of fields on the left.

    The corresponding attributes and values appear on the right.

  3. Click the browse (...) button at the end of the value field for Remarks, Title, or Description.

    The Multilingual dialog box opens.

  4. From the Specify for different languages drop-down list, choose the language in which you want the titles or remarks (descriptions) to be displayed.
  5. Click Add.

    The selected language is added below the default language (which is determined by your code page selection).

  6. Type a description or title in the Text field.
  7. You may add, edit, or delete additional titles or descriptions.

    To add an additional language:

    1. Select another language from the drop-down list.
    2. Click Add.
    3. Type a title or description for the field.

    To edit an existing specified title or description:

    1. Select the title or description and click Edit.

      You may also double-click the title.

    2. Manually type a title or description name.

    To delete a specified title:

    1. Select the title or description and language to be deleted.
    2. Click Delete.
  8. Click OK to close the Multilingual Remarks dialog box.
  9. Click Save from the File menu to save the synonym.

WebFOCUS

Feedback