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     Resource Layout Parameter hiding

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Resource Layout Parameter hiding
 Login/Join
 
Member
posted
I have 3 different parameters that can call a fex.

BY State By City and By ZIP

I need a radio button for each that determines which list box is displayed to the user. If State is selected only the list box populated with states are shown same for if zip is selected etc.

Thanks in Advance!
 
Posts: 16 | Registered: February 01, 2006Report This Post
Expert
posted Hide Post
Ryan,

I have posted this elsewhere but can't locate it at the moment, so here it is again.

Basically, the HTML and Javascript is used (in this example) to disable certain combo boxes depending upon the selected value of the fourth combo box. You could change the "disabled" attribute to the "hidden" version that is commented out.

To achieve this with radio buttons is fairly similar of course Smiler -

<HTML>
<HEAD>
<TITLE>HtmlPage
</TITLE>
<META content="WebFocus Report Layout Painter" name ="Generator">
<SCRIPT id=IbiOptionsScript type=text/javascript>
var cgipath = "cgipath";
var ibirls = "ibirls";
var multidrill = "multidrill";
var mntFormValidate = "mntFormValidate";
var dyncalendar = "dyncalendar";
var ibiOptions = new Array(cgipath,ibirls,mntFormValidate,multidrill);
</SCRIPT>
<SCRIPT id=nls src="/ibi_html/javaassist/nls.js" type=text/javascript>
</SCRIPT>
<SCRIPT id=ibigbl src="/ibi_html/javaassist/ibi/html/js/ibigbl.js" type=text/javascript>
</SCRIPT>
<SCRIPT id=ibigblloadCss type=text/javascript>
ibigblloadCss(null);
</SCRIPT>
</HEAD>
<BODY onload=OnLoad()>
<!--startibiitems-->
<FORM method=post name ="form">
<INPUT type=hidden value=somefex name ="IBIF_ex">
<INPUT id=IBIAPP_app type=hidden value=anthony name ="IBIAPP_app">
<SELECT id=ITEM1 onChange=checkctrl(); style="Z-INDEX: 1; LEFT: 50px; WIDTH: 150px; 
   POSITION: absolute; TOP: 25px; HEIGHT: 22px" name ="Report" elementname="combobox1"
   elementtype="combobox" labelid caption="combobox" operation="NONE" ibiformat
   datatype="0" addalloption="1" dynalldisplayvalue="ALL" inchainindex="-1" chainnumber="-1"
   cacheruntimedata="0" displayfield numofrecords="-1" datafield sourcetype="typeMast"
   datasource="car.mas" IBIC_server IBIAPP_app="anthony" datafieldtype="CHAR">
  <OPTION value=none>Select a Report</OPTION>
  <OPTION value=Country>Country</OPTION>
  <OPTION value=Car>Car</OPTION>
  <OPTION value=Model>Model</OPTION>
</SELECT>
<SELECT id=ITEM2 style="visibility:visible; Z-INDEX: 2; LEFT: 50px; WIDTH: 150px;
   POSITION: absolute; TOP: 65px; HEIGHT: 22px" name ="Country" elementname="combobox2"
   elementtype="combobox" labelid caption="combobox" operation="NONE" ibiformat datatype="1"
   addalloption="1" dynalldisplayvalue="ALL" inchainindex="-1" chainnumber="-1" cacheruntimedata="0"
   displayfield numofrecords="-1" datafield sourcetype="typeFex" datasource="selctry1.fex"
   IBIC_server IBIAPP_app="anthony" datafieldtype="CHAR">
</SELECT>
<SELECT id=ITEM3 style="visibility:visible; Z-INDEX: 3; LEFT: 50px; WIDTH: 150px;
   POSITION: absolute; TOP: 105px;   HEIGHT: 22px" name ="Car" elementname="combobox3"
   elementtype="combobox" labelid   caption="combobox" operation="NONE" ibiformat datatype="1"
   addalloption="1"   dynalldisplayvalue="ALL" inchainindex="-1" chainnumber="-1" cacheruntimedata="0"
   displayfield numofrecords="-1" datafield sourcetype="typeFex" datasource="selctry2.fex"
   IBIC_server IBIAPP_app="anthony" datafieldtype="CHAR">
</SELECT>
<SELECT id=ITEM4 style="visibility:visible; Z-INDEX: 4; LEFT: 50px; WIDTH: 150px;
   POSITION: absolute; TOP: 145px;   HEIGHT: 22px" name ="Model" elementname="combobox4"
   elementtype="combobox" labelid   caption="combobox" operation="NONE" ibiformat datatype="1"
   addalloption="1"   dynalldisplayvalue="ALL" inchainindex="-1" chainnumber="-1" cacheruntimedata="0"
   displayfield numofrecords="-1" datafield sourcetype="typeFex" datasource="selctry3.fex"
   IBIC_server IBIAPP_app="anthony" datafieldtype="CHAR">
</SELECT>
<INPUT id=ITEM5 style="Z-INDEX: 5; LEFT: 50px; WIDTH: 80px; POSITION: absolute; TOP: 185px;
   HEIGHT: 30px" type=submit value=Submit name ="button5" elementname="button5" elementtype="button"
   sourcetype="typeUrl" targetname targettype="0" onclickset="0">
<INPUT id=ITEM6 style="Z-INDEX: 6; LEFT: 140px; WIDTH: 80px; POSITION: absolute; TOP: 185px;
   HEIGHT: 30px" type=reset value=Reset name ="button6" elementname="button6" elementtype="button"
   sourcetype="typeUrl" targetname targettype="0" onclickset="0">
</FORM>
<SCRIPT type=text/javascript>
<!--
function checkctrl() {
this.selected = document.getElementById("ITEM1");
//alert(this.selected.value);
selectCol = document.getElementsByTagName("SELECT");
for(i=0; i<selectCol.length; i++)
  {
  var el = selectCol[i];
  var datatype = el.getAttribute("datatype");    
  if (datatype=="1")
    {
    if (el.name==this.selected.value)
      {
//  alert("Showing " + el.name);
//        el.style.visibility = "visible";
        el.disabled = 0;
      } else {
//  alert("Hiding " + el.name);
//        el.style.visibility = "hidden";
        el.disabled = 1;
      }
    }
  }
}
//-->
</SCRIPT>
<!--endibiitems-->
<SCRIPT id=OnloadHandler>
function OnLoad() {
<!--startibilines-->
UpdateData();
<!--endibilines-->
}
</SCRIPT>
</BODY>
</HTML>


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
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Resource Layout Parameter hiding

Copyright © 1996-2020 Information Builders