All skills
secondsky avatar

/sap-sac-scripting

@620a19a
by Eddiesecondsky/sap-skills456 stars
120

Comprehensive SAC scripting skill for SAP Analytics Cloud Analytics Designer and Optimized Story Experience. This skill should be used when the user asks to "create SAC script", "debug Analytics Designer", "optimize SAC performance", "planning operations in SAC", "filter data in SAC", "use DataSource API", "chart scripting", "table manipulation", "SAC event handlers", "version management", "data locking", "Optimized Story Experience API", "OSE scripting", "OSE widget API", "OSE DataSource", "story scripting API", "OSE planning API", "OSE method", "optimized story", "SAC story scripting", "story script", "SAC scripting", "debug SAC runtime in Microsoft Edge via CDP", or works with SAC widgets, planning models, or analytics applications.

Use this Skill: https://skilld.dev/gh/secondsky/sap-skills/sap-sac-scripting

This session only. Nothing lands on disk.

referencesose-api-datasource.md

≈49k tokens on demand. Your agent reads this file only when SKILL.md points to it.

OSE API: Data & DataSource

Version: 2025.20 | SAC Release: Q2 2026 (2026.8) | Full API Docs: SAP Help Portal

Data access and management: DataSource API, data actions, data binding, data change insights, data locking, and file/external data sources.

Classes in This File


<a name="batchexportdatasource"></a>

BatchExportDataSource

Since

2024.7

Last Update

2024.17

Method Summary

Name and Description
setDimensionFilter(dimension: string | DimensionInfo JSON, members: string | string[] | MemberInfo JSON | MemberInfo[]JSON | RangeFilterValue JSON | RangeFilterValue[]JSON): void<br>Sets a filter on the dimension.

Method Detail

setDimensionFilter
setDimensionFilter(dimension: string | DimensionInfo JSON, members: string | string[] | MemberInfo JSON | MemberInfo[]JSON | RangeFilterValue JSON | RangeFilterValue[]JSON): void

Sets a filter on the dimension. The filter will be used in batch export. Only dimension member and range filter is supported.

Parameters

dimension: string | DimensionInfo JSON
members: string | string[] | MemberInfo JSON | MemberInfo[]JSON | RangeFilterValue JSON | RangeFilterValue[]JSON

Last Update

2024.17 |

Type Library bookmark

C


<a name="bpcplanningsequencedatasource"></a>

BpcPlanningSequenceDataSource

Since

2022.14

Last Update

2022.16

Method Summary

Name and Description
copyVariableValueFrom(sourceDataSource: BpcPlanningSequenceDataSource, variable?: string | string[] | BpcPlanningSequenceVariableInfo | BpcPlanningSequenceVariableInfo[]): void<br>Copies the value of a variable.
getVariables(): BpcPlanningSequenceVariableInfo[]<br>Returns all variables of the data source.
getVariableValues(variable: string | BpcPlanningSequenceVariableInfo): VariableValue[]<br>Returns the values of the variable.
removeVariableValue(variable: string | BpcPlanningSequenceVariableInfo): void<br>Removes the value of the variable.
setVariableValue(variable: string | BpcPlanningSequenceVariableInfo, variableValue: string | number | VariableValue JSON | VariableValue[]JSON, options?: SetVariableValueOptions JSON): void<br>Sets the value of the variable.

Method Detail

copyVariableValueFrom
copyVariableValueFrom(sourceDataSource: BpcPlanningSequenceDataSource, variable?: string | string[] | BpcPlanningSequenceVariableInfo | BpcPlanningSequenceVariableInfo[]): void

Copies the value of a variable. If no variable is specified, then all variable values of the data source are copied. If you copy an empty variable value to a mandatory variable, then copying this variable is ignored.

Parameters

sourceDataSource: BpcPlanningSequenceDataSource
variableOptional: string | string[] | BpcPlanningSequenceVariableInfo | BpcPlanningSequenceVariableInfo[]

Last Update

2022.16 |

getVariableValues
getVariableValues(variable: string | BpcPlanningSequenceVariableInfo): VariableValue[]

Returns the values of the variable. Each value can be a single, multiple, or range variable value. To access its type-specific properties, cast the value to the corresponding value type based on the "type" property, using the global cast function. Note: This method may return outdated values with SAP BW dynamic filter variables.

Parameters

variable: string | BpcPlanningSequenceVariableInfo

Returns

VariableValue[]

Last Update

2022.16 |

getVariables
getVariables(): BpcPlanningSequenceVariableInfo[]<br>Returns all variables of the data source.<br>Returns<br>BpcPlanningSequenceVariableInfo[]<br>Last Update<br>2022.16
removeVariableValue
removeVariableValue(variable: string | BpcPlanningSequenceVariableInfo): void

Removes the value of the variable. By default, this removes the variable value of the variable for the data source on the application. If you remove a variable value from a mandatory variable, then this operation is ignored.

Parameters

variable: string | BpcPlanningSequenceVariableInfo

Last Update

2022.16 |

setVariableValue
setVariableValue(variable: string | BpcPlanningSequenceVariableInfo, variableValue: string | number | VariableValue JSON | VariableValue[]JSON, options?: SetVariableValueOptions JSON): void

Sets the value of the variable. By default, this sets the variable value of the variable for the data source on the application. If you set an empty variable value to a mandatory variable, then this operation is ignored. Note: The variable value will not be validated. Note: You can omit loading variable descriptions (which are displayed in the Prompt dialog and in dynamic texts) by setting the optional property loadDescriptions in the options to false.

Parameters

variable: string | BpcPlanningSequenceVariableInfo
variableValue: string | number | VariableValue JSON | VariableValue[]JSON
optionsOptional: SetVariableValueOptions JSON

Last Update

2022.16 |

Type Library planning

C


<a name="commentingdatasource"></a>

CommentingDataSource

Since

2021.5

Method Summary

Name and Description
getDimensionFilters(dimension: string | DimensionInfo JSON): FilterValue[]<br>Returns the dimension filters.
removeDimensionFilter(dimension: string | DimensionInfo JSON): void<br>Removes any filter that is set on the dimension.
setDimensionFilter(dimension: string | DimensionInfo JSON, member: string | string[] | MemberInfo JSON | MemberInfo[]JSON | MeasureInfo JSON | MeasureInfo[]JSON | TimeRange | TimeRange[]): void<br>Sets a filter on the dimension.

Method Detail

getDimensionFilters
getDimensionFilters(dimension: string | DimensionInfo JSON): FilterValue[]

Returns the dimension filters. They don't contain Advanced Filters. Note: Currently, they don't contain time range filters.

Parameters

dimension: string | DimensionInfo JSON

Returns

FilterValue[] |

removeDimensionFilter
removeDimensionFilter(dimension: string | DimensionInfo JSON): void

Removes any filter that is set on the dimension. Advanced Filters aren't affected.

Parameters

dimension: string | DimensionInfo JSON
setDimensionFilter
setDimensionFilter(dimension: string | DimensionInfo JSON, member: string | string[] | MemberInfo JSON | MemberInfo[]JSON | MeasureInfo JSON | MeasureInfo[]JSON | TimeRange | TimeRange[]): void

Sets a filter on the dimension. Any existing filter (except Advanced Filters) on the dimension is overwritten. For most dimensions, you can specify one or more members to be included in the filter. For date- and time-based dimensions, you can specify one or more time ranges to be included in the filter.

Parameters

dimension: string | DimensionInfo JSON
member: string | string[] | MemberInfo JSON | MemberInfo[]JSON | MeasureInfo JSON | MeasureInfo[]JSON | TimeRange | TimeRange[]

Type Library containers

C


<a name="dataaction"></a>

DataAction

Since

2021.6

Last Update

2024.4

Method Summary

Name and Description
execute(): DataActionExecutionResponse<br>Executes the data action as a blocking operation, which prevents the rest of the application script from running until the data action is complete.
executeInBackground(executionName: string): DataActionBackgroundExecutionResponse<br>Executes the data action as a non-blocking operation.
getExecutionProgress(executionId: string): DataActionExecutionResponseStatus<br>Returns status of given Data Action execution.
getParameterValue(id: string): DataActionParameterValue<br>Returns the value of the parameter.
isAllMembersSelected(id: string): boolean<br>Returns whether the parameter has the all member as value.
setAllMembersSelected(id: string, hierarchy?: string): void<br>Sets the all member as parameter value.
setParameterValue(id: string, value: string | string[] | DataActionParameterValue JSON | number): void<br>Sets the value of the parameter.

Event Summary

Name and Description
onExecutionStatusUpdate(status: DataActionExecutionResponseStatus, executionId: string, executionName: string): void<br>Called when an asynchronous Data Action execution changes its status.

Method Detail

execute
execute(): DataActionExecutionResponse<br>Executes the data action as a blocking operation, which prevents the rest of the application script from running until the data action is complete. It's best to use it only for data actions that take a short time to run.<br>Returns<br>DataActionExecutionResponse
executeInBackground
executeInBackground(executionName: string): DataActionBackgroundExecutionResponse

Executes the data action as a non-blocking operation. A non-blocking operation doesn't block further execution while that operation is executed.

Parameters

executionName: string

Returns

DataActionBackgroundExecutionResponse

Since

2022.12 |

getExecutionProgress
getExecutionProgress(executionId: string): DataActionExecutionResponseStatus

Returns status of given Data Action execution.

Parameters

executionId: string

Returns

DataActionExecutionResponseStatus

Since

2024.4 |

getParameterValue
getParameterValue(id: string): DataActionParameterValue

Returns the value of the parameter.

Parameters

id: string

Returns

DataActionParameterValue |

isAllMembersSelected
isAllMembersSelected(id: string): boolean

Returns whether the parameter has the all member as value.

Parameters

id: string

Returns

boolean

Since

2023.20 |

setAllMembersSelected
setAllMembersSelected(id: string, hierarchy?: string): void

Sets the all member as parameter value.

Parameters

id: string
hierarchyOptional: string

Since

2023.20 |

setParameterValue
setParameterValue(id: string, value: string | string[] | DataActionParameterValue JSON | number): void

Sets the value of the parameter.

Parameters

id: string
value: string | string[] | DataActionParameterValue JSON | number

Event Detail

onExecutionStatusUpdate
onExecutionStatusUpdate(status: DataActionExecutionResponseStatus, executionId: string, executionName: string): void

Called when an asynchronous Data Action execution changes its status.

Parameters

