Topic Status: Some information in this topic is preview and subject to change in future releases. Preview information describes new features or changes to existing features in Microsoft SQL Server 2016 Community Technology Preview 2 (CTP2).
Use the Action Form Editor pane on the Actions tab in Cube Designer to create and modify standard actions.
Expand to view the Target type and Target object options.
Select the type of object to which the action is to be associated. The server returns to the client only those actions that apply to the object of the specified type. The action is available to the client if the Condition is met and if the objects specified in the following table are selected.
A member is selected from a level based on the attribute in Target object.
The named set in Target object is selected. Select All cells to select all of the cells in the cube.
The cube in Target object is selected. Select CURRENTCUBE to use the current cube.
Using CURRENTCUBE provides additional portability in cases where the cube may be renamed or the action copied to other cubes. It is recommended that you use CURRENTCUBE to represent the current cube.
A member of the dimension in Target object is selected.
The hierarchy in Target object is selected.
A member within the hierarchy in Target object is selected.
The level in Target object is selected.
A member within the level in Target object is selected.
Select the object to which the action is to be associated. The Analysis Services instance returns to the client only those actions that apply to the selected object. The list of available objects is constrained by the choice of Target type.
Enter the Multidimensional Expressions (MDX) expression that describes an optional condition, used in conjunction with Target object, which further restricts when the action is available. The expression must return a Boolean value that, if true, indicates the action is available.
Drag selected elements from the Calculation Tools pane to this option to include the MDX syntax for the selected element.
Expand to view the Type and Action expression options.
Select the type of action to take when the action is run. The following action types are available:
Returns a Multidimensional Expressions (MDX) statement, representing a multidimensional dataset, to be run and displayed by the client application.
Returns a proprietary string that can be interpreted by client applications associated with the Application setting for this action.
Returns a Multidimensional Expressions (MDX) statement, representing a tabular rowset, to be run and displayed by the client application.
Returns a command string to be run by the client application.
Returns a Uniform Resource Location (URL) string to be opened by the client application, typically with an Internet browser.
Type the Multidimensional Expressions (MDX) expression that returns the string returned by the action to the client application for execution.
Expand to view the Invocation, Application, Description, Caption, and Caption Is MDX options.
Select the setting that indicates when the action should be carried out.
This option only provides a recommendation to a client application as to when to execute an action, and does not directly control the invocation of the action.
The following table describes the available settings.
The action should run as part of a batch operation or an Integration Services task.
The action runs when the user invokes the action.
The action runs when the cube is first opened.
Type the name of the application that can interpret the string returned by Action expression.
You can also use this option to identify which client application most commonly uses this action, as well as to display appropriate icons next to the action in a pop-up menu.
This option only provides a recommendation to a client application as to what client application should execute an action, and does not directly control access to the action. Client applications should hide any actions that are associated with other client applications.
Type the optional description of the action.
Type the caption to be displayed for the action in the client application if Caption Is MDX is set to False.
Type the Multidimensional Expressions (MDX) expression that returns a string for the caption if Caption Is MDX is set to True.
Caption is MDX
Select False to indicate that Caption contains a literal string representing a caption to be displayed for the action in the client application.
Select True to indicate that Caption contains an MDX expression that returns a string representing a caption to be displayed for the action in the client application. The MDX expression must be resolved before the action is returned to the client application.