System.out.println(mdmSCC_Amount.getDescription());
// oracle.olapi.data.source.NumberSource ss;
MdmPrimaryDimension mdmDeptDim = getMdmPrimaryDimension("DEPARTMENT");
MdmPrimaryDimension mdmTimeDim = getMdmPrimaryDimension("MYTIME");
MdmPrimaryDimension mdmMediaDim = getMdmPrimaryDimension("MEDIA");
MdmValueHierarchy mdmDeptHier = (MdmValueHierarchy)
mdmDeptDim.getDefaultHierarchy();
MdmLevelHierarchy mdmTimeHier = (MdmLevelHierarchy)
mdmTimeDim.getDefaultHierarchy();
MdmLevelHierarchy mdmMediaHier = (MdmLevelHierarchy)mdmMediaDim.getDefaultHierarchy();
// Get the Source for the hierarchy.
// Source valueSource = mdmDeptHier.getSource();
StringSource prodHier = (StringSource) mdmDeptHier.getSource();
StringSource timeHier = (StringSource) mdmTimeHier.getSource();
StringSource mediaHier = (StringSource) mdmMediaHier.getSource();
// MdmAttribute mdmDeptAttr = getContext().getAttributeByName(mdmDeptDim,"SHORT_DESCRIPTION");
// Source mktMngrAttr = mdmDeptAttr.getSource();
// MdmLevel mdmItemLevel = getContext().getLevelByName(mdmDeptHier, "ITEM_AW");
// Source prodForManager = mdmDeptHier.join(mdmDeptAttr, "一炼");
Source prodSel = prodHier.selectValues(new String[] {
"DEPT::0"
,
"DEPT::1",
"DEPT::2"
});
Source timeSel = timeHier.selectValues(new String[] {
"TIMEHIER::MONTH::MONTH_2011-M01"
,
"TIMEHIER::DAY::DAY_20110102",
"TIMEHIER::DAY::DAY_20110103"
});
Source mediaSel = mediaHier.selectValues(new String[] {
"MEDIAHIER::MEDIA::MEDIA_0"
,
"MEDIAHIER::MEDIA::MEDIA_1",
"MEDIAHIER::MEDIA::MEDIA_2"
});
Source depShortLabel = mdmDeptDim.getShortValueDescriptionAttribute().getSource();
Source mediaShortLabel = mdmMediaDim.getShortValueDescriptionAttribute().getSource();
Source timeShortLabel = mdmTimeDim.getShortValueDescriptionAttribute().getSource();
Source deptShortDescr = depShortLabel.join(prodSel);
Source mediaShortDescr = mediaShortLabel.join(mediaSel);