![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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. |
#3
| |||
| |||
|
|
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. |
#4
| |||
| |||
|
|
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. |
#5
| |||
| |||
|
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. |
#6
| |||
| |||
|
|
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. |
#7
| |||
| |||
|
|
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. |
#8
| |||
| |||
|
|
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. |
#9
| |||
| |||
|
|
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. |
![]() |
| Thread Tools | |
| Display Modes | |
| |