COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: barrysaab on 03 Jun 2013 10:51:53 AM

Title: Radio button inline
Post by: barrysaab on 03 Jun 2013 10:51:53 AM

Hi gurus,
I have requirement to show radio buttons inline for which i have found JavaScript but it works only up to Cognos10.1.1 and we are using Cognos10.1.4.Has anybody done this in Cognos10.1.4 ,Could you guys please share the script with me.
Thanks in Advance
Title: Re: Radio button inline
Post by: CognosPaul on 03 Jun 2013 11:30:24 AM
Can you post the script you're currently using? I suspect it's the one I wrote, but I need to be sure.

In addition, do the following. Since I don't have access to that version of Cognos, I need to see how the checkbox group is structured. Put an HTML item before the prompt with the expression: <div id="myprompt">
put another one after the prompt with: </div><div id="text"></div><input type="button" onclick="document.getElementById('text').innerHTML = escape(document.getElementById('myprompt').innerHTML)" value="click me">

When the report runs, press the button and copy/paste here the text that is generated. That will allow me to determine how the checkbox is generated and why the script is going wrong.
Title: Re: Radio button inline
Post by: barrysaab on 12 Jun 2013 08:02:08 AM
Thanks Paul,It is indeed your script.When I was placing before the value prompt it wasn't working but any when I placed it on any other place in report page it is working fine.Thanks again.