Topic
No replies
brunoro
brunoro
29 Posts
ACCEPTED ANSWER

Pinned topic Cognos Viwer Portler not rrunning with Java Script

‏2013-05-16T21:04:31Z |

 

HI all,

 

I am trying to run an report inside Cognos Viewer, but when I choice the values on prompt the report  stop to run!

Followin the script...someone can help me?

<script type="text/javascript">
 
var locAtual = 1;
var cod = 0;
 
 
var fW = (typeof getFormWarpRequest == "function" ? getFormWarpRequest() : document.forms["formWarpRequest"]);
if ( !fW || fW == undefined){ 
fW = ( formWarpRequest_THIS_ ? formWarpRequest_THIS_ : formWarpRequest_NS_ );}
 
function swapLoc(){
 
var node_list = fW._oLstChoicesLOC;
var count = node_list.length;
for (var i = 0; i < node_list.length; i++){
if (node_list[i].checked) {
cod = node_list[i].value;
break;
 
}
 
}
if(locAtual > 0){
}
 
document.getElementById('LC'+locAtual.toString()).style.display = "none";
document.getElementById('LC'+cod.toString()).style.display = "block";
locAtual = cod;
}
 
</script>