Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Radio Buttons to Launch Report

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Radio Buttons to Launch Report
 Login/Join
 
Member
posted
Does anyone have a piece of code that will illustrate the use of radio buttons to launch a report. I have a report with a parameter with 3 static values (on a htlm layout)... the user selects the radio button next to the desired value and then hits the run report button... Is it possible to launch the report once the radio button is clicked ?
 
Posts: 6 | Registered: April 18, 2006Report This Post
Virtuoso
posted Hide Post
MArk D,

try adding/looking into the onClick() event for a radio button. onClick is a common event trigger which you can use to issue a "document.formname.submit();" action. using the ...submit(); action will trigger a submit of the form.

This should point you in the right direction.


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Member
posted Hide Post
do you have a piece a code that I can look at/copy that would launch the report from the onclick event of a radio button ?
 
Posts: 6 | Registered: April 18, 2006Report This Post
Member
posted Hide Post
Mark D,

Try this example.
<html>
<body>
<script language = "JavaScript">
< !--
function RunReport(value) { 
  window.open("/ibi_apps/WFServlet?IBIF_ex=carinst&COUNTRY=" + value); 
}
// -->
</script>
<form method="POST" action="/ibi_apps/WFServlet" name="mainForm">
<b> Select a Country: </b> <BR> 

<INPUT type="radio" name="Country" value="ENGLAND"   onclick="RunReport[value);"> England <BR> 

<INPUT type="radio" name="Country" value="FRANCE"    onclick="RunReport[value);"> France  <BR> 

<INPUT type="radio" name="Country" value="ITALY"     onclick="RunReport[value);"> Italy  <BR> 

<INPUT type="radio" name="Country" value="JAPAN"     onclick="RunReport[value);"> Japan  <BR> 

<INPUT type="radio" name="Country" value="W GERMANY" onclick="RunReport[value);"> W Germany  <BR> 

</form>
</body>
</html>

This message has been edited. Last edited by: JudyLT,
 
Posts: 3 | Location: New York, NY | Registered: October 04, 2005Report This Post
Member
posted Hide Post
Judy,
thanks for the example... it works fine.. if you wanted the report to be in a frame instead of a new window can that be done ?
 
Posts: 6 | Registered: April 18, 2006Report This Post
Member
posted Hide Post
Mark,

Just append the frame's name to window.open. Separate the target URL and window name by a comma. See JavaScript example below.

function RunReport(value) { 
  window.open("/ibi_apps/WFServlet?IBIF_ex=carinst&COUNTRY=" + value, "frame_name"); 
}



Judy
 
Posts: 3 | Location: New York, NY | Registered: October 04, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Radio Buttons to Launch Report

Copyright © 1996-2020 Information Builders