status: DataActionExecutionResponseStatus
executionId: string
executionName: string

Since

2022.12 |

Type Library data-action

C


<a name="dataactionallmemberselection"></a>

DataActionAllMemberSelection

extends DataActionParameterValue, can be passed as a JSON object to method arguments

An object defining a data action parameter all member selection

Since

2023.20

Property Summary

Name and Description
hierarchy: string<br>Hierarchy name
Inherited from DataActionParameterValue
type

Property Detail

hierarchy
hierarchy: string<br>Hierarchy name

Type Library data-action

C


<a name="dataactionbackgroundexecutionresponse"></a>

DataActionBackgroundExecutionResponse

Since

2022.12

Property Summary

Name and Description
executionId: string<br>Generated execution ID.
status: DataActionBackgroundExecutionResponseStatus<br>Execution status

Property Detail

executionId
executionId: string<br>Generated execution ID.
status
status: DataActionBackgroundExecutionResponseStatus<br>Execution status

Type Library data-action

E


<a name="dataactionbackgroundexecutionresponsestatus"></a>

DataActionBackgroundExecutionResponseStatus

Since

2022.12

Last Update

2022.15

Property Summary

Name and Description
static Accepted: DataActionBackgroundExecutionResponseStatus<br>Execution is accepted.
static Error: DataActionBackgroundExecutionResponseStatus<br>Execution ended with errors.

Property Detail

Accepted
staticAccepted: DataActionBackgroundExecutionResponseStatus<br>Execution is accepted.<br>Last Update<br>2022.15
Error
staticError: DataActionBackgroundExecutionResponseStatus<br>Execution ended with errors.<br>Last Update<br>2022.15

Type Library data-action

C


<a name="dataactionexecutionresponse"></a>

DataActionExecutionResponse

Since

2021.6

Property Summary

Name and Description
status: DataActionExecutionResponseStatus<br>Execution result status

Property Detail

status
status: DataActionExecutionResponseStatus<br>Execution result status

Type Library data-action

E


<a name="dataactionexecutionresponsestatus"></a>

DataActionExecutionResponseStatus

Since

2021.6

Last Update

2024.4

Property Summary

Name and Description
static Accepted: DataActionExecutionResponseStatus<br>Execution is accepted.
static Canceled: DataActionExecutionResponseStatus<br>Execution has been canceled.
static Error: DataActionExecutionResponseStatus<br>Execution ended with errors.
static Queued: DataActionExecutionResponseStatus<br>Execution is queued.
static Running: DataActionExecutionResponseStatus<br>Execution is running.
static Success: DataActionExecutionResponseStatus<br>Execution ended successfully.

Property Detail

Accepted
staticAccepted: DataActionExecutionResponseStatus<br>Execution is accepted.<br>Since<br>2024.4
Canceled
staticCanceled: DataActionExecutionResponseStatus<br>Execution has been canceled.<br>Since<br>2022.3
Error
staticError: DataActionExecutionResponseStatus<br>Execution ended with errors.
Queued
staticQueued: DataActionExecutionResponseStatus<br>Execution is queued.<br>Since<br>2022.16
Running
staticRunning: DataActionExecutionResponseStatus<br>Execution is running.<br>Since<br>2022.12
Success
staticSuccess: DataActionExecutionResponseStatus<br>Execution ended successfully.

Type Library data-action

C


<a name="dataactionmemberparametervalue"></a>

DataActionMemberParameterValue

extends DataActionParameterValue, can be passed as a JSON object to method arguments

An object defining a data action member parameter value

Since

2021.6

Property Summary

Name and Description
members: string[]<br>Member IDs
Inherited from DataActionParameterValue
type

Property Detail

members
members: string[]<br>Member IDs

Type Library data-action

C


<a name="dataactionnumberparametervalue"></a>

DataActionNumberParameterValue

extends DataActionParameterValue, can be passed as a JSON object to method arguments

An object defining a data action number parameter value

Since

2021.6

Property Summary

Name and Description
value: number<br>Number value
Inherited from DataActionParameterValue
type

Property Detail

value
value: number<br>Number value

Type Library data-action

C


<a name="dataactionparametervalue"></a>

DataActionParameterValue

can be passed as a JSON object to method arguments

An object defining a data action parameter value

Direct Subclasses

DataActionAllMemberSelection, DataActionMemberParameterValue, DataActionNumberParameterValue, DataActionPlanningModelMemberParameterValue

Since

2021.6

Property Summary

Name and Description
type: DataActionParameterValueType<br>Type of the parameter value

Property Detail

type
type: DataActionParameterValueType<br>Type of the parameter value

Type Library data-action

E


<a name="dataactionparametervaluetype"></a>

DataActionParameterValueType

Since

2021.6

Last Update

2024.20

Property Summary

Name and Description
static All: DataActionParameterValueType<br>All member selection type
static Member: DataActionParameterValueType<br>Member value type
static Number: DataActionParameterValueType<br>Number value type
static PlanningModelMember: DataActionParameterValueType<br>Planning Model Member value type

Property Detail

All
staticAll: DataActionParameterValueType<br>All member selection type<br>Since<br>2023.20
Member
staticMember: DataActionParameterValueType<br>Member value type
Number
staticNumber: DataActionParameterValueType<br>Number value type
PlanningModelMember
staticPlanningModelMember: DataActionParameterValueType<br>Planning Model Member value type<br>Since<br>2024.20

C


<a name="dataactionplanningmodelmemberparametervalue"></a>

DataActionPlanningModelMemberParameterValue

extends DataActionParameterValue, can be passed as a JSON object to method arguments

An object defining a data action member parameter value

Since

2024.20

Property Summary

Name and Description
hierarchy: string<br>Specific hierarchy which should be used for the given members.
members: PlanningModelMember[]JSON<br>Planning Model Member
Inherited from DataActionParameterValue
type

Property Detail

hierarchy
hierarchy: string<br>Specific hierarchy which should be used for the given members. If undefined, the fixed hierarchy of the parameter or the default hierarchy of the dimension will be used
members
members: PlanningModelMember[]JSON<br>Planning Model Member

Type Library planning

C


<a name="dataactiontrigger"></a>

DataActionTrigger

extends Widget

Since

2018.22

Last Update

2020.4

Method Summary

Inherited from Widget
getCssClass, getLayout, isVisible, setCssClass, setVisible

Event Summary

Name and Description
onBeforeExecute(): boolean<br>Called when the user clicks the data action starter.

Event Detail

onBeforeExecute
onBeforeExecute(): boolean<br>Called when the user clicks the data action starter. If this method returns true or returns no value, then the data action is executed. If this method returns false, then the data action is ignored.<br>Returns<br>booleanDefault value:true<br>Since<br>2020.4

Type Library data-binding

C


<a name="databinding"></a>

DataBinding

Since

2022.8

Last Update

2023.15

Method Summary

Name and Description
addDimensionToFeed(feed: string, dimensionId: string, position?: integer): void<br>Adds a dimension to a feed.
addMemberToFeed(feed: string, memberId: string, position?: integer): void<br>Adds a member to a feed.
getDataSource(): DataSource<br>Returns the data source of the data-binding.
getDimensions(feed: string): string[]<br>Returns all dimensions on the feed.
getLinkedAnalysis(): LinkedAnalysis<br>linked ayalysis for custom widget.
getMembers(feed: string): string[]<br>Returns all members on the feed.
openSelectModelDialog(): void<br>Opens the select model dialog.
removeDimension(dimensionId: string): void<br>Removes a dimension from the feed on which it is currently on.
removeMember(memberId: string): void<br>Removes a member from the feed on which it is currently on.
setModel(modelId: string): boolean<br>Sets the model and replaces the old one.

Method Detail

addDimensionToFeed
addDimensionToFeed(feed: string, dimensionId: string, position?: integer): void

Adds a dimension to a feed.

Parameters

feed: string
dimensionId: string
positionOptional: integer
addMemberToFeed
addMemberToFeed(feed: string, memberId: string, position?: integer): void

Adds a member to a feed.

Parameters

feed: string
memberId: string
positionOptional: integer
getDataSource
getDataSource(): DataSource<br>Returns the data source of the data-binding. If the data-binding has no data source, then undefined is returned.<br>Returns<br>DataSource
getDimensions
getDimensions(feed: string): string[]

Returns all dimensions on the feed.

Parameters

feed: string

Returns

string[] |

getLinkedAnalysis
getLinkedAnalysis(): LinkedAnalysis<br>linked ayalysis for custom widget.<br>Returns<br>LinkedAnalysis<br>Since<br>2023.15
getMembers
getMembers(feed: string): string[]

Returns all members on the feed.

Parameters

feed: string

Returns

string[] |

openSelectModelDialog
openSelectModelDialog(): void<br>Opens the select model dialog. Selecting a model replaces the model and clears the query of the databinding.
removeDimension
removeDimension(dimensionId: string): void

Removes a dimension from the feed on which it is currently on.

Parameters

dimensionId: string
removeMember
removeMember(memberId: string): void

Removes a member from the feed on which it is currently on.

Parameters

memberId: string
setModel
setModel(modelId: string): boolean

Sets the model and replaces the old one.

Parameters

modelId: string

Returns

boolean |

Type Library data-binding

C


<a name="databindings"></a>

DataBindings

Since

2022.8

Method Summary

Name and Description
getDataBinding(dataBindingId?: string): DataBinding<br>Returns the databinding of the custom widget.

Method Detail

getDataBinding
getDataBinding(dataBindingId?: string): DataBinding

Returns the databinding of the custom widget. If arugment is omitted, the first databinding defined in the contribution will be returned. If the customwidget has no databinding, then undefined is returned.

Parameters

dataBindingIdOptional: string

Returns

DataBinding |

Type Library datasource

C


<a name="datacell"></a>

DataCell

Property Summary

Name and Description
formattedValue: string
rawValue: string

Property Detail

formattedValue
formattedValue: string
rawValue
rawValue: string

Type Library data-change-insights

C


<a name="datachangeinsight"></a>

DataChangeInsight

Since

2021.1

Property Summary

Name and Description
content: string
type: DataChangeInsightType

Property Detail

content
content: string
type
type: DataChangeInsightType

Type Library data-change-insights

C


<a name="datachangeinsights"></a>

DataChangeInsights

Since

2021.1

Last Update

2021.5

Method Summary

