Author Topic: additional Parameter with Propmpt?  (Read 591 times)

Offline nugget

  • Full Member
  • ***
  • Posts: 47
  • Forum Citizenship: +0/-0
additional Parameter with Propmpt?
« on: 06 Feb 2009 05:02:19 pm »
Hi Gurus,

i have a Report with a prompt to set a Date filter. How is it possible to send a additional Parameter if a user select a value of the prompt?

FYI: I created a Tap-Navigation where the Parameter (pTabToShow) said which block should be displayed.

The links in the Tab-Navigation look like this:
"<a href="#" onclick="document.formWarpRequest.elements['p_pTabToShow'].value='Tab 1';SetPromptControl('reprompt')">Name of the Tab[/url]"

The Problem is when a user select e.g. the tab 3, the reports reloads and shows the bock which contains the information of tab 3 so far so good. But if the user select a filter (prompt) the report reloads and shows tab 1. The Filter works to but i want that the report stay to tab 3 without the user have to select it again after the reload.

I think the Solution ist to send the parameter pTabToShow with his value (here tab3) too, when the prompt is selected.

sorry for my english i hope you understand my Problem.   ;)

Thx
Cognos 8.2

Offline nugget

  • Full Member
  • ***
  • Posts: 47
  • Forum Citizenship: +0/-0
Re: additional Parameter with Propmpt?
« Reply #1 on: 12 Feb 2009 03:58:35 pm »
have nobody any ideas to solve my problems?

Questen 1:
How is it possible to send a second parameter in a link which looks like this:

Code: [Select]
<a href="#" onclick="document.formWarpRequest.elements['p_pTabToShow'].value='Tab 1';SetPromptControl('reprompt')">Tabname</a>

Question 2:
How is it possible to send a parameter via drillthrough if the drillthrougreport dont need the parameter (when i click on the pen-icon in the drillthroughoptions the parameter which i want to send is not showed because its defined by a htmlobject)?

greets nugget
Cognos 8.2