FormulaDialog.show Method

Shows the formula dialog.
 

Parameters

script

Type: String
The actual script of the entire formula.
subScript

Type: String
The script of the formula that this current dialog is displaying.
syntaxTreeNode

Type: FunctionNode
The node of the formula in the syntax tree.
metricSet

Type: MetricSet
The metricset that this formula is associated with.
placeholderViewModels

Type: Array
ElementType: object

     Object containing the view model data of the placeholders:
      placeholderName [Type: string] - the name of the placeholder.
      placeholderTitle: [Type: string] - the title of the placeholder to display as the container of the placeholder data.
      placeholderType: [Type: knockout.observable] - the type of the placeholder
      measureSelection: [Type: knockout.observable] - the selected measure of the placeholder
      hierarchySelection: [Type: knockout.observable] - The selected hierarchy of the placeholder
      measures: [Type: knockout.observableArray] - the available measures of the placeholder
      hierarchies: [Type: knockout.observableArray] - the available hierarchies of the placeholder.
 
codeMirror

Type: CodeMirror
The CodeMirror where the function is shown.

Return Value


Type: jQuery.Promise
Value: Object
A promise object that is resolved when the dialog is complete, or rejected if it's cancelled. The dialog may return some specific information in the deferred.