Topics: |
How to: |
A synonym defines a unique logical name (also known as an alias) for each web services operation. Synonyms are useful because they insulate client applications from changes to the location and identity of a request. You can move or rename a request without modifying the client applications that use it. You need to make only one change, redefining the request synonym on the server. Synonyms provide support for the extended metadata features of the server, such as virtual fields and security mechanisms. Creating a synonym generates a Master File and an Access File.
Often, a synonym already exists on the server, and reporting can begin at once. However, if the synonym you require does not exist on the server, an authorized server or application administrator can create it directly using the Metadata canvas in App Studio.
To begin creating a synonym, you use the Data Source Definition Wizard, which guides you through the steps that you need to follow to open a recently used synonym, create a new synonym, or edit an existing synonym. You use the Metadata canvas, and the available tab and panels, to develop your synonym. This enables you to explore DBMS catalogs and select the objects for which you wish to create synonyms. The Metadata canvas prompts for the information it needs to create a synonym for a particular data source and stores the generated synonym on the server.
In order to generate a synonym, you must be authorized to use the data against which you plan to report and you must have configured an adapter to access that type of data. When you begin to create a synonym, App Studio opens the Select adapter to configure or Select connection to create synonym window. The option to create the synonym becomes available only after the adapter is successfully configured.
Once you have generated a synonym, you can report against the synonym. In many instances, the configured adapter and the generated synonym are all you need to access your data and create reports and graphs.
However, you may wish to enhance the synonym in order to implement particular capabilities that are supported in the WebFOCUS data description language. To do this, you can use the Metadata canvas.
When you use the Metadata canvas, there is no need to know the data description language. All viewable and editable attributes of the synonym components display. If you make changes to the generated synonym, the Metadata canvas validates your entries and displays messages if they violate the underlying syntax of the data description language.
Note: If you are comfortable working directly with syntax, you can open the synonym components in a text editor. For detailed information about the underlying syntax, see the Describing Data With WebFOCUS Language manual.
The following are some of the attributes you might want to add to the synonym to enhance your data access and reporting capabilities. You can:
In App Studio, you create new synonyms and edit existing synonyms using the Metadata canvas. You can access the Metadata canvas through the Data command, in the Content group, on the Home tab.
This launches the Data Source Definition Wizard, where you can open a recently used Master File, create a new Master File, or edit an existing Master File. The Data Source Definition Wizard is shown in the following image.
The Metadata canvas opens, as shown in the following image.
Note: The examples in this document use a multi-fact structure containing multiple Fact tables that have corresponding Dimensions described in the Master File.
The Metadata canvas displays the Metadata tab, which contains all the commands necessary to build your synonym.
The Metadata tab contains groups and commands that provide quick access to commonly performed functions while working in the Metadata canvas. You can use the Metadata tab to undo or redo actions, manipulate selections of data, find and edit text, switch to different view tabs, insert notes, run different reports, and switch between different view modes. The behavior of the command is determined by the selected object. Therefore, certain tab components may be inactive. The Metadata tab is shown in the following image.
You can undo and redo actions. The Undo/Redo group is shown in the following image.
The commands are:
Undoes the last action.
Restores a previously undone action.
You can delete, cut, copy, and paste sections from the canvas. The Clipboard group is shown in the following image.
The commands are:
Deletes your selection.
Cuts your selection.
Copies your selection.
Pastes from your clipboard to the designated area.
You can find specific text, select the entire canvas, replace specific text, move to a specific point in the canvas, apply case formatting to text, and add comments. The Editing group is shown in the following image.
The commands are:
Finds specified text.
Finds the next instance of specified text.
Finds the previous instance of specified text.
Selects the entire canvas.
Replaces the specified text with different text.
Moves your view of the canvas to the specified area.
Inverts the case of the selected text.
Upper case the selected text.
Lower case the selected text.
Comment the selected text.
Uncomment the selected text.
You can switch between the different views and switch Aerial view on or off. The View group is shown in the following image.
The commands are:
Switches to the Field View. The Field View shows a list of objects on the left, with the attributes and values of the selected item on the right.
Switches to the Segment View. The Segment View shows the segments that the synonym contains. The Segment View shows a list of objects on the left, with the attributes and values of the selected item on the right.
Switches to the List View. The List View shows a list of objects on the left, with the attributes and values of the selected item on the right.
When you right-click a column heading in the List View, a shortcut menu provides options to sort the display based on ascending or descending column values. The display can be sorted by any column.
Switches to the Modeling View.
Switches to the Text View tab.
You can print the Master File code by selecting Print from the Application menu, performing search operations, and making changes, if necessary.
Switches to the Access File Text View tab.
The Access File Text View shows the description of the Access File for a synonym, which is used to access the database.
Note: You can print the Access File code by selecting Print from the Application menu, performing search operations, and making changes, if necessary.
Switches between showing and hiding Aerial view. This view is only available when in the Modeling View tab.
You can insert a node. The Insert group is shown in the following image.
The commands are:
Enables you to insert one of the following:
The reference is a pointer to the source synonym using the synonym as a child. If you subsequently make changes to the source synonym, reopening the current synonym will reflect those changes.
The reference is a pointer to the source synonym using the synonym as a root. If you subsequently make changes to the source synonym, reopening the current synonym will reflect those changes.
Adds a static copy of an existing synonym to the current synonym. If you subsequently make changes to the source synonym, the current synonym will not reflect those changes.
Enables you to create and add a new synonym to the current synonym using the Create Synonym dialog box.
Adds a synonym that must be coded manually.
Adds DBA security to the segment.
Adds a general column to the segment.
Adds a virtual or defined column to the segment.
Adds a filter to the segment.
Adds a calculated value to the file.
Adds a Sort Objects folder and a sort object. This option is available only if Support extended options is selected.
Adds a Variables folder and a variable to the segment.
Adds a Styles folder and a style object. This option is available only if Support extended options is selected.
Adds a subquery to the fields list.
You can run a Sample Data report, Data Profiling report, or Impact Analysis report. The Reports group is shown in the following image.
The commands are:
Enables you to view and refresh sample data for the selected segment or synonym.
Runs a Data Profiling report, which provides the data characteristics for synonym columns. The Statistics, Count, and Key Analysis options are available.
Runs an Impact Analysis report for the particular column in the workspace. An Impact Analysis report identifies the procedures that access a Master File or column within a Master File.
You can switch between showing or hiding the Properties, DBA, and Business View panels. You can also recreate the default Business View structure and edit the user options. The Tools group is shown in the following image.
The commands are:
Switches between showing and hiding the Properties panel.
Generates a simple Data Flow without using the Data Flow designer. For the selected tables, all rows and columns are copied to new tables.
Although no transformations or where conditions are generated, the Data Flow can still be opened as such and additional criteria can be added.
Switches between showing and hiding the DBA panel.
Switches between showing and hiding the Business View panel. Enables you to create a Business View and a custom Master File that can use selected columns from the original synonym. In addition, you can customize field names, titles, and descriptions.
Allows you to edit the user options. When you click Options from the Tools Group, the Options dialog box appears. It enables you to set preferences and customize the look of the Metadata canvas.
Reference: |
Click the Options button in the Tools group to open the Options dialog box.
When you click Options from the Tools group, the options dialog box appears. It enables you to set preferences and customize the look of the Metadata Canvas.
The Synonym Editor settings page has the following fields and options:
If this check box is selected, an application directory name is used when you select a synonym name for both referencing an existing synonym and a transformation with db_lookup.
Specifies the maximum number of undo and redo operations allowed in the Synonym Editor.
If this check box is selected, both the Sort objects and Styles folders appear when you edit a synonym.
If this check box is selected, this option will be available in the shortcut menu when a synonym or segment name is selected.
Inserts a reference to the selected table and any tables that the base synonym references through foreign keys.
If you select or drag multiple or individual tables while in Modeling View, they will be automatically arranged for you.
If this check box is selected, it controls whether or not columns in parent segments are displayed in the Join Editor for a cluster join or a synonym that references or includes, other synonyms.
This information is not yet available.
Sets the default Join type.
Allows you to adjust the MISSING attribute.
Allows you to set colors for connector lines in the Modeling View.
Default. Changes the color lines in the Modeling View.
Highlighted. Changes the color of the highlighted lines in the Modeling View.
No keys. Changes the color of lines with no keys in the modeling view.
Restores the default colors.
The Format pane is available from the Options dialog box. To open the Options dialog box, select Options from the Tools group. Expand the General node, and select Format.
The Fonts section has the following fields and options:
Allows you to set the font for text in the process flow workspace, reports, text views, and log views.
Launches a dialog box for specifying font settings.
Restores the default fonts.
The Column Management pane is available from the Options dialog box. To open the Options dialog box, select Options from the Tools group. Expand the General node, and select Column Management.
Column Management user preferences enable you to choose which columns to display on the grids for transformations, column selection, joins, and sorts. You can also set the column display order. The settings apply to all column-related dialog boxes.
The Column Management pane has the following fields and options:
Lists the column-related dialog boxes that can be customized. Expanding a folder will display check boxes that can be used to add columns to each dialog box.
Restores the default values.
Controls the information that appears in trees and grids. The available options are Name, Title, Description, and Alias. If no Title, Description, or Alias exists, the display will default to the Name.
Note: It is recommended that you use Title when working with Business Views.
Controls how functions are identified on the functions tab in the calculators. By default, the function syntax is displayed. It can be changed to a short description, which displays a brief description of what the function does instead.
Indicates whether to qualify field names with the segment name in which they reside for duplicate field names only or always.
Expand any of the available Customize column display options to see default settings. Not all columns are on every grid. The following columns can be added:
Assigns an alternative name for a column or the real column name for a DBMS synonym.
Indicates the application where the synonym resides.
Shows the parent segment in the base synonym.
Indicates the adapter connection name used.
Indicates the date the synonym was created.
Indicates when the synonym was last modified.
Is a description or comments about the column.
Is the expression for the column.
Indicates the suffix (data source type) of the synonym.
Indicates that a column is an index (I) or is read-only.
Is the type and length of a column data as stored.
Indicates the name of the function.
Describes the geographic role of the column.
Indicates that the synonym includes foreign keys.
Indicates an index column.
Indicates the condition for the join.
Indicates the parent of the join.
Out of the candidate list, indicates the strongest candidate or candidates for insertion.
Indicates the strategy for the join.
Indicates whether you can join to the column.
Indicates the keys in the synonym.
Is the column length.
Indicates the column name.
Indicates whether or not the column can contain null data.
Indicates the number of segments in the synonym.
Indicates the order of the column in the segment.
Indicates the parent or parents on the active Metadata canvas.
Indicates a prefix for the column.
Indicates the primary key for the synonym.
Indicates whether the column is an attribute or a measure.
Indicates the actual name of the table or the physical file name.
Indicate a reference for the column to an index column.
Is the maximum number of digits to the right of the decimal.
Used for processing slowly changing dimensions.
Indicates the segment name.
Indicates the sequence number of the field within the key.
Indicates the size of the synonym.
Indicates the source of the synonym.
Indicates how SQL is converted.
Is the synonym that contains the column.
Supplies a title to replace the column name normally used in reports.
Is the type of object in an application directory.
Run Options user preferences include determining the number of rows and columns to retrieve, as well as the default format when sampling data.
The Run Options settings pane has the following fields and options:
Sets the number of rows retrieved to produce sample data when testing transformations or SQL. The default is 50.
Sets the number of columns retrieved to produce sample data when testing transformations or SQL. The default is to retrieve all columns (with a highest value setting of 999999).
Sets the format of reports for retrieving sample data when testing transformations or SQL. The default is Default. The following report formats are available:
Sets the number of DBMS-related errors allowed before the server stops running the procedure.
WebFOCUS | |
Feedback |