MdmPrimaryDimension mdmProdDim = getMdmPrimaryDimension("PRODUCT_AW");
MdmPrimaryDimension mdmCustDim = getMdmPrimaryDimension("CUSTOMER_AW");
MdmPrimaryDimension mdmTimeDim = getMdmPrimaryDimension("TIME_AW");
MdmPrimaryDimension mdmChanDim = getMdmPrimaryDimension("CHANNEL_AW");
MdmLevelHierarchy mdmProdHier = (MdmLevelHierarchy)
mdmProdDim.getDefaultHierarchy();
MdmLevelHierarchy mdmShipHier = (MdmLevelHierarchy)
mdmCustDim.getDefaultHierarchy();
MdmLevelHierarchy mdmCalendar = (MdmLevelHierarchy)
mdmTimeDim.getDefaultHierarchy();
MdmLevelHierarchy mdmChanHier = (MdmLevelHierarchy)
mdmChanDim.getDefaultHierarchy();
// Get the short description attribute for the dimensions, and the
// Source objects for the attributes.
MdmAttribute mdmProdShortDescr =
mdmProdDim.getShortValueDescriptionAttribute();
Source prodShortDescr = mdmProdShortDescr.getSource();
MdmAttribute mdmCustShortDescr =
mdmCustDim.getShortValueDescriptionAttribute();
Source custShortDescr = mdmCustShortDescr.getSource();
MdmAttribute mdmTimeShortDescr =
mdmTimeDim.getShortValueDescriptionAttribute();
Source timeShortDescr = mdmTimeShortDescr.getSource();
// Get the short description attribute for the channel dimension.
MdmAttribute mdmChanShortDescr =
mdmChanDim.getShortValueDescriptionAttribute();
Source chanShortDescr = mdmChanShortDescr.getSource();
// Get the Source objects for the default hierarchies of the dimensions
// of the measures
Source prodHier = mdmProdHier.getSource();
Source shipHier = mdmShipHier.getSource();
Source calendar = mdmCalendar.getSource();
Source chanHier = mdmChanHier.getSource();
// Select values from the hierarchies
Source prodSel = prodHier.join(prodHier.value(),
getExpressDataProvider().createListSource(
new String[]