With an Action on a cell is there a way of dynamically passing the members in all hierarchies?
Stored procedures are called before the URL is activated on drill throughs so I thought it'd save a lot of maintenance to create a stored procedure to generate the URL.
Problem is I can't find a way in the action to dynamically get all the hierarchy members that may contribute to the cell. i.e. Any rows, any columns, any slicers.
e.g. for the action expression
"http://" + AdventureWorks!GimmeAURL(<<MDX for the cell>>)
or
"http://" + AdventureWorks!GimmeAURL(<<list of unique names of hierarchy members and qualifying the cell>>,[Measures].CurrentMember.UniqueName)
I can accomplish the second way by hardcoding every hierarchy that may be used.
e.g.
"http://" + AdventureWorks!GimmeAURL([Time].[Aiscal].CurrentMember.UniqueName+","+[Time].[Calendar].CurrentMember.UniqueName+","+[Product].[Hierarchy1].CurrentMember.UniqueName+","+ ... [Product].[Hierarchyx].CurrentMember.UniqueName+","+ ... [Dimensionx].[Hierarchyx].CurrentMember.UniqueName,[Measures].CurrentMember.UniqueName)
but that's a lot of typing and requires modification if you add a new hierarchy that could contribute to the cell.
Adding another parameter for a report code and you could use the same action expression from just about anywhere. e.g.
"http://" + AdventureWorks!GimmeAURL("REPORT1",<<list of unique names of hierarchy members and qualifying the cell>>,[Measures].CurrentMember.UniqueName)
(at the end , the program the URL calls either matches the passed parameters to the reports parameters , or uses the passed parameters and the UDM metadata to generate a query)
Simply put I'm after a way of getting hierarchy members in an action without hardcoding hierarchy names.
Any ideas appreciated.