If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Actual row value in URL to another report

Started by Rudak, 24 Sep 2014 06:20:56 AM

Previous topic - Next topic

Rudak

Hello everybody  :),

I am developing a report passing parameters dynamically to another via the url. As you can imagine, using the HTML component. My problem is: when I click on the line that I want to use, it does not pass the current values ​​of the query, but the first. For example: I click on a particular row of my list and hoped that the last value was, say, "01/01/2014", but no. Being passed the first value from my query. Is there any way to dynamically pass?

Here is my HTML source:


'<head>
<script type="text/javascript">
function drillRelatorio(reportDetalhe)
{
var divRelatorio = document.getElementById(reportDetalhe);
divRelatorio.innerHTML = "<object width=\"100%\" height=\"800px\" type=\"text/html\" data=\"http://pisces:80/cognos8/cgi-bin/cognos.cgi?b_action=cognosViewer&ui.action=run&ui.header=false&ui.toolbar=false&cv.header=false&ui.object=%2fcontent%2ffolder%5b%40name%3d%27Relat%c3%b3rios%27%5d%2ffolder%5b%40name%3d%27Relat%c3%b3rios%20Operacionais%27%5d%2freport%5b%40name%3d%27Relat%c3%b3rio%20de%20Recolhimento%20por%20Contribuinte%20-%20teste%27%5d&ui.name=Relat%c3%b3rio%20de%20Recolhimento%20por%20Contribuinte%20-%20teste&run.outputFormat=&run.prompt=false&p_pInscricao=<selectChoices><selectOption useValue='+[qryContribuintes].[Número de Inscrição Formatado]+'/></selectChoices>&p_pDataInicio=<selectChoices><selectOption useValue='+[qryContribuintes].[Data Competência Início]+'/></selectChoices>&p_pDataFinal=<selectChoices><selectOption useValue='+[qryContribuintes].[Data Competência Fim]+'/></selectChoices>\"></object>";
divRelatorio.style.display = "block";

}

</script>
</head>
<body>
<a href="javascript:drillRelatorio(''reportDetalhe'')">
'