Intro
Data Tokens appear across SAC and DSP in builder panels, control panels, data wranglers, and modelers.
When to Use
Do
Use the data token:
- To organize multiple data points.
- To show data in hierarchies.
- To allow drag and drop interactions.
- To add interactivity to strings and other elements.
Don't
Don't use the data token:
- Outside of a List, for example to replace a button.
Top Tips
- Show just the information needed, not more.
- Use the appropriate object type icon.
- Keep the token title concise and clear.
SAC Anatomy
- Data Token Tree / Expand and Collapse Icon (optional)
- Highlight (optional)
- Drag and Drop Icon (optional)
- Content Expand and Collapse Icon (optional)
- Object Type Icon (optional)
- Title
- Description (optional)
- Icon (optional): Represents data properties; for example: hierarchy, roles, currency, location
- Semantic Icon (optional): Opens a semantic message popover on hover
- Icon Button (optional): For example: edit, overflow, include, exclude
- Remove Icon Button
Data Token (SAC) - Anatomy
BDC and DSP Anatomy
- Highlight (optional)
- Drag and Drop Icon (optional)
- Object Type Icon (optional)
- Title
- Description (optional)
- Icon (optional): Represents data properties; for example: hierarchy, roles, currency location
- Button (optional): For example: aggregations
- Badge (optional)
- Icon Button (optional): For example: edit, overflow, include, exclude
Data Token (BDC and DSP) - Anatomy
Common Object Type Icons
A selection of object type icons
Data Token Types
Single Line
The default and most common token type. Leading and trailing elements are context-dependant.
Data Token with leading and trailing elements
Data Token with no leading elements
Byline
The description (byline) will be truncated at the end of the line.
Data Token with byline
Wrapping Title
Alternatively, the title can have two lines and be truncated at the end of the second line. The full title will be displayed in a tooltip when hovering over the text.
Data Token with wrapped title
Required Placeholder
A required placeholder indicates that the user must add a data token. This data token support drag and drop and is selectable.
In SAC, required placeholders are used in the Builder Panel when accounts, measures, or dimensions are required but have not been added.
Required Placeholder
Placeholder
A placeholder indicates that a user can add a data token. This data token support drag and drop and is selectable.
In SAC, placeholders can be found in the Presentation Settings dialog and the Replace Model dialog.
Placeholder
SAC Non-Interactive Placeholder
A non-interactive placeholder indicates that a user can add a data token.
In SAC, placeholder tokens can be found in the Link Variables and Link Dimensions dialog.
SAC non-interactive placeholder
SAC Single Line Expanded
Some use cases require that content is placed inside a data token. Then, the expand and collapse button is displayed.
Expanded content is used to edit additional properties associated with Geo Map and Chart widgets.
Expanded content
SAC Data Token Tree
Based on UI5 Web Component: Tree Item Custom. Should not contain more than 16 levels.
Data token trees can be found in the Assets side panel and the Available Objects side panel.
Data token tree
Behavior and Interaction
Trailing Elements
Trailing elements can be displayed permanently or displayed on hover. Moreover, their placement can be relative to the right side of the data token or they can have a fixed position. When the data token only contains buttons use the relative placement.
Trailing elements with relative placement
Trailing elements with fixed placement
Interaction States
Data Token interaction states
Placement
Data Tokens are list items and always used in a list.
Data Token list within a panel
A list does have additional properties, for example to display an toolbar above the list. If a toolbar is used, the class="sapUiSmallMarginBeginEnd" has to be added to each data token, which adds a 1 rem margin on the left and the right side and ensures a proper spacing.
Data Token list with an additional toolbar
Drag and Drop to a Drop Target
If drag and drop is enabled, it must be indicated by the respective icon in front of the data token. Moreover, the mouse cursor should change from pointer to move.
Data Token drag and drop behavior of mappings
Drag and Drop to a Drop Zone
If drag and drop is enabled, it must be indicated by the respective icon in front of the data token. Moreover, the mouse cursor should change from pointer to move.
The drop zones indicates that a data token can be dropped in an empty slot.
Data Token drag and drop in an empty slot