dbTalk Databases Forums  

Drillthrough in 2005, returning the unique name + captions?

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Drillthrough in 2005, returning the unique name + captions? in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jéjé
 
Posts: n/a

Default Drillthrough in 2005, returning the unique name + captions? - 06-09-2006 , 10:15 AM






Hi,

I'm using the drillthrough command to display the source rows to my users.
this works fine.

But now I want to retrieve the captions AND the keys or the member unique
name in the drillthrough result.
how to do this without using the RETURN statement?

or there is an option to return all the columns defined in the drillthrough
definition + asking for more columns?
something like:
DRILLTHROUGH maxrows 5000

select (<cell definition>, [Measures].[my measure]) on 0

From [Cube]

return UniqueName([$dimension].[level]) , *

but the "*" is a test and doesn't work, so, there is any function designed
for this?



or there is any property in the MDX statement designed for this?

DRILLTHROUGH maxrows 5000

select (<cell definition>, [Measures].[my measure]) on 0

From [Cube]

PROPERTIES <SOME PROPERTY TO SETUP TO RETURN THE KEY OR MEMBER UNIQUE NAME>



thanks



jerome.







Reply With Quote
  #2  
Old   
Akshai Mirchandani [MS]
 
Posts: n/a

Default Re: Drillthrough in 2005, returning the unique name + captions? - 06-09-2006 , 03:43 PM






If I understand you correctly, you should be able to get the behavior you
want by creating a "Default Drillthrough Action" that covers the space that
you are drilling through on.

If AS finds a default drillthrough action that covers the cell being drilled
through on, it will use the columns specified on that action to define what
columns should be returned.

Otherwise, it defaults to the captions of the granularity attributes.

HTH,
Akshai
--
Try out the MSDN Forums for Analysis Services at:
http://forums.microsoft.com/MSDN/Sho...ID=83&SiteID=1

This posting is provided "AS IS" with no warranties, and confers no rights
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.

"Jéjé" <willgart_A_ (AT) hotmail_A_ (DOT) com> wrote

Quote:
Hi,

I'm using the drillthrough command to display the source rows to my users.
this works fine.

But now I want to retrieve the captions AND the keys or the member unique
name in the drillthrough result.
how to do this without using the RETURN statement?

or there is an option to return all the columns defined in the
drillthrough definition + asking for more columns?
something like:
DRILLTHROUGH maxrows 5000

select (<cell definition>, [Measures].[my measure]) on 0

From [Cube]

return UniqueName([$dimension].[level]) , *

but the "*" is a test and doesn't work, so, there is any function designed
for this?



or there is any property in the MDX statement designed for this?

DRILLTHROUGH maxrows 5000

select (<cell definition>, [Measures].[my measure]) on 0

From [Cube]

PROPERTIES <SOME PROPERTY TO SETUP TO RETURN THE KEY OR MEMBER UNIQUE
NAME



thanks



jerome.









Reply With Quote
  #3  
Old   
Jéjé
 
Posts: n/a

Default Re: Drillthrough in 2005, returning the unique name + captions? - 06-09-2006 , 03:55 PM



I'm using default drill actions.
but this returns only the value of the member of the drill, there is no
choice to return the value, the caption and / or the uniquename.

"Akshai Mirchandani [MS]" <akshaim (AT) online (DOT) microsoft.com> wrote

Quote:
If I understand you correctly, you should be able to get the behavior you
want by creating a "Default Drillthrough Action" that covers the space
that you are drilling through on.

If AS finds a default drillthrough action that covers the cell being
drilled through on, it will use the columns specified on that action to
define what columns should be returned.

Otherwise, it defaults to the captions of the granularity attributes.

HTH,
Akshai
--
Try out the MSDN Forums for Analysis Services at:
http://forums.microsoft.com/MSDN/Sho...ID=83&SiteID=1

This posting is provided "AS IS" with no warranties, and confers no rights
Please do not send email directly to this alias. This alias is for
newsgroup
purposes only.

"Jéjé" <willgart_A_ (AT) hotmail_A_ (DOT) com> wrote in message
news:u09ECe9iGHA.4512 (AT) TK2MSFTNGP04 (DOT) phx.gbl...
Hi,