Name and Description
compareApplicationStateWithSnapshot(target: Date, options?: DataChangeInsightsComparisonOptions JSON): DataChangeInsightsResult<br>Compares the current state of the analytic application with a Data Change Insights snapshot.
compareSnapshots(source: Date, target: Date, options?: DataChangeInsightsComparisonOptions JSON): DataChangeInsightsResult<br>Compares two Data Change Insights snapshots by date.
getVersion(): integer<br>Returns the Data Change Insights version of the analytic application.
isRunBySnapshotGeneration(): boolean<br>Returns whether the Data Change Insights snapshot task is running.
listRecentSnapshotDates(maximumNumber?: integer): Date[]<br>Returns a list of dates when a Data Change Insights snapshot was created from the analytic application.
openSubscriptionDialog(): void<br>Opens the subscription dialog.
saveSnapshot(): boolean<br>Saves a Data Change Insights snapshot.

Method Detail

compareApplicationStateWithSnapshot
compareApplicationStateWithSnapshot(target: Date, options?: DataChangeInsightsComparisonOptions JSON): DataChangeInsightsResult

Compares the current state of the analytic application with a Data Change Insights snapshot.

Parameters

target: Date
optionsOptional: DataChangeInsightsComparisonOptions JSON

Returns

DataChangeInsightsResult |

compareSnapshots
compareSnapshots(source: Date, target: Date, options?: DataChangeInsightsComparisonOptions JSON): DataChangeInsightsResult

Compares two Data Change Insights snapshots by date. Note: An analytic application can have only one Data Change Insights snapshot per day.

Parameters

source: Date
target: Date
optionsOptional: DataChangeInsightsComparisonOptions JSON

Returns

DataChangeInsightsResult |

getVersion
getVersion(): integer<br>Returns the Data Change Insights version of the analytic application.<br>Returns<br>integer<br>Since<br>2021.5
isRunBySnapshotGeneration
isRunBySnapshotGeneration(): boolean<br>Returns whether the Data Change Insights snapshot task is running.<br>Returns<br>boolean
listRecentSnapshotDates
listRecentSnapshotDates(maximumNumber?: integer): Date[]

Returns a list of dates when a Data Change Insights snapshot was created from the analytic application. Optionally, you can specify the maximum number of returned dates (default: 10 for Local Tenant Storage, 100 for Data Repositories). The maximum number is limited to 10 for Local Tenant Storage, 100 for Data Repositories.

Parameters

maximumNumberOptional: integer

Returns

Date[] |

openSubscriptionDialog
openSubscriptionDialog(): void<br>Opens the subscription dialog.<br>Mobile Support<br>Not supported on mobile devices.<br>Since<br>2021.5
saveSnapshot
saveSnapshot(): boolean<br>Saves a Data Change Insights snapshot. Only one snapshot is kept per analytic application per day. When you save more snapshots per analytic application per day, then the latest snapshot overwrites the previous snapshot.<br>Returns<br>boolean

Type Library data-change-insights

C


<a name="datachangeinsightscomparisonoptions"></a>

DataChangeInsightsComparisonOptions

can be passed as a JSON object to method arguments

Since

2021.1

Property Summary

Name and Description
top: integer<br>Number of returned Data Change Insights.

Property Detail

top
top: integer<br>Number of returned Data Change Insights. The maximum number is limited to 5.

Type Library data-change-insights

C


<a name="datachangeinsightsresult"></a>

DataChangeInsightsResult

Since

2021.1

Property Summary

Name and Description
insights: DataChangeInsight[]
status: DataChangeInsightsStatus
statusMessage: string

Property Detail

insights
insights: DataChangeInsight[]
status
status: DataChangeInsightsStatus
statusMessage
statusMessage: string

Type Library data-change-insights

E


<a name="datachangeinsightsstatus"></a>

DataChangeInsightsStatus

Since

2021.1

Property Summary

Name and Description
static Error: DataChangeInsightsStatus<br>Error
static Invalid: DataChangeInsightsStatus<br>Invalid
static Ok: DataChangeInsightsStatus<br>Ok

Property Detail

Error
staticError: DataChangeInsightsStatus<br>Error
Invalid
staticInvalid: DataChangeInsightsStatus<br>Invalid
Ok
staticOk: DataChangeInsightsStatus<br>Ok

Type Library chart

E


<a name="datachangeinsightssubscriptionlevel"></a>

DataChangeInsightsSubscriptionLevel

Since

2021.5

Property Summary

Name and Description
static Subscribed: DataChangeInsightsSubscriptionLevel<br>Subscribed
static SubscribedHighImportance: DataChangeInsightsSubscriptionLevel<br>Subscribed with high importance
static Unsubscribed: DataChangeInsightsSubscriptionLevel<br>Unsubscribed

Property Detail

Subscribed
staticSubscribed: DataChangeInsightsSubscriptionLevel<br>Subscribed
SubscribedHighImportance
staticSubscribedHighImportance: DataChangeInsightsSubscriptionLevel<br>Subscribed with high importance
Unsubscribed
staticUnsubscribed: DataChangeInsightsSubscriptionLevel<br>Unsubscribed

Type Library chart

C


<a name="datachangeinsightssubscriptionrange"></a>

DataChangeInsightsSubscriptionRange

can be passed as a JSON object to method arguments

Since

2021.5

Property Summary

Name and Description
isAbsoluteValue: boolean<br>Specifies whether the subscription range defines an absolute value.
isDeltaValue: boolean<br>Specifies whether the subscription range defines a delta value.
isInclude: boolean<br>Specifies whether the subscription range is inclusive.
isMaxOrEqual: boolean<br>Specifies whether the subscription range defines values less or equal to the maximum value.
isMinOrEqual: boolean<br>Specifies whether the subscription range defines values greater or equal to the minimum value.
max: number<br>Maximum value of the subscription range
min: number<br>Minimum value of the subscription range
structureDimension: string<br>Structure dimension of the subscription range
structureDimensionMember: string<br>Structure dimension member of the subscription range

Property Detail

isAbsoluteValue
isAbsoluteValue: boolean<br>Specifies whether the subscription range defines an absolute value.
isDeltaValue
isDeltaValue: boolean<br>Specifies whether the subscription range defines a delta value.
isInclude
isInclude: boolean<br>Specifies whether the subscription range is inclusive.
isMaxOrEqual
isMaxOrEqual: boolean<br>Specifies whether the subscription range defines values less or equal to the maximum value.
isMinOrEqual
isMinOrEqual: boolean<br>Specifies whether the subscription range defines values greater or equal to the minimum value.
max
max: number<br>Maximum value of the subscription range
min
min: number<br>Minimum value of the subscription range
structureDimension
structureDimension: string<br>Structure dimension of the subscription range
structureDimensionMember
structureDimensionMember: string<br>Structure dimension member of the subscription range

Type Library data-change-insights

E


<a name="datachangeinsighttype"></a>

DataChangeInsightType

Since

2021.1

Property Summary

Name and Description
static TopNMemberChange: DataChangeInsightType<br>Top N member change
static ValueChange: DataChangeInsightType<br>Value change
static ValueChangeOverReferenceLine: DataChangeInsightType<br>Value change over reference line
static ValueChangeOverThreshold: DataChangeInsightType<br>Value change over threshold

Property Detail

TopNMemberChange
staticTopNMemberChange: DataChangeInsightType<br>Top N member change
ValueChange
staticValueChange: DataChangeInsightType<br>Value change
ValueChangeOverReferenceLine
staticValueChangeOverReferenceLine: DataChangeInsightType<br>Value change over reference line
ValueChangeOverThreshold
staticValueChangeOverThreshold: DataChangeInsightType<br>Value change over threshold

Type Library datasource

C


<a name="datacontext"></a>

DataContext

A data context describes a member or measure. For example, a data context of a member is {"id": "[Date_703i1904sd].[YHQM].[Date_703i1904sd.YEAR].[2014]", "description": "2014", "parentId": "[Date_703i1904sd].[YHQM].[All].[(all)]", properties: {}}. For example, a data context of a measure is {"id": "[Account_BestRunJ_sold].[parentId].&[Discount]", "description": "Discount", "formattedValue": "45674567", "rawValue": "45674567"}.

Since

2019.20

Last Update

2020.10

Property Summary

Name and Description
description: string<br>Member or measure description (optional)
formattedValue: string<br>Formatted value (measures only)
id: string<br>Member or measure ID
parentId: string<br>Parent ID of member or measure (optional)
properties: ResultMemberProperties<br>Properties of a dimension
rawValue: string<br>Raw (unformatted) value (measures only)

Property Detail

description
description: string<br>Member or measure description (optional)
formattedValue
formattedValue: string<br>Formatted value (measures only)
id
id: string<br>Member or measure ID
parentId
parentId: string<br>Parent ID of member or measure (optional)
properties
properties: ResultMemberProperties<br>Properties of a dimension<br>Since<br>2020.10
rawValue
rawValue: string<br>Raw (unformatted) value (measures only)

Type Library planning

C


<a name="datalocking"></a>

DataLocking

Since

2019.22

Method Summary

Name and Description
getState(selection: Selection JSON): DataLockingState<br>Returns the data locking state of a data cell.
setState(selection: Selection JSON, value: DataLockingState): boolean<br>Sets the data locking state of a data cell.

Method Detail

getState
getState(selection: Selection JSON): DataLockingState

Returns the data locking state of a data cell. The data cell is specified by the selection.

Parameters

selection: Selection JSON

Returns

DataLockingState |

setState
setState(selection: Selection JSON, value: DataLockingState): boolean

Sets the data locking state of a data cell. The data cell is specified by the selection. If this operation was successful, then true is returned, and false if it wasn't.

Parameters

selection: Selection JSON
value: DataLockingState

Returns

boolean |

Type Library planning

E


<a name="datalockingstate"></a>

DataLockingState

Since

2019.22

Property Summary

Name and Description
static Locked: DataLockingState<br>The value of a data cell can't be changed.
static Mixed: DataLockingState<br>The data locking state can't be determined.
static Open: DataLockingState<br>The value of a data cell can be changed by users who have the permission to enter values for the model.
static Restricted: DataLockingState<br>The value of a data cell can be changed only by users who have effective ownership of the locks of the data cell.

Property Detail

Locked
staticLocked: DataLockingState<br>The value of a data cell can't be changed.
Mixed
staticMixed: DataLockingState<br>The data locking state can't be determined.
Open
staticOpen: DataLockingState<br>The value of a data cell can be changed by users who have the permission to enter values for the model.
Restricted
staticRestricted: DataLockingState<br>The value of a data cell can be changed only by users who have effective ownership of the locks of the data cell.

