A drill-through definition specifies a target for drill-through access, the conditions
under which the target is available (such as the scope), and how to run or open, and filter the
target.
In IBM®
Cognos® Analytics, a drill-through definition is associated
with a source package. The drill-through path defined in the drill-through definition is available
to any report based on the source package it is associated with. The target can be based on any
target package and can be stored anywhere. For example, all reports authored in the GO Data
Warehouse (analysis) sample package or in a folder linked to this package can access any
drill-through definition created in this package.
Note: You can define drill-through access in specific reports by setting up the drill-through
definition in the report instead of in the package, or restrict drill-through access by changing
report settings so that the report is unavailable as a drill-through target.
You can define drill-through definitions between reports created in the different studios, and
reports based on different packages and data sources.
The target report must exist before you start creating the drill-through definition.
Drill-through targets can be reports, analyses, report views, PowerCube packages, and queries.
Drill-through definitions support both dimensional and relational packages.
Before you begin
To run reports, or drill to targets that run reports in the delimited text (CSV), PDF, Microsoft Excel spreadsheet (XLS), or XML output formats, you
require the generate output capability for the specific format.
Procedure
- Check the drill-through target:
- Confirm that the drill-through users have access to the target.
- Hide the target from direct access if you want.
- If necessary, check what parameters exist in the target.
When a drill-through definition links
objects in different packages, you must consider the data types used in both the source and the
target object. Review the structure and values of data that you intend to pass in the drill-through,
and ensure that the created parameters are appropriate for your scenario, if you have defined
parameters, or that dynamic drill-through will work successfully.
- Click the Open menu icon
, and then click
.
- Navigate to the package for which you want to create the drill-through definition.
Tip: Type part of the package name in the search box above the list of items to quickly
find the package you want.
- Click the package name to open it.
- Click Create drill-through definition
Tip: If the Create drill-through definition link does not appear,
confirm that you are at the package level, and not in a folder in the package. Drill-through
definitions must be stored at the package level.
- Type a name for the drill-through definition.
- Type a description (optional), and then click Next.
- Follow the instructions on the page:
- In the Action section, specify how to open the target object when
the drill-through link is run and if you chose to run the report, in the
Format section, specify the format to run the report in.
Note: Users may be able to change the Action settings when they use the
drill-through link. If you are using bookmarks in the target, then you must select the action
View most recent report.
- In the Parameter values table, specify how to map the source
metadata to any parameters that exist in the target report or object.
For example, if you drill through between OLAP data sources, then members are mapped to each
other. If you drill through from an OLAP to a relational data source, then the source value (member)
is mapped to the query item name (value).
Usually, every parameter that exists in the target should be mapped to the source metadata. If
not, then the report user may be prompted for any missing values when the drill-through link is
used.
-
Click Map to metadata, or click the edit button
.
- In the screen that appears, select the metadata from the source to map to the target
parameter.
- If the source package is dimensional, you can select what property of the source metadata item
to use in the mapping. By default, the business key is used for a relational target, and the member
unique name is used for a dimensional target.
- Repeat for each parameter in the list.
- In the Display prompt pages section, specify when the prompt pages
will appear.
- In the screen that appears, select the metadata from the source to map to the target
parameter.
- If the source package is dimensional, you can select what property of the source metadata item
to use in the mapping. By default, the business key is used for a relational target, and the member
unique name is used for a dimensional target.
- Repeat for each parameter in the list.
You can set this action only when there are parameters in the target report and the target report
will be run. If you change the action to View most recent report, for
example, for bookmark references, the Display prompt pages property is
disabled because you will use a previously run report. If you choose to open the report directly in
Analysis Studio, then the Display prompt pages property is also disabled.
You specify prompt settings in Report Properties, Prompt for
Values.
- Click Finish.
- Run a report from the source package, and test the drill-through link.
Note: The drill-through definition is associated and stored with the source. Errors
related to the target are only generated when you run the drill-through links, not when you save the
drill-through definition.