I'm using the drillthrough command to display the source rows to my
users.
this works fine.

But now I want to retrieve the captions AND the keys or the member unique
name in the drillthrough result.
how to do this without using the RETURN statement?

or there is an option to return all the columns defined in the
drillthrough definition + asking for more columns?
something like:
DRILLTHROUGH maxrows 5000

select (<cell definition>, [Measures].[my measure]) on 0

From [Cube]

return UniqueName([$dimension].[level]) , *

but the "*" is a test and doesn't work, so, there is any function
designed for this?



or there is any property in the MDX statement designed for this?

DRILLTHROUGH maxrows 5000

select (<cell definition>, [Measures].[my measure]) on 0

From [Cube]

PROPERTIES <SOME PROPERTY TO SETUP TO RETURN THE KEY OR MEMBER UNIQUE
NAME



thanks



jerome.











Reply With Quote
  #4  
Old   
Akshai Mirchandani [MS]
 
Posts: n/a

Default Re: Drillthrough in 2005, returning the unique name + captions? - 06-09-2006 , 07:19 PM



You are correct -- it slipped my mind that this got cut at some point

Sorry, I guess there isn't a way to specify them in the action then... I'll
ask around to see if there is something I'm missing.

- Akshai
--
Try out the MSDN Forums for Analysis Services at:
http://forums.microsoft.com/MSDN/Sho...ID=83&SiteID=1

This posting is provided "AS IS" with no warranties, and confers no rights
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.

"Jéjé" <willgart_A_ (AT) hotmail_A_ (DOT) com> wrote

Quote:
I'm using default drill actions.
but this returns only the value of the member of the drill, there is no
choice to return the value, the caption and / or the uniquename.

"Akshai Mirchandani [MS]" <akshaim (AT) online (DOT) microsoft.com> wrote in message
news:Oc3dYVAjGHA.4204 (AT) TK2MSFTNGP02 (DOT) phx.gbl...
If I understand you correctly, you should be able to get the behavior you
want by creating a "Default Drillthrough Action" that covers the space
that you are drilling through on.

If AS finds a default drillthrough action that covers the cell being
drilled through on, it will use the columns specified on that action to
define what columns should be returned.

Otherwise, it defaults to the captions of the granularity attributes.

HTH,
Akshai
--
Try out the MSDN Forums for Analysis Services at:
http://forums.microsoft.com/MSDN/Sho...ID=83&SiteID=1

This posting is provided "AS IS" with no warranties, and confers no
rights
Please do not send email directly to this alias. This alias is for
newsgroup
purposes only.

"Jéjé" <willgart_A_ (AT) hotmail_A_ (DOT) com> wrote in message
news:u09ECe9iGHA.4512 (AT) TK2MSFTNGP04 (DOT) phx.gbl...
Hi,

I'm using the drillthrough command to display the source rows to my
users.
this works fine.

But now I want to retrieve the captions AND the keys or the member
unique name in the drillthrough result.
how to do this without using the RETURN statement?

or there is an option to return all the columns defined in the
drillthrough definition + asking for more columns?
something like:
DRILLTHROUGH maxrows 5000

select (<cell definition>, [Measures].[my measure]) on 0

From [Cube]

return UniqueName([$dimension].[level]) , *

but the "*" is a test and doesn't work, so, there is any function
designed for this?



or there is any property in the MDX statement designed for this?

DRILLTHROUGH maxrows 5000

select (<cell definition>, [Measures].[my measure]) on 0

From [Cube]

PROPERTIES <SOME PROPERTY TO SETUP TO RETURN THE KEY OR MEMBER UNIQUE
NAME



thanks



jerome.













Reply With Quote
  #5  
Old   
Jeje
 
Posts: n/a

Default Re: Drillthrough in 2005, returning the unique name + captions? - 06-09-2006 , 08:34 PM



I have a work around.
I have changed my application and added some custom metadata.
First, I ask AS to send to me the MDX formula associated to my drill
command, then I scan the "RETURN" part of thecommand and add some
"key(column)" when the drill command contains targeted dimension /
attribute, and finally I execute themodified drillthrough statement.

