Dynamic Cubes Developer Guide
Total Page:16
File Type:pdf, Size:1020Kb
IBM Cognos Software Development Kit Version 11.0.0 Dynamic Cubes Developer Guide IBM Note Before using this information and the product it supports, read the information in “Notices” on page 83. Product Information This document applies to IBM Cognos Software Development Kit Version 11.0.0 and may also apply to subsequent releases. Licensed Materials - Property of IBM © Copyright International Business Machines Corporation 2013, 2018. US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents Introduction........................................................................................................ vii Chapter 1. What's new?......................................................................................... 1 New features in version 10.2.2....................................................................................................................1 Support for in-memory aggregates........................................................................................................1 Support for calculated members and measures................................................................................... 1 Support for slices....................................................................................................................................2 Support for relative time members........................................................................................................2 Support for named sets..........................................................................................................................2 Support for parameter maps..................................................................................................................3 Support for virtual measure folders.......................................................................................................3 Support for new expression types......................................................................................................... 3 New features in version 10.2.1 interim fix 3............................................................................................... 3 Support for virtual cubes........................................................................................................................4 Chapter 2. Overview of the Cognos Dynamic Cubes API.......................................... 5 Cognos Dynamic Cubes HTTP request structure........................................................................................ 5 Cognos Dynamic Cubes HTTP response structure..................................................................................... 6 Cognos Dynamic Cubes sample programs..................................................................................................7 Command overview..................................................................................................................................... 7 Chapter 3. Sample Cognos Dynamic Cubes model creation..................................... 9 Creating a model.......................................................................................................................................... 9 Creating a data source for the model.......................................................................................................... 9 Creating a relational dimension.................................................................................................................10 Creating a level for the relational dimension............................................................................................ 10 Creating a second level for the relational dimension............................................................................... 12 Creating a relational hierarchy for the model........................................................................................... 14 Creating physical tables and joins.............................................................................................................15 Creating mappings for the level attributes................................................................................................17 Creating a cube for the model................................................................................................................... 19 Creating a measure dimension for the cube............................................................................................. 19 Creating a measure....................................................................................................................................20 Creating a relationship between the relational dimension and the measure dimension........................21 Saving the model to the local file system..................................................................................................22 Publishing, registering, and starting the cube.......................................................................................... 22 Chapter 4. Virtual cube modeling using the Cognos Dynamic Cubes API................ 25 Creating a virtual cube...............................................................................................................................25 Creating a virtual measure dimension...................................................................................................... 26 Creating a virtual measure.........................................................................................................................27 Creating a virtual dimension......................................................................................................................29 Creating a virtual hierarchy........................................................................................................................30 Creating a virtual level............................................................................................................................... 31 Chapter 5. Aggregate modeling using the Cognos Dynamic Cubes API................... 33 Creating an aggregate................................................................................................................................33 Creating an aggregate measure.................................................................................................................33 Creating an aggregate dimension..............................................................................................................34 Creating an aggregate hierarchy................................................................................................................34 Creating an aggregate level....................................................................................................................... 35 iii Chapter 6. Performing additional tasks using the Cognos Dynamic Cubes API....... 37 Filter data using an aggregate slicer......................................................................................................... 37 Create calculated members and measures.............................................................................................. 38 Use relative time functionality...................................................................................................................38 Create named sets.....................................................................................................................................40 Create parameter maps.............................................................................................................................41 Chapter 7. Cognos Dynamic Cubes command reference........................................ 43 Control commands.....................................................................................................................................43 authenticate......................................................................................................................................... 43 cube_deploy......................................................................................................................................... 43 cube_register........................................................................................................................................44 cube_start.............................................................................................................................................44 model_close......................................................................................................................................... 44 model_new...........................................................................................................................................44 model_open..........................................................................................................................................45 model_open_stream............................................................................................................................ 45 model_save.......................................................................................................................................... 45 model_save_as.....................................................................................................................................46 model_save_stream............................................................................................................................