Skip to main content
Use Self-Service Analytics to embed a source editor for your users, enabling them to view, edit, or configure data sources directly in your application. Define the editor for users as needed for your custom solution. You can embed the complete source editor, or limit what your users can access and use.

Step 1. Define a Connection to Create a Source

Define a connection users can access to create a source. See Embed Source Editor Properties for more information on the properties for creating a source.

Step 2. Create a Component for the Source Editor

Step 3. Define Interactivity Settings

Step 4. Define Breadcrumbs Configuration

Embed Source Editor Properties

Use the following properties when creating an embedded source editor.

Top Level Properties

PropertyDefault ValueDescription
sourceIdundefinedThe ID of the source for the editor to connect to. If an ID is not passed, an empty editor is embedded.
Type: string
activeTab'create'The Active Tab presented to the user when the editor is loaded. Options include 'create', 'fields', 'caching', and 'settings' .
themeundefinedThe theme to use for the source editor. If a theme name is not passed, the default theme is used. Options include modern, dark, and <custom> .
Type: string
headerType: HeaderProps
See Header Properties.
breadcrumbsType: BreadcrumbsProps
See Breadcrumb Properties.
tabsType: TabsProps
See Tab Properties.
interactivityOverridesType: InteractivityOverrides
See Interactivity Overrides.
notificationSettings{ enabled: true, position: 'top-right' }Use to show or hide the notifications and define their position.
Type: NotificatonSettings

Header Properties

PropertyDefault ValueDescription
visibletrueDefines the visibility of the header.
Type: boolean
showTitletrueDefines the visibility of the source name.
Type: boolean
PropertyDefault ValueDescription
title"Sources"The title of the first item in the breadcrumbs path.
Type: string
href""The link address for the first item in the breadcrumbs path.
Type: string
target""The link target parameter. Use "_blank" to open the editor in a new tab.
Type: string
onClickundefinedThe action handler for selection of the breadcrumb.
Type: string

Tab Properties

PropertyDefault ValueDescription
create.visibletrueDefine visibility of the Source Creation tab.
Type: boolean
create.connectionsundefinedConfigure the Connections list as a data entity.
Type: ConnectionsProps
fields.visibletrueDefine visibility of the Fields tab.
Type: boolean
caching.visibletrueDefine visibility of the Cache tab.
Type: boolean
settings.visibletrueDefine visibility of the Global Settings tab.
Type: boolean

Connection Properties

PropertyDefault ValueDescription
idsundefinedThe Connection IDs to use in the source editor for Data Entity creation.
  • If no values are defined, all connections are visible.
  • If the value is an empty array, users can only connect to the connection defined in defaultId.
  • If a selected Data Entity is not in the list, the connection for that entity is added to the list of available connections for the data entity.

Type: string array
defaultIdundefinedDefine the default connection ID. If this value is not defined, no default connection selection is available.
Type: string

Interactivity Overrides

PropertyDefault ValueDescription
createundefinedThe overrides for the interactivity settings related to the Source Creation tab.
Type: CreationInteractivitySettings
fieldsundefinedThe overrides for the interactivity settings related to the Fields tab.
Type: FieldsInteractivitySettings
cachingundefinedThe overrides for the interactivity settings related to the Fields tab.
Type: CachingInteractivitySettings

Creation Interactivity Settings

PropertyDescription
"ADD_FROM_CONNECTION" : trueWhen set to true, users can see and use the Add From Connection menu item on the Source Creation tab. When set to false, it is hidden.
Type: boolean
"ADD_FROM_FILE_UPLOAD" : trueWhen set to true, users can see and use the Add From File menu item on the Source Creation tab. When set to false, it is hidden.
Type: boolean
"SELECT_FILE_UPLOAD" : trueWhen set to true, users can see and use the Select File control on the Source Creation tab. When set to false, it is hidden.
Type: boolean
"UPLOAD_NEW_FILE" : trueWhen set to true, users can see and use the Upload New File button on the Source Creation tab. When set to false, it is hidden.
Type: boolean
"CREATE_JOINS" : trueWhen set to true, users can see and use the Add control. When set to false, it is hidden.
Type: boolean
"FILTER_VALUES_ENTITIES" : trueWhen set to true, users can see and use the Filter Values Entity option on the Source Creation tab. When set to false, it is hidden.
Type: boolean

Fields Interactivity Settings

PropertyDefault ValueDescription
ADD_DERIVED_FIELDtrueDefines the visibility of the Add Derived Field button on the Fields tab.
Type: boolean
ADD_HIERARCHY_FIELDtrueDefines the visibility of the Add Hierarchy Field button on the Fields tab.
Type: boolean
ADD_CUSTOM_METRICtrueDefines the visibility of the Add Custom Metric button on the Fields tab.
Type: boolean
VISIBILITYtrueDefines the visibility of the Visibility column on the Fields tab.
Type: boolean
SETTINGStrueDefines the visibility of the Settings menu on the Fields tab.
Type: boolean
FILTER_VALUEStrueDefines the visibility of the Filter Values menu on the Fields tab.
Type: boolean
INFOtrueDefines the visibility of the Info menu on the Fields tab.
Type: boolean
DELETEtrueDefines the visibility of the Delete button on the Fields tab.
Type: boolean
FILTER_VALUE_OVERRIDEStrueDefines the visibility of the Filter Values tab on the Fields tab.
Type: boolean
FIELD_CAPABILITIEStrueDefines the visibility of the Field Capabilities button on the Fields tab.
Type: boolean
MANAGE_TRANSLATIONStrueDefines the visibility of the Upload Translation File button on the Fields tab.
Type: boolean

Caching Interactivity Settings

PropertyDefault ValueDescription
DATA_CACHEtrueDefines the visibility of the Data Cache control on the Cache tab.
Type: boolean
STATISTICS_CACHEtrueDefines the visibility of the Statistics Cache control on the Cache tab.
Type: boolean
SCHEDULE_REFRESHtrueDefines the visibility of the Schedule Refresh control on the Cache tab.
Type: boolean
STATISTICS_CACHEtrueDefines the visibility of the Statistics Cache control on the Cache tab.
Type: boolean