Sub topic 11
Bookmark groups and the bookmark navigator
This chapter assumes you can create bookmarks, set their Data, Display, and Current page options, and use the Selection pane. It covers how to organize bookmarks into groups and how to build a navigation bar from them without wiring up each button by hand.
Why groups exist
A report with a show/hide panel, a chart/table toggle, and a reset button can easily have a dozen bookmarks. In the Bookmarks pane they appear as one flat list. Groups give that list structure. They also decide which bookmarks a navigator visual shows.
A bookmark group is a named folder of bookmarks. You can collapse it in the Bookmarks pane, and a bookmark navigator can be pointed at one group.
Creating and managing groups
- Open View > Bookmarks to show the Bookmarks pane.
- Ctrl-click the bookmarks you want to group.
- Select More options (...) on one of them and choose Group.
- Rename the group by double-clicking its name.
You can drag bookmarks in and out of a group, and you can ungroup to dissolve it. A bookmark belongs to at most one group.
Clicking a group name does not apply a bookmark. Only the bookmark entries inside it apply state.
The Bookmark navigator visual
The bookmark navigator is a built-in visual that shows one button for each bookmark. Select Insert > Buttons > Navigator > Bookmark navigator. It generates the buttons for you and applies each bookmark when clicked.
Its main settings are:
| Setting | Where | Effect |
|---|---|---|
| Bookmarks shown | Format > Visual > Bookmarks | All bookmarks, or one group |
| Show hidden bookmarks | Same section | Includes bookmarks that were hidden from the pane |
| Orientation and layout | Format > Visual > Grid | Horizontal, vertical, or wrapped grid |
| Styling | Format > Visual > Style | Fill, text, and border for default, hover, pressed, and selected states |
The navigator highlights the button whose bookmark was last applied. This is the Selected state, which a hand-built button does not have. It is the main reason to prefer the navigator for view switching.
A worked example
Suppose the report has these bookmarks: Chart View, Table View, Filters Open, Filters Closed, and Reset.
- Group
Chart ViewandTable Viewinto a group namedViews. - Group
Filters OpenandFilters ClosedintoPanel. - Insert a bookmark navigator and set Bookmarks > Group to
Views. - Style the Selected state with a dark fill so the active view is obvious.
The navigator now shows only two buttons. Reset and the panel bookmarks stay out of it, because they are not in that group.
Common errors
- A new bookmark is missing from the navigator. If the navigator is pinned to a group, a bookmark you added later appears only after you drag it into that group.
- Names are too long. The navigator uses the bookmark name as its label. Rename bookmarks with short, user-facing names before building the navigator.
- Nothing looks selected. The Selected state shows only after a bookmark has been applied in that session. On load, no button is highlighted unless you apply a default bookmark first, for example through a bookmark on open.
- A bookmark behaves unexpectedly when clicked. The navigator applies the bookmark's own capture options. If a view bookmark has Data turned on, it also resets slicers. Check the options on each bookmark, not on the navigator.
- The navigator is itself captured. If a bookmark captures All visuals, it records the navigator's visibility too. Use Selected visuals on bookmarks, or keep the navigator visible in every state.
Exercise
A report has a group named Views containing two bookmarks, and a separate bookmark named Reset outside the group. A bookmark navigator is set to show the Views group. What does the navigator show, and how can you make Reset appear in the navigator too?
Show answer
The navigator shows only the two bookmarks in Views. To include Reset, either move it into the Views group, or set the navigator's Bookmarks option to show all bookmarks. Moving it is usually better, because a reset action is not a view and should not look like one of the toggle options.