Page 1 of 1

Creatae a TI proess who simulates the same role of Snapshot cube button

Posted: Tue Nov 16, 2021 12:24 pm
by pikolikoli
Hello TM1 People,

For a business need, I should create a TI process who extracts any public view created by users to database. I tried using parameters and passing the cube and vue to parameters then adding these two lines :

Code: Select all

DataSourceNameForServer = pCube;
DataSourceCubeView = pView;
But it seem taking all the dimension elemnts of the view, not just the selected elemnts of the view ( selcetd ctitle, selected columns etc ...).
How can I make my process For any given view, take only the selected values by the user and insert into database the values that show in the view. In other words, dymanimycly simulate Snapshot button for every view?

Thank you in advance

Re: Creatae a TI proess who simulates the same role of Snapshot cube button

Posted: Tue Nov 16, 2021 1:51 pm
by Wim Gielis
Either you ask the users to only have 1 element in the title selections.
Either you process the associated *.vue file, maybe there's information on what is shown as the chosen element.
Either you look at the REST API.

The solutions are presented from easiest to most difficult.