public class

ThresholdExpressionTransform

extends ExpressionGenericTransform
java.lang.Object
   ↳ com.microstrategy.web.transform.AbstractTransform
     ↳ com.microstrategy.web.transform.AbstractLayoutTransform
       ↳ com.microstrategy.web.app.transforms.AbstractAppTransform
         ↳ com.microstrategy.web.app.transforms.ExpressionGenericTransform
           ↳ com.microstrategy.web.app.transforms.ThresholdExpressionTransform

Summary

[Expand]
Inherited Constants
From class com.microstrategy.web.app.transforms.ExpressionGenericTransform
From class com.microstrategy.web.app.transforms.AbstractAppTransform
Fields
protected FormalParameterImpl _showGridObjectsOnly
[Expand]
Inherited Fields
From class com.microstrategy.web.app.transforms.ExpressionGenericTransform
From class com.microstrategy.web.app.transforms.AbstractAppTransform
Public Constructors
ThresholdExpressionTransform()
Public Methods
String getEditExpressionJS()
String getExpBeanPath()
Here we override this function to ensure path is from ThresholdExpressionBean
String getID()
Returns the unique name of the component to be used as the ID for its shell.
void initializeTransform(Transformable data)
This method overrides the superclass' initializeTransform method - this is called to pick up the reference to the Transformable object passed to the transform and to do initialization of the transform.
boolean isAutoSynchronizeEnabled()
This method returns whether the GUI should synchronize the expression on the expression bean with its source upon every operation.
boolean isUpdateManagerEnabled()
This method can be overridden by child classes to signal whether or not to send all multiple event requests through the update manager.
void renderAddWizardButtons(MarkupOutput out)
This method renders the buttons for the add wizard.
void renderAddWizardDropdown(MarkupOutput out)
This method renders the object dropdown for the add wizard.
void renderGenericValidationErrorMessage(MarkupOutput out)
Overrides the superclass' behavior for rendering validation error message.
void transformForRequestSuccessful(MarkupOutput out)
Generates the output when the bean's status is WebBeanRequestSuccessful.
Protected Methods
void addAttDetails(WebAttribute attr)
boolean canEditSubexpression(WebNode node)
TQMS 347458, disable the expression editing for 'inlist' condition if we are in design mode of a MDX report.
boolean canSelectElements(WebAttribute webAttribute)
This method determines whether the attribute requires a lookup table to support elements qualification.
void generateDeleteSubExpressionClickJS(String key, WebEvent deleteEvent, StringBuffer onClickJS)
This method will render the JavaScript necessary to delete a sub expression.
WebFolder getAvailableObjectsFolder()
Returns the list of "available" objects to be used for the add wizard or for an attribute-to-attribute or metric-to-metric qualification.
String getBoneId()
Returns the id to be used for the JavaScript bone.
ExpressionBean getEventTargetExpressionBean()
Returns the expression bean for getting events.
String getMetricName(WebShortcutNode shortcutNode)
String getOnClickJavaScript()
Generates any extra method calls for the JavaScript bone.
String getValidateJavaScript()
WebWorkingSet getWorkingSet()
Returns the working set object, if the filter is a report filter.
boolean isDesignMode()
boolean isSubexpressionInError(WebNode node)
Overrides the superclass' behavior to determine whether the subexpression is in error or not.
boolean isViewReport()
ExpressionFilterTransform newFet()
void renderJavascript(MarkupOutput out)
This method renders all javascript that will be necessary for the ExpressionGenericTransform to work correctly.
void renderMQUnitComparison(MarkupOutput out, String metricID, WebEvent acceptEvent)
This method will render the unit comparison list for a metric-to-metric qualfication that is currently being edited..
boolean shallRenderForm(WebAttributeForm form)
boolean shouldDisplay()
Returns true so that this transform will always be rendered.
boolean shouldShowObject(WebDisplayUnit unit)
Indicate if the unit should be shown.
boolean useWorkingSetForFormLookup()
[Expand]
Inherited Methods
From class com.microstrategy.web.app.transforms.ExpressionGenericTransform
From class com.microstrategy.web.app.transforms.AbstractAppTransform
From class com.microstrategy.web.transform.AbstractLayoutTransform
From class com.microstrategy.web.transform.AbstractTransform
From class java.lang.Object
From interface com.microstrategy.web.app.transforms.AppTransform
From interface com.microstrategy.web.transform.LayoutTransform
From interface com.microstrategy.web.transform.Transform

Fields

protected FormalParameterImpl _showGridObjectsOnly

Public Constructors

public ThresholdExpressionTransform ()

Public Methods

public String getEditExpressionJS ()

public String getExpBeanPath ()

Here we override this function to ensure path is from ThresholdExpressionBean

public String getID ()

Returns the unique name of the component to be used as the ID for its shell. This id is used for updating the page using the iFrame technology, and as the id for the corresponding bone (if any).

Returns
  • the component's unique id

