xplain.ux.widget.aggregation.Panel

An xaggregationPanel is a panel that depicts an aggregation. You may integrate this panel into your UI. For instance, an xaggregationWindow uses an instance of xaggregationPanel to visualize an aggregation.

xaggregationPanel extends Ext.panel.Panel. Thus, an xaggregationPanel can be resized, has a height and width, etc.

Config Parameters

aggregation = null

An instance of Xplain.Db.Aggregation (required). The type may be left empty. In this case, a meaningful type will be computed and set as default. The aggregation to depict.

aggregation = null

If false, the user may not edit this aggregation (the panel will only be used to depict the aggregation).

fixedObject = false

If set to true, the user may not edit the Object of the aggregation. She may only edit the Dimension and/or Attribute.

disableCountentity = false

If set to true, the COUNTENTITY option will not be available to the user.

Methods

getValue

getValue()

Returns the settings currently depicted by this UI (note that this does not necessarily have to correspond to the settings of this aggregation)

Returns

{object} an object that consists of an object, a dimension, an attribute and a type. Please note that the type may be a string (e.g. SUM or AVG) or an object (e.g. {type: "COUNTDISTINCT", level: "Month"})