add_bookmark
Create a report-level bookmark that captures a page's view state by hiding specified visuals and showing the rest, returning the bookmark name for button wiring.
Instructions
Add a report-level bookmark that captures a page's visualContainers with the listed visuals HIDDEN and the rest shown (the view-state pattern). Names it 'Bookmark'+16 hex. hiddenVisuals = comma-separated visual ids (from list_visuals). Returns the new bookmark name. Wire it to a button with add_action_button.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | page name or displayName the bookmark captures | |
| captureData | No | also capture the live DATA state (filter/slicer values, sort, drill, cross-highlight) - not just which visuals show | |
| displayName | Yes | bookmark title shown in the pane | |
| hiddenVisuals | No | comma-separated visual ids to hide (the rest are shown) | |
| reportSessionId | Yes |