Now I have a "generic" drillthrough system where the cube developper simply
create the drillthrough action and the web designer can add some metadata
for interactivity purpose.

but if MS can add some parameters in the drillthrough command, I'll
appreciate this :-)

"Akshai Mirchandani [MS]" <akshaim (AT) online (DOT) microsoft.com> wrote

Quote:
You are correct -- it slipped my mind that this got cut at some point

Sorry, I guess there isn't a way to specify them in the action then...
I'll ask around to see if there is something I'm missing.

- Akshai
--
Try out the MSDN Forums for Analysis Services at:
http://forums.microsoft.com/MSDN/Sho...ID=83&SiteID=1

This posting is provided "AS IS" with no warranties, and confers no rights
Please do not send email directly to this alias. This alias is for
newsgroup
purposes only.

"Jéjé" <willgart_A_ (AT) hotmail_A_ (DOT) com> wrote in message
news:OjfX8bAjGHA.412 (AT) TK2MSFTNGP05 (DOT) phx.gbl...
I'm using default drill actions.
but this returns only the value of the member of the drill, there is no
choice to return the value, the caption and / or the uniquename.

"Akshai Mirchandani [MS]" <akshaim (AT) online (DOT) microsoft.com> wrote in message
news:Oc3dYVAjGHA.4204 (AT) TK2MSFTNGP02 (DOT) phx.gbl...
If I understand you correctly, you should be able to get the behavior
you want by creating a "Default Drillthrough Action" that covers the
space that you are drilling through on.

If AS finds a default drillthrough action that covers the cell being
drilled through on, it will use the columns specified on that action to
define what columns should be returned.

Otherwise, it defaults to the captions of the granularity attributes.

HTH,
Akshai
--
Try out the MSDN Forums for Analysis Services at:
http://forums.microsoft.com/MSDN/Sho...ID=83&SiteID=1

This posting is provided "AS IS" with no warranties, and confers no
rights
Please do not send email directly to this alias. This alias is for
newsgroup
purposes only.

"Jéjé" <willgart_A_ (AT) hotmail_A_ (DOT) com> wrote in message
news:u09ECe9iGHA.4512 (AT) TK2MSFTNGP04 (DOT) phx.gbl...
Hi,

I'm using the drillthrough command to display the source rows to my
users.
this works fine.

But now I want to retrieve the captions AND the keys or the member
unique name in the drillthrough result.
how to do this without using the RETURN statement?

or there is an option to return all the columns defined in the
drillthrough definition + asking for more columns?
something like:
DRILLTHROUGH maxrows 5000

select (<cell definition>, [Measures].[my measure]) on 0

From [Cube]

return UniqueName([$dimension].[level]) , *

but the "*" is a test and doesn't work, so, there is any function
designed for this?



or there is any property in the MDX statement designed for this?

DRILLTHROUGH maxrows 5000

select (<cell definition>, [Measures].[my measure]) on 0

From [Cube]

PROPERTIES <SOME PROPERTY TO SETUP TO RETURN THE KEY OR MEMBER UNIQUE
NAME



thanks



jerome.















Reply With Quote
  #6  
Old   
AT
 
Posts: n/a

Default Re: Drillthrough in 2005, returning the unique name + captions? - 06-15-2006 , 07:33 PM



Jeje, could you please post the code for your work around? Thanks.

Jeje wrote:
Quote:
I have a work around.
I have changed my application and added some custom metadata.
First, I ask AS to send to me the MDX formula associated to my drill
command, then I scan the "RETURN" part of thecommand and add some
"key(column)" when the drill command contains targeted dimension /
attribute, and finally I execute themodified drillthrough statement.

Now I have a "generic" drillthrough system where the cube developper simply
create the drillthrough action and the web designer can add some metadata
for interactivity purpose.

but if MS can add some parameters in the drillthrough command, I'll
appreciate this :-)

"Akshai Mirchandani [MS]" <akshaim (AT) online (DOT) microsoft.com> wrote in message
news:%23dsEOOCjGHA.1320 (AT) TK2MSFTNGP04 (DOT) phx.gbl...
You are correct -- it slipped my mind that this got cut at some point

Sorry, I guess there isn't a way to specify them in the action then...
I'll ask around to see if there is something I'm missing.

