getExpressionEditorDialog();
The getExpressionEditorDialog method returns expression editor.
This method returns an object of the PP.TS.Ui.ExpressionEditorDialog type.
To execute the example, the HTML page must contain an instance of the CustomAnalysisWizard class named customAnalysisWizard (see CustomAnalysisWizard Constructor). Show expression editor and process the RequestMetadata event:
// Process the RequestMetadata event customAnalysisWizard.RequestMetadata.add(function (sender, args) { console.log("Master database key: " + args.getMetadata().RubKey); }); // Get expression editor var expressionEditor = customAnalysisWizard.getExpressionEditorDialog(); // Display this editor expressionEditor.show();
Expression editor is shown after the example execution:
Each time the RequestMetadata event is fired, the browser console displays key of the master time series database:
Key of the master database: 2031
Now set metabase hierarchy for the expression editor :
// Get metabase hierarchy var metaHierarchy = workbookBox.getSource().getHier(); // Set metabase hierarchy for expression editor customAnalysisWizard.setHierarchy(metaHierarchy, true);
After executing the example metabase hierarchy is loaded in the expression editor:
See also: