IBM Support

How can I make my Drill Through links available only to specific values in the list column

Question & Answer


Question

There is a list report with a Drill Through Definition on a column containing related and non-related data items for the target report. How can the Drill Through link be edited to only be active for the related data items?

Answer

This can be achieved by using a conditional block inside the list with a defined variable.


    

           
  1. Add a list container to your report
  2.        
  3. Add your Data Item that you want to set the Drill Through Definition on
  4.        
  5. Add the same Data Item a 2nd time
  6.        
  7. From the Toolbox Panel -> Advanced add a Conditional block to the list.
    You should now have a list with 3 columns
  8.        
  9. Now define your Drill Through Definition on one of the Data item colums.
    The other Data Item column stays the same.
  10.        
  11. Open the Queries Pane and change to the Expression Explorer to create a new variable
  12.        
  13. Add a new Boolean Variable using an expression like: IF ([DATA ITEM] in ('VALUE','VALUE')) THEN (1) ELSE(0)
  14.        
  15. Unlock the report
  16.        
  17. Go back to your list and select the Conditional Block
  18.        
  19. Open the Properties and set for the Block Variable the Boolean Variable from Step 7
  20.        
  21. The Property Current Block is set to NO. So drag the Data Item without the Drill Through Definition into the Conditional Block
  22.        
  23. Change Current Block to YES and this time drag the Data Item with the Drill Through Definition into the Conditional Block.
  24.        
  25. Delete the now empty Columns
  26.            
    

You can find attached a sample report specification to show the result of the steps above.

[{"Product":{"code":"SSTSF6","label":"IBM Cognos Analytics"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Report Authoring v11x","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.0.9;11.0","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
15 June 2018

UID

swg22013893