- Akshai
--
Try out the MSDN Forums for Analysis Services at:
http://forums.microsoft.com/MSDN/Sho...ID=83&SiteID=1

This posting is provided "AS IS" with no warranties, and confers no rights
Please do not send email directly to this alias. This alias is for
newsgroup
purposes only.

"Jéjé" <willgart_A_ (AT) hotmail_A_ (DOT) com> wrote in message
news:OjfX8bAjGHA.412 (AT) TK2MSFTNGP05 (DOT) phx.gbl...
I'm using default drill actions.
but this returns only the value of the member of the drill, there is no
choice to return the value, the caption and / or the uniquename.

"Akshai Mirchandani [MS]" <akshaim (AT) online (DOT) microsoft.com> wrote in message
news:Oc3dYVAjGHA.4204 (AT) TK2MSFTNGP02 (DOT) phx.gbl...
If I understand you correctly, you should be able to get the behavior
you want by creating a "Default Drillthrough Action" that covers the
space that you are drilling through on.

If AS finds a default drillthrough action that covers the cell being
drilled through on, it will use the columns specified on that action to
define what columns should be returned.

Otherwise, it defaults to the captions of the granularity attributes.

HTH,
Akshai
--
Try out the MSDN Forums for Analysis Services at:
http://forums.microsoft.com/MSDN/Sho...ID=83&SiteID=1

This posting is provided "AS IS" with no warranties, and confers no
rights
Please do not send email directly to this alias. This alias is for
newsgroup
purposes only.

"Jéjé" <willgart_A_ (AT) hotmail_A_ (DOT) com> wrote in message
news:u09ECe9iGHA.4512 (AT) TK2MSFTNGP04 (DOT) phx.gbl...
Hi,

I'm using the drillthrough command to display the source rows to my
users.
this works fine.

But now I want to retrieve the captions AND the keys or the member
unique name in the drillthrough result.
how to do this without using the RETURN statement?

or there is an option to return all the columns defined in the
drillthrough definition + asking for more columns?
something like:
DRILLTHROUGH maxrows 5000

select (<cell definition>, [Measures].[my measure]) on 0

From [Cube]

return UniqueName([$dimension].[level]) , *

but the "*" is a test and doesn't work, so, there is any function
designed for this?



or there is any property in the MDX statement designed for this?

DRILLTHROUGH maxrows 5000

select (<cell definition>, [Measures].[my measure]) on 0

From [Cube]

PROPERTIES <SOME PROPERTY TO SETUP TO RETURN THE KEY OR MEMBER UNIQUE
NAME



thanks



jerome.














Reply With Quote
  #7  
Old   
Jeje
 
Posts: n/a

Default Re: Drillthrough in 2005, returning the unique name + captions? - 06-15-2006 , 07:59 PM



The pseudo code is something like:

Getting the MDX Drill query from the cube definition using the
GetSchemaDataSet and MDSCHEMA_ACTIONS schema
This return the Select statement executed by AS to execute the default
drillthrough command.
After this, I parse the string and I add the KEY(<dimension>.<level>)
keywords in the string.
and finally I execute the resulting statement which return the default DRILL
+ the KEYS required by my application.

to retrieve the default drill syntax.
Public Shared Function GetActionContent(ByVal sActionName As String, ByVal
oCn As AdomdClient.AdomdConnection, ByVal Cube As String, ByVal sMDX As
String) As String

Dim oRest As New AdomdClient.AdomdRestrictionCollection

'oRest.Add("ACTION_NAME", sActionName)

oRest.Add("CUBE_NAME", Cube)

oRest.Add("COORDINATE", sMDX)

oRest.Add("ACTION_TYPE", 256)

oRest.Add("COORDINATE_TYPE", 6)

Dim ds As DataSet = oCn.GetSchemaDataSet("MDSCHEMA_ACTIONS", oRest, True)

If ds.Tables(0).Rows.Count > 0 Then

Return ds.Tables(0).Rows(0)("CONTENT")

End If

Return String.Empty

End Function

This code can return the syntax for a specific drillthrough action, if none
specified then the default drill is returned.

But I plan to create an interface which let the user to choose which columns
he want in the drill instead-of using the default drill. I think it will be
really easy to do this interface.


