Page 1 of 1

Process with Parameters read Cube (Data Source)

Posted: Fri Jun 15, 2012 7:40 pm
by andreborges
Hi,
I have a Cube and need read this cube like a Data Source and insert the registers in a new cube with parameters inserts by users.
For example:
Cubo1
Dimension: Customer, Setor, Cust
in Dimension Customer have: "A"; "B", "C".

Now i need read this cube and insert only the information about the customer "A" in other CUBE (dimensions: Customer, Sales, Organization).
Users will include different entries in the field Customer (for parameters) .

Resume: Create a Process with parameters that read a Cube and insert in other Cube.
My problem is: How i can use a Parameters when I use DataSource = IBM COGNOS TM1

Thaks a lot!

Re: Process with Parameters read Cube (Data Source)

Posted: Fri Jun 15, 2012 7:53 pm
by Duncan P
If your cube is in the same TM1 server then you can do this with not much trouble.

Firstly you need a view defined on the cube. If you don't have one you can create it in the prolog with the appropriate TI commands, and you could make its definition depend on process parameters as well.

In the prolog you need to set DatasourceNameForServer to the name of the cube, DatasourceType to 'VIEW' and DatasourceCubeView to the name of the view.

Your process must be initially created by using a cube as a datasource. What we do is to have a dummy single cell cube with as many dummy dimensions as we will ever need (I use 20) and use that as the source. This will set up a set of variables which will get populated with the dimension coordinates from the cube you choose. Any spare variables will be ignored. The actual data values will be in either NValue or SValue. You can examine Value_Is_String to determine which.