Juicebox
Preparing your dataStory DesignerVisual design tips
  • Juicebox Documentation
  • What is Juicebox?
    • Technology requirements
  • Getting Started
    • Getting a Workspace
    • Reach out to us
  • Building Reports
    • Creating and Editing Reports
    • Data
      • Loading data
      • Managing data
      • The data preview
    • Design
      • Slices
        • Dynamic text
        • Customizing what shows
        • Multiple data tables
        • Charts
          • Headline
          • Filters
          • Chooser
          • Table
          • Card
          • Reports Navigation
          • Bar
          • Scatterplot
          • Leaderboard
          • Map
          • Trend
          • Pie
        • Selections as Variables
        • Debug
      • Ingredients
        • The ingredient editor
          • The dimension ingredient editor
          • The measure ingredient editor
        • Adding new ingredients
        • Advanced field formulas
        • Time formats
        • Number formats
    • Share
      • Publishing a report (or report changes)
      • Inviting viewers
      • Insights
    • Tips and Tricks
      • Telling data stories
      • Visual design
      • Preparing your data
      • Useful resources
  • Viewing Reports
    • Signing In
    • Navigating Reports
    • Focus and Filter
  • Managing Users
    • Adding Users
    • User Roles and Management
    • Limiting what data users can see
    • Access Views
    • Embedding Juicebox Apps
      • How embedding works
      • Juicebox Embedding API
      • Juicebox API
    • Requesting data from embedded apps
  • Managing my workspace
    • Workspace Settings
    • Subscription and Billing
  • Changelog 🎁
Powered by GitBook
On this page
  • Setting Data Permissions for an Access View
  • How to set selections on an Access View
  • Making selections in a chooser
  • Making selections in the Access View URL.

Was this helpful?

Export as PDF
  1. Managing Users

Access Views

Access Views combine data permissions, selections, security, and app features into a view that you can embed or share with users.

PreviousLimiting what data users can seeNextEmbedding Juicebox Apps

Last updated 1 year ago

Was this helpful?

Setting Data Permissions for an Access View

See .

How to set selections on an Access View

You can preselect items for your users on the Access View. A selections object contains keys that are a colon delimited pair of the Slice Slug and the Ingredient Id of the Ingredient used in the slice.

{
   "{Slice Slug}:{Ingredient Id for Slice 1}": [{List of values}],
   "{Slice 2 Slug}:{Ingredient Id for Slice 2}": [{List of values}]
}

You can find the Slice Slug in the editor.

The Ingredient Id can be found by selecting the Ingredient grouping used in the slice, then selecting "Copy Ingredient Id" in the ingredient editor.

Making selections in a chooser

Choosers can just include the chooser slice name.

{ 
   "{Chooser Slice Name}": [{Ingredient Id to select}]
}

For choosers, you need to get the Ingredient Id for the Ingredient you want to select

To select the third "Count of Date and Time" ingredient in the chooser above, you'd use this selections object.

{
   "Choice1": ["metric_dateandtime_z936yh2d"]
}

Making selections in the Access View URL.

You can also make selections using the url. To do so, pass the data like this:

{url}?Choice1=metric_dateandtime_z936yh2d
{url}?Choice1=metric_num_5fta5sgd
&Leaderboard1:title=Beginning+of+2020
&Leaderboard1:title=End+of+Aug+15

The result looks like this:

Here's an example of a complex selection that selects one choice and two items on a leaderboard. All of this would appear on a single line, but we're splitting it to make it easier to read. Note that spaces need to be by replacing them with a "+" sign or "%20".

url-encoded
Limiting what data users can see
The Slice Name
Getting the Ingredient Id
Finding Ingredient Ids for a Chooser
One choice and two leaderboard selections