<christian.debry (AT) gmail (DOT) com> wrote

Jeje, could you please post the code for your work around? Thanks.

Jeje wrote:
Quote:
I have a work around.
I have changed my application and added some custom metadata.
First, I ask AS to send to me the MDX formula associated to my drill
command, then I scan the "RETURN" part of thecommand and add some
"key(column)" when the drill command contains targeted dimension /
attribute, and finally I execute themodified drillthrough statement.

Now I have a "generic" drillthrough system where the cube developper
simply
create the drillthrough action and the web designer can add some metadata
for interactivity purpose.

but if MS can add some parameters in the drillthrough command, I'll
appreciate this :-)

"Akshai Mirchandani [MS]" <akshaim (AT) online (DOT) microsoft.com> wrote in message
news:%23dsEOOCjGHA.1320 (AT) TK2MSFTNGP04 (DOT) phx.gbl...
You are correct -- it slipped my mind that this got cut at some point

Sorry, I guess there isn't a way to specify them in the action then...
I'll ask around to see if there is something I'm missing.

- Akshai
--
Try out the MSDN Forums for Analysis Services at:
http://forums.microsoft.com/MSDN/Sho...ID=83&SiteID=1

This posting is provided "AS IS" with no warranties, and confers no
rights
Please do not send email directly to this alias. This alias is for
newsgroup
purposes only.

"Jéjé" <willgart_A_ (AT) hotmail_A_ (DOT) com> wrote in message
news:OjfX8bAjGHA.412 (AT) TK2MSFTNGP05 (DOT) phx.gbl...
I'm using default drill actions.
but this returns only the value of the member of the drill, there is no
choice to return the value, the caption and / or the uniquename.

"Akshai Mirchandani [MS]" <akshaim (AT) online (DOT) microsoft.com> wrote in
message
news:Oc3dYVAjGHA.4204 (AT) TK2MSFTNGP02 (DOT) phx.gbl...
If I understand you correctly, you should be able to get the behavior
you want by creating a "Default Drillthrough Action" that covers the
space that you are drilling through on.

If AS finds a default drillthrough action that covers the cell being
drilled through on, it will use the columns specified on that action
to
define what columns should be returned.

Otherwise, it defaults to the captions of the granularity attributes.

HTH,
Akshai
--
Try out the MSDN Forums for Analysis Services at:
http://forums.microsoft.com/MSDN/Sho...ID=83&SiteID=1

This posting is provided "AS IS" with no warranties, and confers no
rights
Please do not send email directly to this alias. This alias is for
newsgroup
purposes only.

"Jéjé" <willgart_A_ (AT) hotmail_A_ (DOT) com> wrote in message
news:u09ECe9iGHA.4512 (AT) TK2MSFTNGP04 (DOT) phx.gbl...
Hi,

I'm using the drillthrough command to display the source rows to my
users.
this works fine.

But now I want to retrieve the captions AND the keys or the member
unique name in the drillthrough result.
how to do this without using the RETURN statement?

or there is an option to return all the columns defined in the
drillthrough definition + asking for more columns?
something like:
DRILLTHROUGH maxrows 5000

select (<cell definition>, [Measures].[my measure]) on 0

From [Cube]

return UniqueName([$dimension].[level]) , *

but the "*" is a test and doesn't work, so, there is any function
designed for this?



or there is any property in the MDX statement designed for this?

DRILLTHROUGH maxrows 5000

select (<cell definition>, [Measures].[my measure]) on 0

From [Cube]

PROPERTIES <SOME PROPERTY TO SETUP TO RETURN THE KEY OR MEMBER UNIQUE
NAME



thanks



jerome.















Reply With Quote
  #8  
Old   
AT
 
Posts: n/a

Default Re: Drillthrough in 2005, returning the unique name + captions? - 06-16-2006 , 01:35 PM



Thanks for the pseudo code.

I'm a bit new to the SQL Server environment, but I'm trying to do
something similar in which I create an action on a cell that allows the
user to dynamically filter the cube (or create a subcube) based on the
contents of the cell.