Type Library datasource

C


<a name="datasource"></a>

DataSource

Last Update

2024.20

Method Summary

Name and Description
collapseNode(dimension: string | DimensionInfo JSON, selection: Selection JSON): void<br>Collapses a hierarchy node.
copyDimensionFilterFrom(sourceDataSource: DataSource, dimension?: string | string[] | DimensionInfo JSON | DimensionInfo[]JSON): void<br>Copies the dimension filters of the dimensions of the source data source to the dimensions of this data source.
copyVariableValueFrom(sourceDataSource: DataSource, variable?: string | string[] | VariableInfo | VariableInfo[]): void<br>Copies the value of a variable.
expandNode(dimension: string | DimensionInfo JSON, selection: Selection JSON): void<br>Expands a hierarchy node.
getBackendCondition(backendConditionId: string): BackendCondition<br>Gets a BEx condition by its ID.
getBackendConditions(): BackendCondition[]<br>Gets all BEx conditions.
getComments(): DataSourceComments<br>Deprecated This method is deprecated, use Table.getComments() instead.
getData(selection: Selection JSON): DataCell<br>Returns the data cell of the selection.
getDataSelections(selections?: Selection JSON | Selection[]JSON | SelectionContext JSON, offset?: integer, limit?: integer): Selection[]<br>Returns selections of data cells.
getDimensionFilters(dimension: string | DimensionInfo JSON): FilterValue[]<br>Returns the dimension filters.
getDimensionProperties(dimension: string | DimensionInfo JSON): DimensionPropertyInfo[]<br>Returns the properties of the dimension.
getDimensions(): DimensionInfo[]<br>Returns all dimensions of the data source.
getHierarchies(dimension: string | DimensionInfo JSON): HierarchyInfo[]<br>Returns all hierarchies of the dimension.
getHierarchy(dimension: string | DimensionInfo JSON): HierarchyInfo<br>Returns the hierarchy set on the dimension.
getHierarchyLevel(dimension: string | DimensionInfo JSON): integer<br>Returns the hierarchy level of the dimension.
getInfo(): DataSourceInfo<br>Returns information about the data source.
getMeasures(): MeasureInfo[]<br>Returns all measures of the data source.
getMember(dimension: string | DimensionInfo JSON, memberId: string, hierarchy?: string | HierarchyInfo JSON): MemberInfo<br>Returns the member info object from a member ID.
getMemberDisplayMode(dimension: string | DimensionInfo JSON): MemberDisplayMode<br>Returns the display mode for members of the dimension.
getMembers(dimension: string | DimensionInfo JSON, options?: integer | MembersOptions JSON): MemberInfo[]<br>Returns the members of the dimension.
getRefreshPaused(): PauseMode<br>Returns the pause mode of the data refresh.
getResultMember(dimension: string | DimensionInfo JSON, selection: Selection JSON): ResultMemberInfo<br>Returns the result member.
getResultSet(selections?: Selection JSON | Selection[]JSON | SelectionContext JSON, offset?: integer, limit?: integer): ResultSet[]<br>Returns result sets.
getVariables(): VariableInfo[]<br>Returns all variables of the data source.
getVariableValues(variable: string | VariableInfo): VariableValue[]<br>Returns the values of the variable.
isRefreshPaused(): boolean<br>Deprecated This method is deprecated, use getRefreshPaused() instead.
isResultEmpty(): boolean<br>Returns whether the result of the data source query state is empty, that is, no data cells were returned.
openPromptDialog(): void<br>Opens the Prompt dialog for the model used by this data source.
refreshData(): void<br>Triggers data refresh and updates the widgets associated with the data source at the same time.
removeDimensionFilter(dimension: string | DimensionInfo JSON): void<br>Removes any filter that is set on the dimension.
removeVariableValue(variable: string | VariableInfo): void<br>Removes the value of the variable.
setDimensionFilter(dimension: string | DimensionInfo JSON, member: string | string[] | MemberInfo JSON | MemberInfo[]JSON | MeasureInfo JSON | MeasureInfo[]JSON | TimeRange | TimeRange[] | FilterValue JSON | RangeFilterValue[]JSON): void<br>Sets a filter on the dimension.
setHierarchy(dimension: string | DimensionInfo JSON, hierarchy: string | HierarchyInfo JSON): void<br>Sets the hierarchy on the dimension.
setHierarchyLevel(dimension: string | DimensionInfo JSON, level?: integer): void<br>Sets the hierarchy level of the dimension.
setMemberDisplayMode(dimension: string | DimensionInfo JSON, displayMode: MemberDisplayMode): void<br>Sets the display mode for members of the dimension.
setRefreshPaused(paused: PauseMode | boolean): void<br>Sets the pause mode of the data refresh.
setVariableValue(variable: string | VariableInfo, variableValue: string | number | VariableValue JSON | VariableValue[]JSON, options?: SetVariableValueOptions JSON): void<br>Sets the value of the variable.

Method Detail

collapseNode
collapseNode(dimension: string | DimensionInfo JSON, selection: Selection JSON): void

Collapses a hierarchy node. The dimension node specified by the selection is collapsed. For tables, only one dimension node is collapsed. The expansion state of its child nodes is restored when this dimension node is expanded again. For charts, all specified dimension nodes are collapsed, along with their child nodes. For Waterfall charts with one or more dimensions, the selection specifies one dimension and one measure. For Waterfall charts with one measure but no dimensions, the selection specifies this measure. For Waterfall charts with more than one measure but no dimensions, this operation is ignored. Note: Currently, this operation is not supported for data sources associated with geo map layers.

Parameters

dimension: string | DimensionInfo JSON
selection: Selection JSON

Since

2020.11 |

copyDimensionFilterFrom
copyDimensionFilterFrom(sourceDataSource: DataSource, dimension?: string | string[] | DimensionInfo JSON | DimensionInfo[]JSON): void

Copies the dimension filters of the dimensions of the source data source to the dimensions of this data source. If no dimensions are specified, then the filters of all matching dimensions are copied. Note: Only filters on dimensions with the same name and the same active hierarchy in both the source data source and this data source are copied. Note: Advanced Filters are not copied.

Parameters

sourceDataSource: DataSource
dimensionOptional: string | string[] | DimensionInfo JSON | DimensionInfo[]JSON

Last Update

2019.7 |

copyVariableValueFrom
copyVariableValueFrom(sourceDataSource: DataSource, variable?: string | string[] | VariableInfo | VariableInfo[]): void

Copies the value of a variable. If no variable is specified, then all variable values of the data source are copied. If you copy an empty variable value to a mandatory variable, then copying this variable is ignored. If you copy a variable value to a data source of a widget that overrides variables and the variable is of type text, then copying this variable is ignored.

Parameters

sourceDataSource: DataSource
variableOptional: string | string[] | VariableInfo | VariableInfo[]

Since

2020.3 |

expandNode
expandNode(dimension: string | DimensionInfo JSON, selection: Selection JSON): void

Expands a hierarchy node. Only one hierarchy dimension can be expanded. Every node on the hierarchy path is expanded as well. For tables, this operation is ignored if one of the dimension nodes on the hierarchy path doesn't exist. Invalid dimensions in the selection are ignored. For charts, all dimension nodes specified by the selection are expanded. If the selection doesn't specify dimension nodes of the specified dimension, then this operation is ignored. For Waterfall charts with one or more dimensions, the selection specifies one dimension and one measure. For Waterfall charts with one measure but no dimensions, the selection specifies this measure. For Waterfall charts with more than one measure but no dimensions, this operation is ignored. Note: Currently, this operation is not supported for data sources associated with geo map layers.

Parameters

dimension: string | DimensionInfo JSON
selection: Selection JSON

Since

2020.11 |

getBackendCondition
getBackendCondition(backendConditionId: string): BackendCondition

Gets a BEx condition by its ID. Note: Only supported for data sources associated with charts.

Parameters

backendConditionId: string

Returns

BackendCondition

Since

2024.20 |

getBackendConditions
getBackendConditions(): BackendCondition[]<br>Gets all BEx conditions. Note: Only supported for data sources associated with charts.<br>Returns<br>BackendCondition[]<br>Since<br>2024.20
getComments
getComments(): DataSourceComments <br>Deprecated This method is deprecated, use Table.getComments() instead. Returns the comments of the data source. Note: Currently, this operation is only supported for data sources associated with tables. If the data source isn't associated with a table, then undefined is returned.<br>Returns<br>DataSourceComments<br>Since<br>2019.18<br>Deprecated<br>2022.20
getData
getData(selection: Selection JSON): DataCell

Returns the data cell of the selection. If no value is available for that selection, then undefined is returned. See also the documentation of Selection.

Parameters

selection: Selection JSON

Returns

DataCell

Last Update

2019.7 |

getDataSelections
getDataSelections(selections?: Selection JSON | Selection[]JSON | SelectionContext JSON, offset?: integer, limit?: integer): Selection[]

Returns selections of data cells. Optionally, you can specify the offset and the limit, which must be zero or positive numbers. If no offset and limit are specified or are invalid, then a selection including all data cells is returned. See also the documentation of Selection or SelectionContext.

Parameters

selectionsOptional: Selection JSON | Selection[]JSON | SelectionContext JSON
offsetOptional: integer
limitOptional: integer

Returns

Selection[]

Since

2019.20

Last Update

2020.6 |

getDimensionFilters
getDimensionFilters(dimension: string | DimensionInfo JSON): FilterValue[]

Returns the dimension filters. They don't contain Advanced Filters. Note: Currently, they don't contain time range filters.

Parameters

dimension: string | DimensionInfo JSON

Returns

FilterValue[]

Since

2020.13 |

getDimensionProperties
getDimensionProperties(dimension: string | DimensionInfo JSON): DimensionPropertyInfo[]

Returns the properties of the dimension. Note: Currently, this operation is only supported for data sources associated with tables.

Parameters

dimension: string | DimensionInfo JSON

Returns

DimensionPropertyInfo[]

Since

2020.7 |

getDimensions
getDimensions(): DimensionInfo[]<br>Returns all dimensions of the data source.<br>Returns<br>DimensionInfo[]
getHierarchies
getHierarchies(dimension: string | DimensionInfo JSON): HierarchyInfo[]

Returns all hierarchies of the dimension.

Parameters

dimension: string | DimensionInfo JSON

Returns

HierarchyInfo[]

Last Update

