Cognos Analytics

Cognos Analytics

Connect, learn, and share with thousands of IBM Cognos Analytics users! 

 View Only
  • 1.  Passing Carriage Return / Line Feed through drill through

    Posted Mon November 11, 2024 05:40 AM
    Edited by Marc Reed Mon November 11, 2024 05:43 AM

    Morning all.

    Just wondered if anyone knows how to pass parameters with a Carriage Return / Line Feed via drill through?

    Here is a simple test case (demos the problem, not the real problem).

    I have a report that can capture a multiline parameter:

    On the report this parameter looks like:

    If I create a drill through on this report back to itself, passing the data item 1 into the same parameter, then the CR/LF get replaced:  

    1. I know that in a query based data item I could do some kind of substitute to replace 
 with chr(10) but I don't want to introduce another query into a report just to format a data item correctly. Is there a report expression (not query expression) that can do a replace?
    2. Or if anyone knows how to pass CR/LF via drill through then let me know.

    Regards.

    Edited - screenshots are still not showing on this forum!

    basically the drill through target is showing 'hello
world'

    rather than

    hello

    world



    ------------------------------
    Marc Reed
    ------------------------------



  • 2.  RE: Passing Carriage Return / Line Feed through drill through
    Best Answer

    Posted Mon November 11, 2024 08:24 AM

    You won't need a report expression. Simply use a HTML item.

    Hardcopy


    ------------------------------
    Thomas Wolf
    BI-Manager
    Techniker Krankenkasse
    Hamburg
    ------------------------------



  • 3.  RE: Passing Carriage Return / Line Feed through drill through

    Posted Mon November 11, 2024 08:36 AM

    Thanks! I need it in PDF, but I always forget about the Rich Text which will do just as well.



    ------------------------------
    Marc Reed
    ------------------------------