For instance, in a sales cube, the user could identify the total number
of customers that purchased a particular product. The action would then
allow the user to filter the cube on those specific customers so that
it would display their entire purchase history and help to provide
greater insight into the purchasing habits of specific customers.

Any ideas on how to go about doing this?

Jeje wrote:
Quote:
The pseudo code is something like:

Getting the MDX Drill query from the cube definition using the
GetSchemaDataSet and MDSCHEMA_ACTIONS schema
This return the Select statement executed by AS to execute the default
drillthrough command.
After this, I parse the string and I add the KEY(<dimension>.<level>)
keywords in the string.
and finally I execute the resulting statement which return the default DRILL
+ the KEYS required by my application.

to retrieve the default drill syntax.
Public Shared Function GetActionContent(ByVal sActionName As String, ByVal
oCn As AdomdClient.AdomdConnection, ByVal Cube As String, ByVal sMDX As
String) As String

Dim oRest As New AdomdClient.AdomdRestrictionCollection

'oRest.Add("ACTION_NAME", sActionName)

oRest.Add("CUBE_NAME", Cube)

oRest.Add("COORDINATE", sMDX)

oRest.Add("ACTION_TYPE", 256)

oRest.Add("COORDINATE_TYPE", 6)

Dim ds As DataSet = oCn.GetSchemaDataSet("MDSCHEMA_ACTIONS", oRest, True)

If ds.Tables(0).Rows.Count > 0 Then

Return ds.Tables(0).Rows(0)("CONTENT")

End If

Return String.Empty

End Function

This code can return the syntax for a specific drillthrough action, if none
specified then the default drill is returned.

But I plan to create an interface which let the user to choose which columns
he want in the drill instead-of using the default drill. I think it will be
really easy to do this interface.


christian.debry (AT) gmail (DOT) com> wrote in message
news:1150418026.787487.198230 (AT) c74g2000cwc (DOT) googlegroups.com...
Jeje, could you please post the code for your work around? Thanks.

Jeje wrote:
I have a work around.
I have changed my application and added some custom metadata.
First, I ask AS to send to me the MDX formula associated to my drill
command, then I scan the "RETURN" part of thecommand and add some
"key(column)" when the drill command contains targeted dimension /
attribute, and finally I execute themodified drillthrough statement.

Now I have a "generic" drillthrough system where the cube developper
simply
create the drillthrough action and the web designer can add some metadata
for interactivity purpose.

but if MS can add some parameters in the drillthrough command, I'll
appreciate this :-)

"Akshai Mirchandani [MS]" <akshaim (AT) online (DOT) microsoft.com> wrote in message
news:%23dsEOOCjGHA.1320 (AT) TK2MSFTNGP04 (DOT) phx.gbl...
You are correct -- it slipped my mind that this got cut at some point

Sorry, I guess there isn't a way to specify them in the action then...
I'll ask around to see if there is something I'm missing.

- Akshai
--
Try out the MSDN Forums for Analysis Services at:
http://forums.microsoft.com/MSDN/Sho...ID=83&SiteID=1

This posting is provided "AS IS" with no warranties, and confers no
rights
Please do not send email directly to this alias. This alias is for
newsgroup
purposes only.

"Jéjé" <willgart_A_ (AT) hotmail_A_ (DOT) com> wrote in message
news:OjfX8bAjGHA.412 (AT) TK2MSFTNGP05 (DOT) phx.gbl...
I'm using default drill actions.
but this returns only the value of the member of the drill, there isno
choice to return the value, the caption and / or the uniquename.

"Akshai Mirchandani [MS]" <akshaim (AT) online (DOT) microsoft.com> wrote in
message
news:Oc3dYVAjGHA.4204 (AT) TK2MSFTNGP02 (DOT) phx.gbl...
If I understand you correctly, you should be able to get the behavior
you want by creating a "Default Drillthrough Action" that covers the
space that you are drilling through on.

If AS finds a default drillthrough action that covers the cell being
drilled through on, it will use the columns specified on that action
to
define what columns should be returned.

Otherwise, it defaults to the captions of the granularity attributes.

HTH,
Akshai
--
Try out the MSDN Forums for Analysis Services at:
http://forums.microsoft.com/MSDN/Sho...ID=83&SiteID=1