public void initializeTransform (Transformable data)

This method overrides the superclass' initializeTransform method - this is called to pick up the reference to the Transformable object passed to the transform and to do initialization of the transform. If this method is overridden, then it must be called by the overriding method in order for the transform to work properly.

Parameters
data The Transformable object that is being transformed upon.

public boolean isAutoSynchronizeEnabled ()

This method returns whether the GUI should synchronize the expression on the expression bean with its source upon every operation. If this is false, then the apply/cancel buttons will be active.

Returns
  • Whether auto-synchronize is enabled for this transform.

public boolean isUpdateManagerEnabled ()

This method can be overridden by child classes to signal whether or not to send all multiple event requests through the update manager. By default, this is false, meaning that the update manager should not be used.

Returns
  • True if the update manager is enabled, false otherwise.

public void renderAddWizardButtons (MarkupOutput out)

This method renders the buttons for the add wizard.

Parameters
out The MarkupOutput object to render the output to.

public void renderAddWizardDropdown (MarkupOutput out)

This method renders the object dropdown for the add wizard.

Parameters
out The MarkupOutput object to render the output to.

public void renderGenericValidationErrorMessage (MarkupOutput out)

Overrides the superclass' behavior for rendering validation error message. If the expression bean or the expression has a validation error waiting on it, this method will render a generic error message. If there is no validation error waiting, then this method will do nothing.

Parameters
out The MarkupOutput object to render the output to.

public void transformForRequestSuccessful (MarkupOutput out)

Generates the output when the bean's status is WebBeanRequestSuccessful. This is the main entry point to generate the output for those Transforms that just want to render the "regular" bean case.
This is an abstract method. All classes need to implement it.

Parameters
out output by this transform

Protected Methods

protected void addAttDetails (WebAttribute attr)

protected boolean canEditSubexpression (WebNode node)

TQMS 347458, disable the expression editing for 'inlist' condition if we are in design mode of a MDX report. For RWD, with the fix to 342076 we should have supported MDX element browsing.

Returns
  • Whether the subexpression at the current node is editable or not.

protected boolean canSelectElements (WebAttribute webAttribute)

This method determines whether the attribute requires a lookup table to support elements qualification.

Parameters
webAttribute The attribute on which we have to decide if it requires a lookup table to support elements qualification.
Returns
  • true if the attribute requires a lookup table to support elements qualification.

protected void generateDeleteSubExpressionClickJS (String key, WebEvent deleteEvent, StringBuffer onClickJS)

This method will render the JavaScript necessary to delete a sub expression.

Parameters
onClickJS The MarkupOutput object to render the output to.

protected WebFolder getAvailableObjectsFolder ()

Returns the list of "available" objects to be used for the add wizard or for an attribute-to-attribute or metric-to-metric qualification.

Returns
  • A WebFolder with the list of available objects.

protected String getBoneId ()

Returns the id to be used for the JavaScript bone.
This method is used by the renderRegisterBone method to indicate the id of the bone html element.

Returns
  • String

protected ExpressionBean getEventTargetExpressionBean ()

Returns the expression bean for getting events. This should be used by derived classes to retrieve the expression bean that events should target.

Returns

protected String getMetricName (WebShortcutNode shortcutNode)

protected String getOnClickJavaScript ()

Generates any extra method calls for the JavaScript bone.

protected String getValidateJavaScript ()

protected WebWorkingSet getWorkingSet ()

Returns the working set object, if the filter is a report filter. Otherwise, returns null.

Returns
  • A WebWorkingSet object if the filter is a report filter, or null otherwise.

protected boolean isDesignMode ()

protected boolean isSubexpressionInError (WebNode node)

Overrides the superclass' behavior to determine whether the subexpression is in error or not. Returns whether the subexpression at the current node is in error or not.

Returns
  • Whether the subexpression at the current node is in error or not.

protected boolean isViewReport ()

Returns
  • whether the report is a view report

protected ExpressionFilterTransform newFet ()

protected void renderJavascript (MarkupOutput out)

This method renders all javascript that will be necessary for the ExpressionGenericTransform to work correctly.

Parameters
out The MarkupOutput object to render the output to.

protected void renderMQUnitComparison (MarkupOutput out, String metricID, WebEvent acceptEvent)

This method will render the unit comparison list for a metric-to-metric qualfication that is currently being edited..

Parameters
out The MarkupOutput object to render the output to.
metricID The metric ID of the currently selected object in the pulldown.
acceptEvent The event that is used to accept the qualificiation.

protected boolean shallRenderForm (WebAttributeForm form)

protected boolean shouldDisplay ()

Returns true so that this transform will always be rendered.

Returns
  • boolean

protected boolean shouldShowObject (WebDisplayUnit unit)

Indicate if the unit should be shown. It would be overridden by ThresholdExpressionTransform

Parameters
unit the display unit
Returns
  • boolean, indicate if the unit should be shown.

protected boolean useWorkingSetForFormLookup ()