title: Cognos passing a value to all prompts
body: <p>So I am using jQuery in my reports and I have a suite of reports that all load thanks to jQuery all at once so the customer feels like the transitions are faster because they don't have to wait between each click. I want to be able to have all reports change based off of a prompt the customer uses. So if they select a specific day, all of the reports in the suite will change to that day. Or if they have a specific area they select, all of the reports go to that area. This will make it so the customer doesn't have to load the parameters in the prompt for each report. I am wonderin if there is a way to do this. I have looked and haven't found anything. </p>
  
  <p>Edit..
  So in my report that houses all of the iframes and the value prompt that I have named changeMonth I have this JS</p>
  
  <pre><code>&lt;script&gt;
  var report = cognos.Report.getReport("_THIS_");
  var radio = report.prompt.getControlByName('monthChange');
  
  var currentRadioValue = radio.getValues()[0]; //Get initial value object
  
  radio.setValidator(validateRadio); //Define function to validate prompt
  
  function validateRadio(values) {
  if (values &amp;&amp; values.length &gt; 0 &amp;&amp; values[0].use != currentRadioValue.use) { //Only do anything if control has value and has changed
      currentRadioValue = values[0]; //Assign new value for later comparison
      for (var i=0; i&lt;window.frames.length; i++) { //Loop through all iFrames
               window.frames[i].changeValue(values[0].use); //Call the changeValue     function passing in the radio button value
      }
   }
  return true; //Indicates the prompt is valid
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>In the reports that I want iframed in I have a value prompt that is a drop down list with this code in an HTML tag.</p>
  
  <pre><code>&lt;script&gt;
  function changeValue(str){
  var report = cognos.Report.getReport("_THIS_"); //Grab a handle for the report
  var control = report.prompt.getControlByName('monthChange'); //Grab a handle for the    prompt control
  control.addValues([{"use":str,"display":str}]); //Change the prompt to the passed in value
  report.sendRequest(cognos.Report.Action.REPROMPT); //Reprompt the page
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>They were both drop down lists if that matters. I see that you listed them as radio buttons so I will try that here in a moment and let you know if that changed anything. But how I have it setup, is there something else i should be doing?</p>