This posting is provided "AS IS" with no warranties, and confers no
rights
Please do not send email directly to this alias. This alias is for
newsgroup
purposes only.

"Jéjé" <willgart_A_ (AT) hotmail_A_ (DOT) com> wrote in message
news:u09ECe9iGHA.4512 (AT) TK2MSFTNGP04 (DOT) phx.gbl...
Hi,

I'm using the drillthrough command to display the source rows to my
users.
this works fine.

But now I want to retrieve the captions AND the keys or the member
unique name in the drillthrough result.
how to do this without using the RETURN statement?

or there is an option to return all the columns defined in the
drillthrough definition + asking for more columns?
something like:
DRILLTHROUGH maxrows 5000

select (<cell definition>, [Measures].[my measure]) on 0

From [Cube]

return UniqueName([$dimension].[level]) , *

but the "*" is a test and doesn't work, so, there is any function
designed for this?



or there is any property in the MDX statement designed for this?

DRILLTHROUGH maxrows 5000

select (<cell definition>, [Measures].[my measure]) on 0

From [Cube]

PROPERTIES <SOME PROPERTY TO SETUP TO RETURN THE KEY OR MEMBER UNIQUE
NAME



thanks



jerome.














Reply With Quote
  #9  
Old   
Jéjé
 
Posts: n/a

Default Re: Drillthrough in 2005, returning the unique name + captions? - 06-16-2006 , 02:09 PM



hehe...

I have the same requirement here, and I'll create a set based analysis tool
to do this.

