Identifying User Selections in a Dimension Combo

Users can select only one member at a time from a DimensionCombo. The following example shows how to identify the member that the user has selected from the DimensionCombo.


//Add a listener to the DimensionCombo. dimensionCombo.addDimensionComboListener(new DimensionComboListener() {  public void dimensionChanged(DimensionComboEvent e) { }  public void dimensionSelecting(DimensionComboEvent e) { }  public void dimensionSelected(DimensionComboEvent e) { }  //Retrieve the data model, index and value of the selected member.  //The index is the position of the member in the data model.     DimListDataModel model = (DimListDataModel)e.getDataModel();     DimListDataItem item = (DimListDataItem)model.elementAt(e.getIndex());     String strMember = item.getValue(); } });

Dimension List Combo Bean