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     passing radio buttons to another HTML page

Read-Only Read-Only Topic
Go
Search
Notify
Tools
passing radio buttons to another HTML page
 Login/Join
 
Gold member
posted
I have two radio buttons (a & b) that when clicked call a procedure to check for the users security rights. I am having issues passing the variables for the radio buttons from one page to another html page. Any help would be great.


WF 7.6.10 /IIS 6/ JBoss Enterprise 4.3
Windows XP SP 2/Windows 2003 Server
MVS 7.3.3
 
Posts: 76 | Location: Hartford, CT | Registered: August 30, 2005Report This Post
Expert
posted Hide Post
You can only pass form object values from one HTML file to another via cookies or JavaScript.

You can pass the variable to a FOCEXEC that has HTML in it, which is the easiest method.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
Make sure that the controls are named -

<input type=radio name="myradio" .....


T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Master
posted Hide Post
Here is some JavaScript I wrote a while back.
var idx = document.URL.indexOf('?'); /* parameters on this URL? */
var params = new Array(); /* define an array */

if (idx != -1) /* if any params detected */
{
  /* split all the parameters as deliniated by an "&" */
  var pairs = document.URL.substring(idx+1, document.URL.length).split('&');
  /* go through all parameters detected */
  for (var i=0; i<pairs.length; i++)
  {
    /* grab the variable and the value */
    nameVal = pairs[i].split('=');
  eval("V_"+" = new ParmResult(nameVal[0], nameVal[1]);");
  params[eval(params.length)] = eval("V_");
  }
}

function Request(parmname)
{
  if (params.length > 0) 
  {
    for (i=0; i < params.length; i++) 
    {
      if(params[i].name == parmname)
      {
        return params[i].val
      }
    }
  }
return null
}

function ParmResult(name, val) 
{
  this.name = name;
  this.val = val;
}


to use it you must have an form method of get or create the url with the parameters on the url (that is what GET does).

In your javascript call the Request function passing the Name of the URL Parameter that you want to find the value of
example: To get the val of the parameter called UserID in the Below url

http://localhost/test.htm?UserID=ABC1234

var UserID = Request('UserID');




Scott

 
Posts: 865 | Registered: May 24, 2004Report This Post
Gold member
posted Hide Post
ok, here is what i have so far...

<FORM ACTION="jbs2.htm">

<TR> 

<input type="radio" name="j" value="j1" CHECKED> j1
    	<input type="radio" name="j" value="C1"> C1</p>
</TR>
<TR>
<td><input type="submit" </TD>
    <input type="hidden" value="test1">
</td>


the next page then needs to take the values selected from here and pass them into the code. The function used for this is the following:

function Mtest() {
if(document.test.j[0].checked) {
var URL="/cgi-bin/ibi_cgi/ibiweb.exe?IBIF_focexec=test1" + "&"
+ "j1=j1"
parent.page.document.URL=URL;
}
if(document.tocform.j[1].checked) {
var URL="/cgi-bin/ibi_cgi/ibiweb.exe?IBIF_focexec=test1" + "&"
+ "c1=c1"
parent.page.document.URL=URL;
}

This message has been edited. Last edited by: Kerry,


WF 7.6.10 /IIS 6/ JBoss Enterprise 4.3
Windows XP SP 2/Windows 2003 Server
MVS 7.3.3
 
Posts: 76 | Location: Hartford, CT | Registered: August 30, 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     passing radio buttons to another HTML page

Copyright © 1996-2020 Information Builders