but regarding your needs, and if you have AS2005, you can do something
like:
create your sale cube
create a "set analysis" cube. (with only the customer dimension and a "set
list" dimension and a "Set result" fact) setup this cube to use the
proactive caching feature.
use the many-many relationship between the Set List dimensionand the sales
cube
now, create an action like an simple URL action, which call a web page with
the current position, execute the drill action, retrieve the list of
customers, save the list in a new "Set List" (like "customers with more then
10 sales"), save the result in the database.

The set cube will be reprocessed automatically, the user will see the new
set called "customers with more then 10 sales" and the user can select this
saved list of customers to analyze anything.
You can save the "definition" of the action to update your customer list at
any time.
This method allow you to create and manage multiple sets. Also, with this
method, the result of this set is available in all OLAP client applications
and saved in the database, so the user can close a session starts a new one
and continue to play with the resulting set.

Another method is to save the list of customers in a new named set in the
cube himself, but this method required writing access to the cube definition
and not all the OLAP client applications can reuse these named sets.

I hope this idea will help you.

Jerome.

<christian.debry (AT) gmail (DOT) com> wrote

Thanks for the pseudo code.

I'm a bit new to the SQL Server environment, but I'm trying to do
something similar in which I create an action on a cell that allows the
user to dynamically filter the cube (or create a subcube) based on the
contents of the cell.

For instance, in a sales cube, the user could identify the total number
of customers that purchased a particular product. The action would then
allow the user to filter the cube on those specific customers so that
it would display their entire purchase history and help to provide
greater insight into the purchasing habits of specific customers.

Any ideas on how to go about doing this?

Jeje wrote:
Quote:
The pseudo code is something like:

Getting the MDX Drill query from the cube definition using the
GetSchemaDataSet and MDSCHEMA_ACTIONS schema
This return the Select statement executed by AS to execute the default
drillthrough command.
After this, I parse the string and I add the KEY(<dimension>.<level>)
keywords in the string.
and finally I execute the resulting statement which return the default
DRILL
+ the KEYS required by my application.

to retrieve the default drill syntax.
Public Shared Function GetActionContent(ByVal sActionName As String, ByVal
oCn As AdomdClient.AdomdConnection, ByVal Cube As String, ByVal sMDX As
String) As String

Dim oRest As New AdomdClient.AdomdRestrictionCollection

'oRest.Add("ACTION_NAME", sActionName)

oRest.Add("CUBE_NAME", Cube)

oRest.Add("COORDINATE", sMDX)

oRest.Add("ACTION_TYPE", 256)

oRest.Add("COORDINATE_TYPE", 6)

Dim ds As DataSet = oCn.GetSchemaDataSet("MDSCHEMA_ACTIONS", oRest, True)

If ds.Tables(0).Rows.Count > 0 Then

Return ds.Tables(0).Rows(0)("CONTENT")

End If

Return String.Empty

End Function

This code can return the syntax for a specific drillthrough action, if
none
specified then the default drill is returned.

But I plan to create an interface which let the user to choose which
columns
he want in the drill instead-of using the default drill. I think it will
be
really easy to do this interface.


christian.debry (AT) gmail (DOT) com> wrote in message
news:1150418026.787487.198230 (AT) c74g2000cwc (DOT) googlegroups.com...
Jeje, could you please post the code for your work around? Thanks.

Jeje wrote:
I have a work around.
I have changed my application and added some custom metadata.
First, I ask AS to send to me the MDX formula associated to my drill
command, then I scan the "RETURN" part of thecommand and add some
"key(column)" when the drill command contains targeted dimension /
attribute, and finally I execute themodified drillthrough statement.

Now I have a "generic" drillthrough system where the cube developper
simply
create the drillthrough action and the web designer can add some
metadata
for interactivity purpose.

but if MS can add some parameters in the drillthrough command, I'll
appreciate this :-)

"Akshai Mirchandani [MS]" <akshaim (AT) online (DOT) microsoft.com> wrote in
message
news:%23dsEOOCjGHA.1320 (AT) TK2MSFTNGP04 (DOT) phx.gbl...
You are correct -- it slipped my mind that this got cut at some point


Sorry, I guess there isn't a way to specify them in the action then...
I'll ask around to see if there is something I'm missing.

- Akshai
--
Try out the MSDN Forums for Analysis Services at:
http://forums.microsoft.com/MSDN/Sho...ID=83&SiteID=1

This posting is provided "AS IS" with no warranties, and confers no
rights
Please do not send email directly to this alias. This alias is for
newsgroup
purposes only.

"Jéjé" <willgart_A_ (AT) hotmail_A_ (DOT) com> wrote in message
news:OjfX8bAjGHA.412 (AT) TK2MSFTNGP05 (DOT) phx.gbl...
I'm using default drill actions.
but this returns only the value of the member of the drill, there is
no
choice to return the value, the caption and / or the uniquename.

"Akshai Mirchandani [MS]" <akshaim (AT) online (DOT) microsoft.com> wrote in
message
news:Oc3dYVAjGHA.4204 (AT) TK2MSFTNGP02 (DOT) phx.gbl...
If I understand you correctly, you should be able to get the
behavior
you want by creating a "Default Drillthrough Action" that covers the
space that you are drilling through on.

If AS finds a default drillthrough action that covers the cell being
drilled through on, it will use the columns specified on that action
to
define what columns should be returned.

Otherwise, it defaults to the captions of the granularity
attributes.

HTH,
Akshai
--
Try out the MSDN Forums for Analysis Services at:
http://forums.microsoft.com/MSDN/Sho...ID=83&SiteID=1

This posting is provided "AS IS" with no warranties, and confers no
rights
Please do not send email directly to this alias. This alias is for
newsgroup
purposes only.

"Jéjé" <willgart_A_ (AT) hotmail_A_ (DOT) com> wrote in message
news:u09ECe9iGHA.4512 (AT) TK2MSFTNGP04 (DOT) phx.gbl...
Hi,

I'm using the drillthrough command to display the source rows to my
users.
this works fine.

But now I want to retrieve the captions AND the keys or the member
unique name in the drillthrough result.
how to do this without using the RETURN statement?

or there is an option to return all the columns defined in the
drillthrough definition + asking for more columns?
something like:
DRILLTHROUGH maxrows 5000

select (<cell definition>, [Measures].[my measure]) on 0

From [Cube]

return UniqueName([$dimension].[level]) , *

but the "*" is a test and doesn't work, so, there is any function
designed for this?



or there is any property in the MDX statement designed for this?

DRILLTHROUGH maxrows 5000

select (<cell definition>, [Measures].[my measure]) on 0

From [Cube]

PROPERTIES <SOME PROPERTY TO SETUP TO RETURN THE KEY OR MEMBER
UNIQUE
NAME



thanks



jerome.















Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.