If you open documents from different widgets on a page,
the Viewer widget by default opens each document in a separate tab.
To better distinguish the documents that are opened from different
widgets, you can place multiple Viewer widgets on the page. You then
wire the widgets to display documents in specific Viewer widgets.
Procedure
In the following steps, assume that a page contains a
Content List widget and a Case Information widget with the Documents
tab enabled. To display the documents from each widget in a different
instance of the Viewer widget, follow these steps:
-
Open the page that contains the Content List widget and
Case Information widget in Page Designer.
-
Drag two Viewer widgets onto the page.
Tip: There is no label to distinguish the Viewer widgets in Case Client. Therefore, place each
Viewer widget on the page to emphasize its relationship to the Content
List widget or Case Information widget.
-
Wire the Content List widget to the first Viewer widget
on the page:
-
Click the Edit Wiring icon for
the Content List widget.
-
In the Content List Outgoing Events area,
select Document opened from the Outgoing
event list.
-
Select the first instance of Viewer from
the Target widget list.
-
Select Open document from the Incoming
event list.
-
Click Add Wire.
-
On the Event Broadcasting tab,
clear the Enabled check box for the Document
opened event.
Disabling event broadcasting
prevents the Document opened event from being broadcast automatically
to the other widgets on the page.
-
Wire the Case Information widget to the second Viewer widget
on the page:
-
Click Edit Wiring icon for the
Case Information widget menu.
-
In the Content List Outgoing Events area,
select Document opened from the Outgoing
event list.
-
Select the second instance of Viewer from
the Target widget list.
-
Select Open document from the Incoming
event list.
-
Click Add Wire.
-
On the Event Broadcasting tab,
clear the Enabled check box for the Document
opened event.
Disabling event broadcasting
prevents the Document opened event from being broadcast automatically
to the other widgets on the page.
-
Save and deploy the solution.