WebFOCUS Online Help > Managed Reporting Developer > Creating Reporting Objects > Creating and Customizing a Join in the Browser
In this section: How to: Reference: |
The following table describes the icons used to represent different data types in the Master File fields list in the Join tool:
Icon |
Description |
---|---|
Represents an alphanumeric data type. | |
Represents a numeric data type. | |
Represents a date data type. |
After you have at least two data sources in the Join tool window, you can create the links between the data sources. The data source from which you drag a field becomes the host file and the data source you link to becomes the cross-referenced file. If you are using a FOCUS data source, index field names are highlighted in blue to identify fields that are indexed. The Join tool supports a maximum of 63 joins.
You can also create inner and outer joins with single or multiple instances.
Note: When joining two FOCUS data sources, the cross-referenced file field must be indexed.
The following image shows the Join tool window containing two data sources with CATEGORY as the index field.
The Join tool represents a join by displaying a connector line with a single arrow from the field in the host file to the field in the cross-referenced file. The Join tool also displays a red button to the left of the linked field in the host file and displays a blue button to the left of the linked field in the cross-referenced file. These buttons provide a quick way to identify host and cross-referenced files.
Note: Click Run to validate the syntax.
The Reporting Object window opens.
The Join tool window opens and displays the data source associated with the Reporting Object.
The Add Master(s) dialog box opens.
WebFOCUS adds the field list for the selected data source to the Join tool window.
The Join tool displays the connector line between the linked fields and the red and blue buttons next to the linked fields.
To link fields other than those indicated by the Join tool, right-click the connector line and select Delete from the Link Properties dialog box. You can then follow the directions in Step 5 to link the fields you want.
If you have finished working with the components of the Reporting Object, remember to click Done in the Reporting Object window to save the changes.
Note: Syntax and error checking are not performed on the commands you enter until the Reporting Object is executed.
The Join Properties window opens.
FOC214 MORE THAN 64 SEGMENTS OR 189 SEGMENTS + INDEXES DESCRIBED.
There is an option in the Managed Reporting Join tool Applet that enables you to automatically arrange the files that currently display in the tool. This is useful when you add and remove files and there is extra space.
To reorder files, in the Applet Join
toolbar, click the
Auto Arrange
Master Files
icon.
You use the Join Properties dialog box to view the actual WebFOCUS code that defines a join, create single instance (unique) joins, rename the join, or delete the join.
The Join tool assigns a unique default name to each join you create in a Reporting Object. The default names are J1 for the first join, J2 for the second, J3 for the third, and so on. You use these names to access a Join Properties dialog box.
The following image shows the Join Properties dialog box containing the name of the created join and the WebFOCUS syntax for the join.
The Join Properties dialog box opens.
Note: Alternatively, you can change the join name from the Link Properties dialog box. You can access this dialog box by right-clicking the arrow in the join connector line in the Join tool window.
The Link Properties dialog box opens.
The Join tool deletes the link and you return to the Join tool window. Notice that the Join tool removed the join connector line and the red and blue buttons associated with the join.
WebFOCUS |