2019.7 |

getHierarchy
getHierarchy(dimension: string | DimensionInfo JSON): HierarchyInfo

Returns the hierarchy set on the dimension.

Parameters

dimension: string | DimensionInfo JSON

Returns

HierarchyInfo

Last Update

2019.7 |

getHierarchyLevel
getHierarchyLevel(dimension: string | DimensionInfo JSON): integer

Returns the hierarchy level of the dimension. This operation is only supported for data sources associated with tables, charts and optimized geo map bubble color. If the dimension is invalid or if the dimension doesn't have a hierarchy, then undefined is returned. Note: This operation isn't supported for data sources associated with charts on SAP BW models and undefined is returned. For non-active dimensions this operation is only supported for data sources associated with charts in optimized view mode.

Parameters

dimension: string | DimensionInfo JSON

Returns

integer

Since

2020.11 |

getInfo
getInfo(): DataSourceInfo<br>Returns information about the data source.<br>Returns<br>DataSourceInfo<br>Since<br>2021.19
getMeasures
getMeasures(): MeasureInfo[]<br>Returns all measures of the data source.<br>Returns<br>MeasureInfo[]<br>Since<br>2019.1
getMember
getMember(dimension: string | DimensionInfo JSON, memberId: string, hierarchy?: string | HierarchyInfo JSON): MemberInfo

Returns the member info object from a member ID. Note: The member ID of a member may differ depending on its dimension's hierarchy. For example, for a SAP BW system, the member ID of the same member may be "DE" for a flat presentation hierarchy and "!DE" for an actual hierarchy. Note: If the specified hierarchy doesn't exist, then undefined is returned. Note: If the data source is associated with an R visualization and you specify a hierarchy other than Alias.FlatHierarchy (flat presentation), then undefined is returned. Note: returns compounded displayId if available.

Parameters

dimension: string | DimensionInfo JSON
memberId: string
hierarchyOptional: string | HierarchyInfo JSON

Returns

MemberInfo

Since

2021.1 |

getMemberDisplayMode
getMemberDisplayMode(dimension: string | DimensionInfo JSON): MemberDisplayMode

Returns the display mode for members of the dimension.

Parameters

dimension: string | DimensionInfo JSON

Returns

MemberDisplayMode

Since

2019.1

Last Update

2019.7 |

getMembers
getMembers(dimension: string | DimensionInfo JSON, options?: integer | MembersOptions JSON): MemberInfo[]

Returns the members of the dimension. If you specify a number, then at most this many members are returned (default: 200). If you specify members options, then you can control the returned set of members even finer. Note: If the hierarchy specified in the members options doesn't exist, then an empty array is returned. Note: If the data source is associated with an R visualization and you specify a hierarchy other than Alias.FlatHierarchy (flat presentation) in the members options, then an empty array is returned. Note: returns compounded displayId if available.

Parameters

dimension: string | DimensionInfo JSON
optionsOptional: integer | MembersOptions JSON

Returns

MemberInfo[]

Last Update

2021.1 |

getRefreshPaused
getRefreshPaused(): PauseMode<br>Returns the pause mode of the data refresh. Note: This operation is only supported for data sources associated with charts or tables.<br>Returns<br>PauseMode<br>Since<br>2021.18
getResultMember
getResultMember(dimension: string | DimensionInfo JSON, selection: Selection JSON): ResultMemberInfo

Returns the result member. It is specified by a dimension and a selection.

Parameters

dimension: string | DimensionInfo JSON
selection: Selection JSON

Returns

ResultMemberInfo

Since

2019.20 |

getResultSet
getResultSet(selections?: Selection JSON | Selection[]JSON | SelectionContext JSON, offset?: integer, limit?: integer): ResultSet[]

Returns result sets. The result sets are specified by selections. Optionally, you can specify the offset and the limit, which must be zero or positive numbers. If no offset and limit are specified or are invalid, then a result set including all data is returned. See also the documentation of Selection or SelectionContext.

Parameters

selectionsOptional: Selection JSON | Selection[]JSON | SelectionContext JSON
offsetOptional: integer
limitOptional: integer

Returns

ResultSet[]

Since

2019.20

Last Update

2020.6 |

getVariableValues
getVariableValues(variable: string | VariableInfo): VariableValue[]

Returns the values of the variable. Each value can be a single, multiple, or range variable value. To access its type-specific properties, cast the value to the corresponding value type based on the "type" property, using the global cast function. Note: This method may return outdated values with SAP BW dynamic filter variables. Use getDimensionFilters() instead if you are interested in their current values.

Parameters

variable: string | VariableInfo

Returns

VariableValue[]

Since

2020.13 |

getVariables
getVariables(): VariableInfo[]<br>Returns all variables of the data source.<br>Returns<br>VariableInfo[]<br>Since<br>2019.22
isRefreshPaused
isRefreshPaused(): boolean<br>Deprecated This method is deprecated, use getRefreshPaused() instead. Returns whether the data refresh is paused. If the pause mode of the data source is Auto, then false is returned.<br>Returns<br>boolean<br>Since<br>2020.20<br>Deprecated<br>2021.19
isResultEmpty
isResultEmpty(): boolean<br>Returns whether the result of the data source query state is empty, that is, no data cells were returned.<br>Returns<br>boolean
openPromptDialog
openPromptDialog(): void<br>Opens the Prompt dialog for the model used by this data source. By default, this is the same as opening the Prompt dialog from the toolbar for the model used by this data source. If the widget is overriding the variables, then this is the same as opening the Prompt dialog from the widget directly.
refreshData
refreshData(): void<br>Triggers data refresh and updates the widgets associated with the data source at the same time. Note: This operation is only supported for data sources associated with charts, tables or geo map layers. Otherwise, no data refresh is triggered.<br>Since<br>2020.1
removeDimensionFilter
removeDimensionFilter(dimension: string | DimensionInfo JSON): void

Removes any filter that is set on the dimension. Advanced Filters aren't affected.

Parameters

dimension: string | DimensionInfo JSON

Last Update

2019.7 |

removeVariableValue
removeVariableValue(variable: string | VariableInfo): void

Removes the value of the variable. By default, this removes the variable value of the variable for the data source on the application. If you remove the variable value of a variable for a data source of a widget that overrides variables, then this operation removes only the variable value for this widget. If you remove a variable value from a mandatory variable, then this operation is ignored. If you remove a variable value of a variable for a data source of a widget that overrides variables and the variable is of type text, then this operation is ignored.

Parameters

variable: string | VariableInfo

Since

2020.3 |

setDimensionFilter
setDimensionFilter(dimension: string | DimensionInfo JSON, member: string | string[] | MemberInfo JSON | MemberInfo[]JSON | MeasureInfo JSON | MeasureInfo[]JSON | TimeRange | TimeRange[] | FilterValue JSON | RangeFilterValue[]JSON): void

Sets a filter on the dimension. Any existing filter (except Advanced Filters) on the dimension is overwritten. For most dimensions, you can specify one or multiple members to be included or excluded in the filter. Note that for charts, the exclude option doesn't support Alias.MeasureDimension from SAP BW models. For date and time based dimensions, you can specify one or more time ranges to be included in the filter. For numeric dimensions, you can specify one or more filter ranges to be included in the filter. If the dimension has a hierarchy, then the specified members need to be part of this hierarchy. If they belong to a different hierarchy, then set that hierarchy with DataSource.setHierarchy() first before calling DataSource.setDimensionFilter().

Parameters

dimension: string | DimensionInfo JSON
member: string | string[] | MemberInfo JSON | MemberInfo[]JSON | MeasureInfo JSON | MeasureInfo[]JSON | TimeRange | TimeRange[] | FilterValue JSON | RangeFilterValue[]JSON

Last Update

2020.7 |

setHierarchy
setHierarchy(dimension: string | DimensionInfo JSON, hierarchy: string | HierarchyInfo JSON): void

Sets the hierarchy on the dimension. Note: Currently, this operation is ignored for measure structures. This operation is not supported for data sources associated with geo map layers.

Parameters

dimension: string | DimensionInfo JSON
hierarchy: string | HierarchyInfo JSON

Last Update

2019.7 |

setHierarchyLevel
setHierarchyLevel(dimension: string | DimensionInfo JSON, level?: integer): void

Sets the hierarchy level of the dimension. If the dimension or the hierarchy level of the dimension is invalid, then this operation is ignored. The default value of the level is defined by the dimension's default level. For data sources associated with charts, the level value is optional.

Parameters

dimension: string | DimensionInfo JSON
levelOptional: integer

Since

2020.11 |

setMemberDisplayMode
setMemberDisplayMode(dimension: string | DimensionInfo JSON, displayMode: MemberDisplayMode): void

Sets the display mode for members of the dimension.

Parameters

dimension: string | DimensionInfo JSON
displayMode: MemberDisplayMode

Since

2019.1

Last Update

2019.7 |

setRefreshPaused
setRefreshPaused(paused: PauseMode | boolean): void

Sets the pause mode of the data refresh. The script is fully executed without waiting for all the widgets associated with the data source to be updated when their pause of data refresh is disabled. Note: This operation is only supported for data sources associated with charts or tables. For more information about the different modes, see the chapter "Use Pause Refresh Options and APIs" in SAP Analytics Cloud Help.

Parameters

paused: PauseMode | boolean

Since

2020.20

Last Update

2021.18 |

setVariableValue
setVariableValue(variable: string | VariableInfo, variableValue: string | number | VariableValue JSON | VariableValue[]JSON, options?: SetVariableValueOptions JSON): void

Sets the value of the variable. By default, this sets the variable value of the variable for the data source on the application. If you set the variable value of a variable for a data source of a widget that overrides variables, then this operation sets only the variable value for this widget. If you set an empty variable value to a mandatory variable, then this operation is ignored. If you set a variable value of a variable for a data source of a widget that overrides variables and the variable is of type text, then this operation is ignored. Note: The variable value will not be validated. Note: You can omit loading variable descriptions (which are displayed in the Prompt dialog and in dynamic texts) by setting the optional property loadDescriptions in the options to false.

Parameters

variable: string | VariableInfo
variableValue: string | number | VariableValue JSON | VariableValue[]JSON
optionsOptional: SetVariableValueOptions JSON

Since

2019.22

Last Update

2021.17 |

Type Library datasource

C


<a name="datasourcecomments"></a>

DataSourceComments

Since

2019.18

Last Update

2023.6

Method Summary

