Drill-through to a cube view with minimalistic coding

Ideas and tips for enhancing your TM1 application
Post Reply
Wim Gielis
MVP
Posts: 3222
Joined: Mon Dec 29, 2008 6:26 pm
OLAP Product: TM1, Jedox
Version: PAL 2.1.5
Excel Version: Microsoft 365
Location: Brussels, Belgium
Contact:

Drill-through to a cube view with minimalistic coding

Post by Wim Gielis »

Hello,

I was able to script a drill-through to a cube view:
https://tm1forum.com/viewtopic.php?p=84403#p84403

Have a look there to download the generic process and look at the examples of how to call it.
Bedrock is underpinning the new process so you need (at least some of) the Bedrock TI processes.

Works fine in PAW and PAfE ánd TM1 Web.

Best regards,

Wim
Last edited by Wim Gielis on Sat Apr 12, 2025 2:06 am, edited 1 time in total.
Best regards,

Wim Gielis

IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
Wim Gielis
MVP
Posts: 3222
Joined: Mon Dec 29, 2008 6:26 pm
OLAP Product: TM1, Jedox
Version: PAL 2.1.5
Excel Version: Microsoft 365
Location: Brussels, Belgium
Contact:

Re: Drill-through to a cube view with minimalistic coding

Post by Wim Gielis »

As an example call, use:

Code: Select all

NumericGlobalVariable( 'nErrors' );
StringGlobalVariable( 'vObject_Name' );

cCube = 'Prm_Init';
vObject_Name = 'Drill_Details (%u% at %t%)';

# Create the drill object (the order of subsets is retained)
nErrors = nErrors + ExecuteProcess( 'WG_DRILL_cube_view_drill_setup', 'pCube', cCube, 'pObject_Name', vObject_Name, 'pZero_Suppression', 'YY', 'pFilter', '
    Scenario¦' | pScenario | ' & Version¦' | pVersion | ' & Year¦' | pYear | ' & Period¦mdx:c(YTD M12) & 
    ~
    GL_Account¦mdx:d0(' | pGL_Account | ')' | ' & Organisation¦mdx:0' | ' & 
    ~
    Prm_Init_Msr¦Initialized' );

# Launch the drill object
If( nErrors > 0 ); ProcessError; EndIf;
ReturnViewHandle( cCube, vObject_Name );
Best regards,

Wim Gielis

IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
Post Reply