Because users can select one or more members at a time from a DimensionListDialog
, you must respond differently when the user has selected a single member and when the user has selected multiple members. The selection that you identify is used as a member step in the Selection
object to be applied to a query.
DimensionListDialog
The following example shows how to identify the single member that the user has selected from the DimensionListDialog
.
//Display the dialog. if (dimensionListDialog.display() == DimensionListDialog.OK) { // Retrieve the selected members. String strMember = dimensionListDialog.getSelectedMember()); }
DimensionListDialog
The following example shows how to identify the group of members that the user has selected from the DimensionListDialog
. Multiple selected members are grouped together in a single MemberStep
. The MemberStep
holds information about the group of members.
//Display the dialog. if (dimensionListDialog.display() == DimensionListDialog.OK) { // Retrieve the selected members. MemberStep memberStep = dimensionListDialog.getSelectedMembers()); }
Dimension List Dialog Bean
Replacing a Selection using a DimensionListDialog