Create temp view and open them by returnviewhandle

Post Reply
Drg
Regular Participant
Posts: 159
Joined: Fri Aug 12, 2016 10:02 am
OLAP Product: tm1
Version: 10.2.0 - 10.3.0
Excel Version: 2010

Create temp view and open them by returnviewhandle

Post by Drg »

At someone it turned out to create a temporary view and subsets and return them in }dril process by returnviewhandlel?
Or is it impossible?
My research resulted in the fact that if you use temporary subsets or views, the view is deleted before the is actually returned. But In fact, the returnviewhandle function is executed before the process ends.
tomok
MVP
Posts: 2836
Joined: Tue Feb 16, 2010 2:39 pm
OLAP Product: TM1, Palo
Version: Beginning of time thru 10.2
Excel Version: 2003-2007-2010-2013
Location: Atlanta, GA
Contact:

Re: Create temp view and open them by returnviewhandle

Post by tomok »

I'm pretty sure you can't define a view as temporary when using the drill-thru to a view functionality. The whole point of this functionality is so a user can see the data in the cube at the drill-thru. If you define it as temporary to the process then it wouldn't be available for the user to view.
Tom O'Kelley - Manager Finance Systems
American Tower
http://www.onlinecourtreservations.com/
ardi
Community Contributor
Posts: 165
Joined: Tue Apr 02, 2013 1:41 pm
OLAP Product: tm1, cognos bi
Version: from TM1 9.4 to PA 2.0.9.6
Excel Version: 2010
Location: Toronto, ON

Re: Create temp view and open them by returnviewhandle

Post by ardi »

Unfortunately you cannot open a temporary view with returnviewhandle

This is one of first things I tried when IBM introduced the Temp Views and Subsets.

There are many other limitations of Temporary Views and subset, the biggest limitation i find is that their scope is only within the process where they get created, it would be nice if they extend the scope to the thread that created them (if you have a batch TI and you execute multiple TIs, then it would be nice if the Temporary Objects can be used/referenced in other TIs that are triggered after such objects have been created)

Also you cannot use them as Custom Consolidation, A permanent Subset can be used in a CELLGETN function, but temporary subsets cannot
Ardian Alikaj
lotsaram
MVP
Posts: 3704
Joined: Fri Mar 13, 2009 11:14 am
OLAP Product: TableManager1
Version: PA 2.0.x
Excel Version: Office 365
Location: Switzerland

Re: Create temp view and open them by returnviewhandle

Post by lotsaram »

ardi wrote: Wed Jul 17, 2019 5:18 pm There are many other limitations of Temporary Views and subset, the biggest limitation i find is that their scope is only within the process where they get created, it would be nice if they extend the scope to the thread that created them (if you have a batch TI and you execute multiple TIs, then it would be nice if the Temporary Objects can be used/referenced in other TIs that are triggered after such objects have been created)
Yes this was also my #1 criticism of temp objects, note was. Possibly you have been living under a rock but to IBM's credit this is something they fixed in 11.3. From that version on the scope of temp objects is now the execution chain not only the originating process. (Yes this wasn't exactly shouted from the rafters. Without this change bedrock 4 would not be possible.)
Please place all requests for help in a public thread. I will not answer PMs requesting assistance.
Post Reply