COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Business Insight Advanced / Cognos Workspace Advanced => Topic started by: pankaj on 21 May 2015 07:41:56 AM

Title: report not working in workspace advanced
Post by: pankaj on 21 May 2015 07:41:56 AM
hi
i need a quick solution ..i have three value prompts in report studio they are in cascading okk bt i want to directly select the third prompt and whn i select the third prompt it will disappear all the two selected prompts THAT IS CLEAR THE SELECTION I IMPLENT THIS THING USING THE JAVASCRIPT IN THE HTML ITEM BT whn i am running the report in the workspace advanced i am nt abe to make this selection .. inned this please give appropriate solution for this problem

script>
var list_prompts = document.getElementsByTagName("select");

function ClearSelections(){
  for (var i=0;i<list_prompts.length;i++)
  {
    list_prompts.selectedIndex = -1;
  }
}
</script>

<a href="JavaScript:ClearSelections()">Clear All Selections</a> this works fine in rs bt nt in workspace advanced
Title: Re: report not working in workspace advanced
Post by: MFGF on 21 May 2015 08:31:03 AM
Quote from: pankaj on 21 May 2015 07:41:56 AM
hi
i need a quick solution ..i have three value prompts in report studio they are in cascading okk bt i want to directly select the third prompt and whn i select the third prompt it will disappear all the two selected prompts THAT IS CLEAR THE SELECTION I IMPLENT THIS THING USING THE JAVASCRIPT IN THE HTML ITEM BT whn i am running the report in the workspace advanced i am nt abe to make this selection .. inned this please give appropriate solution for this problem

HI. YOU DIDN'T TELL US THE VERSion of Cognos 10 you are usING NOR HOW YOUR REPORT IS written. You mentioned using javascript, but we have no ideA WHAT THAT CODE IS. I'D SAY It's pretty difficult for anYONE to give you an answer unless you provide LOTS MORE DETAIL.

WOW! This post seems to make the CAPS LOCK STICK ON somewhat, doesn't it? :)

mF.