Opening a CubeViewer object
To identify and open a Cognos® TM1® Web
CubeViewer object, combine the Action=Open command
with the Type, Cube, View and AccessType parameters
in your URL.
Use the following format to open a CubeViewer object:
#Action=Open&Type=CubeViewer&Cube=CubeName&View=ViewName&AccessType=Status
where:
- CubeName is the name of cube to which the view belongs.
- ViewName is the name of cube view.
- Status is the public or private status of the cube view. You must include a value of either Public or Private to correctly identify the specific cube view that you want to open.
Copy and paste the following URL directly into the address
bar of your web browser to see this example.
http://localhost:9510/tm1web/UrlApi.jsp#Action=Open&Type=CubeViewer&Cube=plan_BudgetPlan&View=Budget%20Input%20Detailed&AccessType=Public&AdminHost=localhost&TM1Server=Planning%20Sample
Use the following JavaScript function to load a CubeViewer into an iframe.
function loadCubeview() {
// Get a reference to an existing iframe that has this ID
cubeView = document.getElementById("cubeviewId");
// Assemble the URL and assign it to the iframe
cubeView.src = baseUrl + "#Action=Open&Type=CubeViewer
&Cube=plan_BudgetPlan&View=Budget Input Detailed&AccessType=Public";
};