Name and Description
addComment(selection: Selection JSON, value: string): CommentInfo<br>Adds a comment to data cells.
addComments(selection: Selection JSON, value: string[]): CommentInfo[]<br>Adds multiple comments to data cells.
getAllComments(selection: Selection JSON): CommentInfo[]<br>Returns all comments of data cells.
getComment(commentId: string): CommentInfo<br>Returns a comment.
removeAllComments(selection: Selection JSON): boolean<br>Removes all comments on data cells.
removeComment(commentId: string): boolean<br>Removes a comment.
setCommentLiked(commentId: string, isLiked: boolean): boolean<br>Switches the Like flag of a comment on or off.
updateComment(commentId: string, value: string): CommentInfo<br>Updates a comment.

Method Detail

addComment
addComment(selection: Selection JSON, value: string): CommentInfo

Adds a comment to data cells. The data cells are specified by the selection. If this operation was successful, then the comment is returned, and undefined if it wasn't.

Parameters

selection: Selection JSON
value: string

Returns

CommentInfo

Mobile Support

Not supported on mobile devices. |

addComments
addComments(selection: Selection JSON, value: string[]): CommentInfo[]

Adds multiple comments to data cells. The data cells are specified by the selection. If this operation was successful, then the comments are returned, and undefined if it wasn't. Note: Not supported for SAP BW live data models.

Parameters

selection: Selection JSON
value: string[]

Returns

CommentInfo[]

Mobile Support

Not supported on mobile devices.

Since

2020.22 |

getAllComments
getAllComments(selection: Selection JSON): CommentInfo[]

Returns all comments of data cells. The data cells are specified by the selection. If no comments exist, then an empty array is returned. Note: For SAP BW live data models, returns the only comment of the latest version.

Parameters

selection: Selection JSON

Returns

CommentInfo[]

Mobile Support

Not supported on mobile devices. |

getComment
getComment(commentId: string): CommentInfo

Returns a comment. The comment is specified by the comment ID. If the comment ID is invalid, then undefined is returned.

Parameters

commentId: string

Returns

CommentInfo

Mobile Support

Not supported on mobile devices. |

removeAllComments
removeAllComments(selection: Selection JSON): boolean

Removes all comments on data cells. The data cells are specified by the selection. If this operation was successful, then true is returned, and false if it wasn't. Note: For SAP BW live data models, removes the only comment along with all history versions.

Parameters

selection: Selection JSON

Returns

boolean

Mobile Support

Not supported on mobile devices. |

removeComment
removeComment(commentId: string): boolean

Removes a comment. The comment is specified by the comment ID. If this operation was successful, then true is returned, and false if it wasn't.

Parameters

commentId: string

Returns

boolean

Mobile Support

Not supported on mobile devices. |

setCommentLiked
setCommentLiked(commentId: string, isLiked: boolean): boolean

Switches the Like flag of a comment on or off. The comment is specified by the comment ID. If the comment ID is valid, then true is returned, and false if it isn't. Note: Not supported for SAP BW live data models.

Parameters

commentId: string
isLiked: boolean

Returns

boolean

Mobile Support

Not supported on mobile devices.

Since

2019.21 |

updateComment
updateComment(commentId: string, value: string): CommentInfo

Updates a comment. The comment is specified by the comment ID. Returns the latest comment if this operation is successful, and undefined if it fails. Note: Only supported for SAP BW live data models.

Parameters

commentId: string
value: string

Returns

CommentInfo

Mobile Support

Not supported on mobile devices.

Since

2023.6 |

Type Library datasource

C


<a name="datasourceinfo"></a>

DataSourceInfo

Since

2021.19

Property Summary

Name and Description
modelDescription: string<br>Description of the model
modelId: string<br>ID of the model
modelName: string<br>Name of the model
sourceDescription: string<br>Description of the SAP BW Query (for SAP BW models) or undefined (for all other models)
sourceLastChangedBy: string<br>Name of the user who changed the SAP BW Query most recently (for SAP BW models) or undefined (for all other models)
sourceLastRefreshedAt: Date<br>Date of the last data source refresh (for SAP BW models) or undefined (for all other models)
sourceName: string<br>Name of the SAP BW Query (for SAP BW models) or undefined (for all other models)

Property Detail

modelDescription
modelDescription: string<br>Description of the model
modelId
modelId: string<br>ID of the model
modelName
modelName: string<br>Name of the model
sourceDescription
sourceDescription: string<br>Description of the SAP BW Query (for SAP BW models) or undefined (for all other models)
sourceLastChangedBy
sourceLastChangedBy: string<br>Name of the user who changed the SAP BW Query most recently (for SAP BW models) or undefined (for all other models)
sourceLastRefreshedAt
sourceLastRefreshedAt: Date<br>Date of the last data source refresh (for SAP BW models) or undefined (for all other models)
sourceName
sourceName: string<br>Name of the SAP BW Query (for SAP BW models) or undefined (for all other models)

Type Library planning

E


<a name="datauploadexecutionresponsestatus"></a>

DataUploadExecutionResponseStatus

Since

2024.17

Property Summary

Name and Description
static Canceled: DataUploadExecutionResponseStatus<br>Execution has been canceled.
static Error: DataUploadExecutionResponseStatus<br>Execution ended with errors.
static Success: DataUploadExecutionResponseStatus<br>Execution ended successfully.
static Warning: DataUploadExecutionResponseStatus<br>Execution ended with warning.

Property Detail

Canceled
staticCanceled: DataUploadExecutionResponseStatus<br>Execution has been canceled.
Error
staticError: DataUploadExecutionResponseStatus<br>Execution ended with errors.
Success
staticSuccess: DataUploadExecutionResponseStatus<br>Execution ended successfully.
Warning
staticWarning: DataUploadExecutionResponseStatus<br>Execution ended with warning.

Type Library standard

O

Date

Creates JavaScript Date instances which let you work with dates and times.

Method Summary

Name and Description
static now(): integer<br>Returns the number of milliseconds elapsed since January 1, 1970, 00:00:00 UTC.
static parse(source: string): integer<br>Parses a string representation of a date and returns the number of milliseconds since January 1, 1970, 00:00:00 UTC.
static UTC(year: number, month: number, date: number, hour?: number, min?: number, sec?: number, ms?: number): integer<br>Returns the number of milliseconds in a date since January 1, 1970, 00:00:00 UTC.
getDate(): integer<br>Returns the day of the month of the specified date according to local time (where 1 represents the first day of the month).
getDay(): integer<br>Returns the day of the week of the specified date according to local time (where 0 represents Sunday).
getFullYear(): integer<br>Returns the full year of the specified date according to local time.
getHours(): integer<br>Returns the hour of the specified date according to local time.
getMilliseconds(): number<br>Returns the milliseconds of the specified date according to local time.
getMinutes(): integer<br>Returns the minutes of the specified date according to local time.
getMonth(): integer<br>Returns the month of the specified date according to local time (where 0 represents the first month of the year).
getSeconds(): integer<br>Returns the seconds of the specified date according to local time.
getTime(): integer<br>Returns the numeric value corresponding to the time for the specified date according to universal time.
getTimezoneOffset(): integer<br>Returns the time zone difference, in minutes, from the current locale to universal time.
getUTCDate(): integer<br>Returns the day of the month of the specified date according to universal time (where 1 represents the first day of the month).
getUTCDay(): integer<br>Returns the day of the week of the specified date according to universal time (where 0 represents Sunday).
getUTCHours(): integer<br>Returns the hours of the specified date according to universal time.
getUTCMilliseconds(): integer<br>Returns the milliseconds of the specified date according to universal time.
getUTCMinutes(): integer<br>Returns the minutes of the specified date according to universal time.
getUTCMonth(): integer<br>Returns the month of the specified date according to universal time (where 0 represents the first month of the year).
getUTCSeconds(): integer<br>Returns the seconds of the specified date according to universal time.
getYear(): integer<br>Returns the year of the specified date according to local time.
setDate(day: number): integer<br>Sets the day of the month of a specified date according to local time (where 1 represents the first day of the month).
setFullYear(year: number): integer<br>Sets the full year of a specified date according to local time.
setHours(hour: number): integer<br>Sets the hours of a specified date according to local time.
setMilliseconds(ms: number): integer<br>Sets the milliseconds of a specified date according to local time.
setMinutes(min: number): integer<br>Sets the minutes of a specified date according to local time.
setMonth(month: number): integer<br>Sets the month of a specified date according to local time (where 0 represents the first month of the year).
setSeconds(sec: number): integer<br>Sets the seconds of a specified date according to local time.
setTime(timeValue: integer): integer<br>Sets the date to the time represented by a number of milliseconds since January 1, 1970, 00:00:00 UTC.
setUTCDate(day: number): integer<br>Sets the day of the month of a specified date according to universal time (where 1 represents the first day of the month).
setUTCFullYear(year: number): integer<br>Sets the full year of a specified date according to universal time.
setUTCHours(hour: number): integer<br>Sets the hour of a specified date according to universal time.
setUTCMilliseconds(ms: number): integer<br>Sets the milliseconds of a specified date according to universal time.
setUTCMinutes(min: number): integer<br>Sets the minutes of a specified date according to universal time.
setUTCMonth(month: number): integer<br>Sets the month of a specified date according to universal time (where 0 represents the first month of the year).
setUTCSeconds(sec: number): integer<br>Sets the seconds of a specified date according to universal time.
toDateString(): string<br>Returns the "date" portion of a date in human readable form in American English.
toISOString(): string<br>Converts a date to a string in ISO 8601 Extended Format.
toJSON(): string<br>Returns a string (using toISOString()) representing the date's value.
toLocaleDateString(): string<br>Converts a date to a string, returning the "date" portion using the operating system's locale conventions.
toLocaleTimeString(): string<br>Converts a date to a string, returning the "time" portion using the operating system's locale conventions.
toTimeString(): string<br>Returns the "time" portion of a date in human readable form in American English.
toUTCString(): string<br>Converts a date to a string according to universal time.

Method Detail

UTC
staticUTC(year: number, month: number, date: number, hour?: number, min?: number, sec?: number, ms?: number): integer

Returns the number of milliseconds in a date since January 1, 1970, 00:00:00 UTC.

Parameters

year: number
month: number
date: number
hourOptional: number
minOptional: number
secOptional: number
msOptional: number

Returns

integer |

now
staticnow(): integer<br>Returns the number of milliseconds elapsed since January 1, 1970, 00:00:00 UTC.<br>Returns<br>integer
parse
staticparse(source: string): integer

