1
Vote

Action not visible in AS 2008 with perspectives

description

from fpatou:
Just to give me feedback we have resolved this by a modification of the FindCurrentTuple() method by adding AMOHelpers.GetCurrentCubeName():
 
public static string FindCurrentTuple()
    {
        string output = "(";
        Boolean addcomma = false;
        foreach (Dimension d in Context.Cubes[AMOHelpers.GetCurrentCubeName()].Dimensions)
        {
            foreach (Hierarchy h in d.AttributeHierarchies)
            {
                if (d.DimensionType == DimensionTypeEnum.Measure || h.CurrentMember.UniqueName != h.DefaultMember)
                {
                    if (addcomma == false)
                        addcomma = true;
                    else
                        output += ",";
                    output += h.CurrentMember.UniqueName;
                }
            }
        }
        output += ")";
        return output;
    }

comments