When you
link reports, you can associate data item values and prompts so that
the prompt window is bypassed for the target report and the target
report is automatically subset based on the values in the source report.
You can associate values and prompts in the
Set Up Destination
Report dialog box, which is explained in Step 6 here.
For multidimensional
crosstabulation tables, SAS Web Report Studio can pass the following
values to a prompt in a target relational report:
-
category values that are visible
in the table
-
group break or filter criteria,
if the data item is manually associated with a related prompt
For multidimensional reports only, you can also pass hidden data
item values to the prompts in a linked report. The hidden values can
be categories that are not visible in the table.
To link to an existing
report or stored process, complete these steps:
-
Start
with the steps described in
-
Select
the
Include report links check box to confirm
that you want to create a report link.
-
Select
a link destination of
An existing report or stored process.
-
Select
an existing report. The report name displays in the
Report field.
Report Linking Dialog Box for a Link to an Existing Report
Note: If the
Set Up Destination Report button is dimmed, then you
cannot add report links.
-
(Optional)
Add content to the
Tool-tip text field. The
default tooltip text is
Click to view linked content
.
-
If the
destination report contains multiple sections or prompts, then click
Set Up Destination Report to open the
Set
Up Destination Report dialog box and assign data items
in the source report to prompts in the target report.
If the
destination report contains multiple sections, the
Open
to section drop-down list contains the names of the sections
in the destination report. Select the section that you want to appear
when a user clicks to follow a link.
If the
destination report contains any prompts or if the report object in
your source report contains suitable data items, then the box contains
a drop-down list of
Data Items for each prompt
in the destination report. The data item that you select has to be
compatible with the prompt. Data items that are incompatible cannot
be assigned. For example, a character prompt for age groups, such
as child and adult, cannot accept numeric data item values, such as
5 or 35. For more information about compatibility between prompts
and data items,
see Defining Prompts in Report Linking. If you do not assign a data item value to each prompt,
the prompt window appears and you must confirm the current values
or enter new ones.
Note: You can select
the same data item value for multiple prompts.
If none
of the available items in the drop-down list provides the intended
value for a given prompt, then leave the drop-down list unchanged.
Set Up Destination Report Dialog Box
If you
get unexpected results in the target report, here are some potential
ways to remedy the situation:
-
If a table or graph in the target
report unexpectedly displays the message:
No
values were returned, then you can check the
prompt values that were actually used by clicking the
Refresh Data option. The prompt window for the current
section of the target report appears with the values that were actually
used. Sometimes the format of the values used by prompts can affect
the results. In such cases, you should verify that the formats of
the values delivered from the source report agree with the formats
expected by the prompts. For example, unexpected results could occur
if a target prompt expected values in uppercase and the source report
delivered the values in lowercase. You could simply correct the values
on the prompt screen. Alternatively, you could adjust the source
or target or both reports so that the values passed from the source
agree with the expectations for the target prompt or prompts.
-
If the prompt window unexpectedly
appears when you are linking to a target report and messages with
particular prompts indicate their values are invalid, then review
the set up of the source and target report. Here are some potential
inconsistencies you might encounter:
-
A prompt that allows only one value
is passed multiple values from a hidden data item in a source report.
-
A missing value is passed to a
prompt that does not allow missing values.
-
A value that is 10 characters long
is passed to a prompt that allows values with no more than 7 characters.
The following are special
considerations for linking text and image objects:
-
Text objects uniquely enable you
to create multiple report links, but the
Set Up Destination
Report button does not appear in the Report Linking dialog
box.
-
For image objects, if the destination
report has multiple sections or contains prompts, the
Set Up Destination Report button is available, but you
cannot specify the data items corresponding to prompts in the destination
report.
Click
OK to close the
Set Up Destination Report dialog box.
-
Click
OK to close the
Report Linking dialog box.