Parses a string representation of a date and returns the number of milliseconds since January 1, 1970, 00:00:00 UTC.

Parameters

source: string

Returns

integer |

getDate
getDate(): integer<br>Returns the day of the month of the specified date according to local time (where 1 represents the first day of the month).<br>Returns<br>integer
getDay
getDay(): integer<br>Returns the day of the week of the specified date according to local time (where 0 represents Sunday).<br>Returns<br>integer
getFullYear
getFullYear(): integer<br>Returns the full year of the specified date according to local time.<br>Returns<br>integer
getHours
getHours(): integer<br>Returns the hour of the specified date according to local time.<br>Returns<br>integer
getMilliseconds
getMilliseconds(): number<br>Returns the milliseconds of the specified date according to local time.<br>Returns<br>number
getMinutes
getMinutes(): integer<br>Returns the minutes of the specified date according to local time.<br>Returns<br>integer
getMonth
getMonth(): integer<br>Returns the month of the specified date according to local time (where 0 represents the first month of the year).<br>Returns<br>integer
getSeconds
getSeconds(): integer<br>Returns the seconds of the specified date according to local time.<br>Returns<br>integer
getTime
getTime(): integer<br>Returns the numeric value corresponding to the time for the specified date according to universal time.<br>Returns<br>integer
getTimezoneOffset
getTimezoneOffset(): integer<br>Returns the time zone difference, in minutes, from the current locale to universal time.<br>Returns<br>integer
getUTCDate
getUTCDate(): integer<br>Returns the day of the month of the specified date according to universal time (where 1 represents the first day of the month).<br>Returns<br>integer
getUTCDay
getUTCDay(): integer<br>Returns the day of the week of the specified date according to universal time (where 0 represents Sunday).<br>Returns<br>integer
getUTCHours
getUTCHours(): integer<br>Returns the hours of the specified date according to universal time.<br>Returns<br>integer
getUTCMilliseconds
getUTCMilliseconds(): integer<br>Returns the milliseconds of the specified date according to universal time.<br>Returns<br>integer
getUTCMinutes
getUTCMinutes(): integer<br>Returns the minutes of the specified date according to universal time.<br>Returns<br>integer
getUTCMonth
getUTCMonth(): integer<br>Returns the month of the specified date according to universal time (where 0 represents the first month of the year).<br>Returns<br>integer
getUTCSeconds
getUTCSeconds(): integer<br>Returns the seconds of the specified date according to universal time.<br>Returns<br>integer
getYear
getYear(): integer<br>Returns the year of the specified date according to local time.<br>Returns<br>integer
setDate
setDate(day: number): integer

Sets the day of the month of a specified date according to local time (where 1 represents the first day of the month). Returns the number of milliseconds between January 1, 1970, 00:00:00 UTC and the updated date.

Parameters

day: number

Returns

integer |

setFullYear
setFullYear(year: number): integer

Sets the full year of a specified date according to local time. Returns the number of milliseconds between January 1, 1970, 00:00:00 UTC and the updated date.

Parameters

year: number

Returns

integer |

setHours
setHours(hour: number): integer

Sets the hours of a specified date according to local time. Returns the number of milliseconds between January 1, 1970, 00:00:00 UTC and the updated date.

Parameters

hour: number

Returns

integer |

setMilliseconds
setMilliseconds(ms: number): integer

Sets the milliseconds of a specified date according to local time. Returns the number of milliseconds between January 1, 1970, 00:00:00 UTC and the updated date.

Parameters

ms: number

Returns

integer |

setMinutes
setMinutes(min: number): integer

Sets the minutes of a specified date according to local time. Returns the number of milliseconds between January 1, 1970, 00:00:00 UTC and the updated date.

Parameters

min: number

Returns

integer |

setMonth
setMonth(month: number): integer

Sets the month of a specified date according to local time (where 0 represents the first month of the year). Returns the number of milliseconds between January 1, 1970, 00:00:00 UTC and the updated date.

Parameters

month: number

Returns

integer |

setSeconds
setSeconds(sec: number): integer

Sets the seconds of a specified date according to local time. Returns the number of milliseconds between January 1, 1970, 00:00:00 UTC and the updated date.

Parameters

sec: number

Returns

integer |

setTime
setTime(timeValue: integer): integer

Sets the date to the time represented by a number of milliseconds since January 1, 1970, 00:00:00 UTC.

Parameters

timeValue: integer

Returns

integer |

setUTCDate
setUTCDate(day: number): integer

Sets the day of the month of a specified date according to universal time (where 1 represents the first day of the month). Returns the number of milliseconds between January 1, 1970, 00:00:00 UTC and the updated date.

Parameters

day: number

Returns

integer |

setUTCFullYear
setUTCFullYear(year: number): integer

Sets the full year of a specified date according to universal time. Returns the number of milliseconds between January 1, 1970, 00:00:00 UTC and the updated date.

Parameters

year: number

Returns

integer |

setUTCHours
setUTCHours(hour: number): integer

Sets the hour of a specified date according to universal time. Returns the number of milliseconds between January 1, 1970, 00:00:00 UTC and the updated date.

Parameters

hour: number

Returns

integer |

setUTCMilliseconds
setUTCMilliseconds(ms: number): integer

Sets the milliseconds of a specified date according to universal time. Returns the number of milliseconds between January 1, 1970, 00:00:00 UTC and the updated date.

Parameters

ms: number

Returns

integer |

setUTCMinutes
setUTCMinutes(min: number): integer

Sets the minutes of a specified date according to universal time. Returns the number of milliseconds between January 1, 1970, 00:00:00 UTC and the updated date.

Parameters

min: number

Returns

integer |

setUTCMonth
setUTCMonth(month: number): integer

Sets the month of a specified date according to universal time (where 0 represents the first month of the year). Returns the number of milliseconds between January 1, 1970, 00:00:00 UTC and the updated date.

Parameters

month: number

Returns

integer |

setUTCSeconds
setUTCSeconds(sec: number): integer

Sets the seconds of a specified date according to universal time. Returns the number of milliseconds between January 1, 1970, 00:00:00 UTC and the updated date.

Parameters

sec: number

Returns

integer |

toDateString
toDateString(): string<br>Returns the "date" portion of a date in human readable form in American English.<br>Returns<br>string
toISOString
toISOString(): string<br>Converts a date to a string in ISO 8601 Extended Format.<br>Returns<br>string
toJSON
toJSON(): string<br>Returns a string (using toISOString()) representing the date's value.<br>Returns<br>string
toLocaleDateString
toLocaleDateString(): string<br>Converts a date to a string, returning the "date" portion using the operating system's locale conventions.<br>Returns<br>string
toLocaleTimeString
toLocaleTimeString(): string<br>Converts a date to a string, returning the "time" portion using the operating system's locale conventions.<br>Returns<br>string
toTimeString
toTimeString(): string<br>Returns the "time" portion of a date in human readable form in American English.<br>Returns<br>string
toUTCString
toUTCString(): string<br>Converts a date to a string according to universal time.<br>Returns<br>string

Type Library standard

C


<a name="filedatasource"></a>

FileDataSource

Since

2023.13

Method Summary

Name and Description
getDimensionFilters(dimension: string | DimensionInfo JSON): FilterValue[]<br>Returns the dimension filters.
getVariableValues(variable: string | VariableInfo): VariableValue[]<br>Returns the values of the variable on the story.
removeDimensionFilter(dimension: string | DimensionInfo JSON): void<br>Removes any filter that is set on the dimension.
removeVariableValue(variable: string | VariableInfo): void<br>Removes the value of the variable on the story.
setDimensionFilterWithHierarchy(dimension: string | DimensionInfo JSON, hierarchy: string | HierarchyInfo JSON, member: string | string[] | MemberInfo JSON | MemberInfo[]JSON | TimeRange | TimeRange[] | FilterValue JSON | RangeFilterValue[]JSON): void<br>Sets a filter on the dimension.
setVariableValue(variable: string | VariableInfo, variableValue: string | number | VariableValue JSON | VariableValue[]JSON, options?: SetVariableValueOptions JSON): void<br>Sets the value of the variable on the story.

Method Detail

getDimensionFilters
getDimensionFilters(dimension: string | DimensionInfo JSON): FilterValue[]

Returns the dimension filters. They don't contain Advanced Filters. Note: Currently, they don't contain time range filters.

Parameters

dimension: string | DimensionInfo JSON

Returns

FilterValue[] |

getVariableValues
getVariableValues(variable: string | VariableInfo): VariableValue[]

Returns the values of the variable on the story. Each value can be a single, multiple, or range variable value. To access its type-specific properties, cast the value to the corresponding value type based on the "type" property, using the global cast function.

Parameters

variable: string | VariableInfo

Returns

VariableValue[] |

removeDimensionFilter
removeDimensionFilter(dimension: string | DimensionInfo JSON): void

Removes any filter that is set on the dimension. Advanced Filters aren't affected.

Parameters

dimension: string | DimensionInfo JSON
removeVariableValue
removeVariableValue(variable: string | VariableInfo): void

Removes the value of the variable on the story. This removes the variable value of the variable for the data source on the story.

Parameters

variable: string | VariableInfo
setDimensionFilterWithHierarchy
setDimensionFilterWithHierarchy(dimension: string | DimensionInfo JSON, hierarchy: string | HierarchyInfo JSON, member: string | string[] | MemberInfo JSON | MemberInfo[]JSON | TimeRange | TimeRange[] | FilterValue JSON | RangeFilterValue[]JSON): void

Sets a filter on the dimension. Any existing filter (except Advanced Filters) on the dimension is overwritten. For most dimensions, you can specify one or multiple members to be included or excluded in the filter. For date- and time-based dimensions, you can specify one or more time ranges to be included in the filter. For numeric dimensions, you can specify one or more filter ranges to be included in the filter. The specified members need to be part of the hierarchy.

Parameters

dimension: string | DimensionInfo JSON
hierarchy: string | HierarchyInfo JSON
member: string | string[] | MemberInfo JSON | MemberInfo[]JSON | TimeRange | TimeRange[] | FilterValue JSON | RangeFilterValue[]JSON
setVariableValue
setVariableValue(variable: string | VariableInfo, variableValue: string | number | VariableValue JSON | VariableValue[]JSON, options?: SetVariableValueOptions JSON): void

Sets the value of the variable on the story. If you set an empty variable value to a mandatory variable, then this operation is ignored. Note: The variable value will not be validated.

