Extensions of the BasicFamilyStep
class implement specific behavior for each type of step that is based on a condition that uses family relationships. The following list describes these extensions:
FamilyLevelStep
-- Specifies members based on a particular level, such as Cities in USA.
FamilyStep
-- Specifies members based on a relationship within a family, such as Children of Total Product.
Select members of the Product dimension that occur at the same level of the Standard hierarchy as the member "TV".
//strProductDim is the unique identifier of the Product dimension //strStandardHier is the unique identifier of the Standard Product hierarchy //level_4 is the unique identifier of Level 4 of the Standard Product hierarchy // Vector levels = new Vector (); levels.addElement (level_4); Vector familyValues = new Vector (); familyValues.addElement ("TV"); // FamilyLevelStep familyLevelStep = new FamilyLevelStep ( strProductDim, strStandardHier, levels, familyValues, false); // Selection sel = new Selection (strProductDim ); sel.setHierarchy (strStandardHier); sel.addStep (familyLevelStep);
Select the children of the Audio Division and Video Division members of the Product dimension.
//strProductDim is the unique identifier of the Product dimension //strStandardHier is the unique identifier of the Standard Product hierarchy // Vector famValues = new Vector (); famValues.addElement ("AUDIODIV"); famValues.addElement ("VIDEODIV"); // FamilyStep famStep = new FamilyStep ( strProductDim, strStandardHier, FamilyStep.OP_CHILDREN, famValues, true); // Selection sel = new Selection (strProductDim); sel.setHierarchy (strStandardHier);s el.addStep (familyStep);