Parameters

variable: string | VariableInfo
variableValue: string | number | VariableValue JSON | VariableValue[]JSON
optionsOptional: SetVariableValueOptions JSON

Type Library planning

C


<a name="inputcontrol"></a>

InputControl

extends Widget

Since

2021.13

Last Update

2023.7

Method Summary

Name and Description
getInputControlDataSource(): InputControlDataSource<br>Returns the data source of input control widget
Inherited from Widget
getCssClass, getLayout, isVisible, setCssClass, setVisible

Event Summary

Name and Description
onSelect(): void<br>Called when the user changes the selections on the input control.

Method Detail

getInputControlDataSource
getInputControlDataSource(): InputControlDataSource<br>Returns the data source of input control widget<br>Returns<br>InputControlDataSource<br>Since<br>2022.7<br>Last Update<br>2022.14

Event Detail

onSelect
onSelect(): void<br>Called when the user changes the selections on the input control. The onSelect event is only supported for dimension member input controls and calculation input controls, while not supported for other types, such as range filters and dimension input controls.<br>Since<br>2023.7

Type Library visualization-controls

C


<a name="inputcontroldatasource"></a>

InputControlDataSource

Since

2022.14

Last Update

2025.7

Method Summary

Name and Description
getActiveSelectedMembers(options?: integer | ActiveSelectedMembersOptions JSON): MemberInfo[]<br>Returns the active selected dimension members.
getActiveSelectedMembersWithUnbooked(options?: integer | ActiveSelectedMembersOptions JSON): MemberInfo[]<br>Returns the active selected dimension members on the input control, including unbooked ones.
isAllMembersSelected(): boolean<br>Returns whether all members have been selected on the input control.
setAllMembersSelected(): void<br>Selects all members on the input control.
setSelectedMembers(member: string | string[] | MemberInfo JSON | MemberInfo[]JSON): void<br>Sets dimension members on the input control.
setSelectedMembersWithUnbooked(member: string | string[] | MemberInfo JSON | MemberInfo[]JSON): void<br>Sets dimension members on the input control, including unbooked ones.

Method Detail

getActiveSelectedMembers
getActiveSelectedMembers(options?: integer | ActiveSelectedMembersOptions JSON): MemberInfo[]

Returns the active selected dimension members. You can define how many members are returned at most. By default it's 100 if not specified. Note: Not supported for input controls that display all available members including unbooked ones. Not supported for range filters and advanced filters. Not supported for members excluded via “Exclude selected members”, or selecting “All Members” and then deselecting. Note: Please consider the performance impact when using this API. Always try to use it on input controls with low cardinality dimensions, or turn on cascading effect to narrow down the dimension members on input controls.

Parameters

optionsOptional: integer | ActiveSelectedMembersOptions JSON

Returns

MemberInfo[]

Last Update

2025.7 |

getActiveSelectedMembersWithUnbooked
getActiveSelectedMembersWithUnbooked(options?: integer | ActiveSelectedMembersOptions JSON): MemberInfo[]

Returns the active selected dimension members on the input control, including unbooked ones. To use this API, ensure that the input control is either dimension member or calculation input control, and cascading effect off. Other types such as range filters aren't supported. Members excluded via “Exclude selected members”, or selecting “All Members” and then deselecting aren’t supported. You can limit the number of returned members (by default 100). Be mindful of performance impacts on high cardinality dimensions.

Parameters

optionsOptional: integer | ActiveSelectedMembersOptions JSON

Returns

MemberInfo[]

Since

2024.1

Last Update

2025.7 |

isAllMembersSelected
isAllMembersSelected(): boolean<br>Returns whether all members have been selected on the input control. Note: Not supported for excluded members, range filters and advanced filters.<br>Returns<br>boolean<br>Since<br>2023.7
setAllMembersSelected
setAllMembersSelected(): void<br>Selects all members on the input control. Note: Not supported for excluded members, range filters and advanced filters.<br>Since<br>2023.7
setSelectedMembers
setSelectedMembers(member: string | string[] | MemberInfo JSON | MemberInfo[]JSON): void

Sets dimension members on the input control. The dimension members should be from the selected members configured at design time. Note: Not supported for input controls that display all available members including unbooked ones. Not supported for range filters and advanced filters. Not supported for members excluded via “Exclude selected members”, or selecting “All Members” and then deselecting.

Parameters

member: string | string[] | MemberInfo JSON | MemberInfo[]JSON
setSelectedMembersWithUnbooked
setSelectedMembersWithUnbooked(member: string | string[] | MemberInfo JSON | MemberInfo[]JSON): void

Sets dimension members on the input control, including unbooked ones. To use this API, ensure that the input control is either dimension member or calculation input control, and cascading effect off. Other types such as range filters aren't supported. Members excluded via “Exclude selected members”, or selecting “All Members” and then deselecting aren’t supported. The dimension members should be from the selected members configured at design time.

Parameters

member: string | string[] | MemberInfo JSON | MemberInfo[]JSON

Since

2024.1 |

Type Library input-controls

C


<a name="odataerror"></a>

ODataError

Since

2019.7

Property Summary

| |
| --- |
| Name and Description |
| code: string |
| details: ODataError[] |
| message: string |
| target: string |

Property Detail

| |
| --- |
| code |
| code: string |

| |
| --- |
| details |
| details: ODataError[] |

| |
| --- |
| message |
| message: string |

| |
| --- |
| target |
| target: string |

Type Library
oDataService

C
\


<a name="odataqueryoptions"></a>

ODataQueryOptions

Since

2020.7

Property Summary

| |
| --- |
| Name and Description |
| filter: string |
| orderby: string |
| select: string |
| skip: integer |
| top: integer |

Property Detail

| |
| --- |
| filter |
| filter: string |

| |
| --- |
| orderby |
| orderby: string |

| |
| --- |
| select |
| select: string |

| |
| --- |
| skip |
| skip: integer |

| |
| --- |
| top |
| top: integer |

Type Library
containers

C
\


<a name="rdataframe"></a>

RDataFrame

Method Summary

| |
| --- |
| Name and Description |
| getDataSource(): DataSource<br>Returns the data source of the data frame. |

Method Detail

| |
| --- |
| getDataSource |
| getDataSource(): DataSource<br>Returns the data source of the data frame.<br>Returns<br>DataSource |

Type Library
advanced-controls

C
\


DataUploadStarter

Type Library: planning | Since: 2025.17 | Last Update: 2026.7

Widget for initiating data uploads. Extends Widget.

Events:

Event Signature Description
onAfterExecute (status: DataUploadExecutionResponseStatus, message: string, statistics: DataUploadStatistics, rejectedDetails: string[][], versionName: string, fileName: string): void Called when the Data Upload Starter execution ends. Last Update: 2026.7
onBeforeExecute (): boolean Called when the user clicks the Data Upload Starter. Return true (default) to proceed, false to cancel.
onBeforeImport (fileName: string, fileContent: string[][], versionName: string, firstRowAsHeaders: boolean): DataUploadFileHandler Called before data import. Return a DataUploadFileHandler to modify or cancel the import. Since: 2026.1
DataUploadStarter_1.onAfterExecute = function(status, message, statistics, rejectedDetails, versionName, fileName) {
    if (status === DataUploadExecutionResponseStatus.Success) {
        Text_Status.setText("Upload complete: " + statistics.uploadedRowCount + " rows");
    }
    if (rejectedDetails.length > 0) {
        Text_Warning.setText(rejectedDetails.length + " rows rejected");
    }
    Text_File.setText("File: " + fileName);
    Text_Version.setText("Version: " + versionName);
};

DataUploadStarter_1.onBeforeImport = function(fileName, fileContent, versionName, firstRowAsHeaders) {
    return {
        continue: true,
        modifiedFileContent: fileContent
    };
};

Inherited from Widget: getCssClass(), getLayout(), isVisible(), setCssClass(), setVisible().


DataUploadStatistics

Type Library: planning | Since: 2026.7 | Last Update: 2026.8

An object defining the upload statistics of results for the data upload execution.

Properties:

Property Type Description
deletedRowCount integer Number of deleted rows
rejectedRowCount integer Number of rejected rows
skippedDeletionCount integer Number of skipped deletions
uploadedRowCount integer Number of uploaded rows (Since: 2026.8)
var stats = event.statistics;
console.log("Uploaded: " + stats.uploadedRowCount);
console.log("Rejected: " + stats.rejectedRowCount);
console.log("Deleted: " + stats.deletedRowCount);

DataUploadFileHandler

Type Library: planning | Since: 2026.1

An object defining a return value for the onBeforeImport event handler. Can be passed as a JSON object to method arguments.

Properties:

Property Type Description
continue boolean Whether the starter should continue with the execution
modifiedFileContent string[][] Modified content to be used for the import
DataUploadStarter_1.onBeforeImport = function(fileName, fileContent, versionName, firstRowAsHeaders) {
    var modified = fileContent.map(function(row) {
        return row.map(function(cell) {
            return cell.trim();
        });
    });
    return {
        continue: true,
        modifiedFileContent: modified
    };
};

Source: SKILL.md on GitHub

1 alert16d5 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    The skill is a comprehensive reference and template collection for SAP Analytics Cloud (SAC) scripting. It provides secure instructions for setting up an associated Model Context Protocol (MCP) server, including commit pinning and security flags during installation. It also incorporates multiple security best practices for developers, such as origin validation for iframe communication.

  • Socket16d

    1 alert: gptAnomaly

  • Snyk16d

    Risk: MEDIUM · 1 issue

  • Runlayer6mo

    32/61 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 620a19a. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated 2 months ago
Other metadata
metadata
{
  "maintainer": "Eduard Jiglau",
  "maintainer_email": "hello@sap-ai-skills.com",
  "website": "https://sap-ai-skills.com",
  "version": "2.4.1",
  "last_verified": "2026-06-11",
  "sac_version": "Q2 2026 (2026.8)",
  "api_reference_version": "2025.20 (OSE Q2 2026)",
  "documentation_source": "https://help.sap.com/docs/SAP_ANALYTICS_CLOUD",
  "reference_files": 66,
  "template_patterns": 56,
  "agents": 4,
  "commands": 4,
  "status": "docs_audited_runtime_pending",
  "known_issues": [
    "Live SAC story/runtime checks require tenant evidence before claiming production validation."
  ]
}

README badge

README badge for secondsky/sap-skills/sap-sac-scripting