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 |
<SPAN id=ITEM5 style="visibility:visible; BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; Z-INDEX: 32; LEFT: 30px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 145px; POSITION: absolute; TOP: 145px; HEIGHT: 20px; BORDER-RIGHT-WIDTH: 0px" name="text5" elementname="text5" elementtype="text"> Employee Name </SPAN> <SELECT id=ITEM6 style="visibility:visible; FONT-WEIGHT: 400; FONT-SIZE: 10pt; Z-INDEX: 42; LEFT: 180px; WIDTH: 220px; FONT-STYLE: normal; FONT-FAMILY: MS Sans Serif; POSITION: absolute; TOP: 145px; HEIGHT: 20px; TEXT-DECORATION: none" name="Employee" elementname="combobox6" elementtype="combobox" sourcetype="typeMaster" labelid caption="combobox" operation="NONE" ibiformat datatype="1" addalloption="0" dynalldisplayvalue="ALL" inchainindex="-1" chainnumber="-1" cacheruntimedata="0" displayfield numofrecords="-1" datafield="LAST_NAME" datasource="EMPLOYEE.MAS" datafieldtype="CHAR"> </SELECT> <SPAN id=ITEM7 style="visibility:hidden; BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; Z-INDEX: 32; LEFT: 30px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 145px; POSITION: absolute; TOP: 145px; HEIGHT: 20px; BORDER-RIGHT-WIDTH: 0px" name="text7" elementname="text7" elementtype="text"> Address Line </SPAN> <SELECT id=ITEM8 style="visibility:hidden; FONT-WEIGHT: 400; FONT-SIZE: 10pt; Z-INDEX: 42; LEFT: 180px; WIDTH: 220px; FONT-STYLE: normal; FONT-FAMILY: MS Sans Serif; POSITION: absolute; TOP: 145px; HEIGHT: 20px; TEXT-DECORATION: none" name="Address" elementname="combobox8" elementtype="combobox" sourcetype="typeMaster" labelid caption="combobox" operation="NONE" ibiformat datatype="1" addalloption="0" dynalldisplayvalue="ALL" inchainindex="-1" chainnumber="-1" cacheruntimedata="0" displayfield numofrecords="-1" datafield="ADDRESS_LN1" datasource="EMPLOYEE.MAS" datafieldtype="CHAR"> </SELECT>then add some JavaScript like this -
<SCRIPT type=text/javascript> // Show or hide the source // depending upon the radio button selected function showsrce(btn) { if (btn==1) { showItem = document.getElementById("ITEM5"); this.showItem.style.visibility = "visible"; showItem = document.getElementById("ITEM6"); this.showItem.style.visibility = "visible"; showItem = document.getElementById("ITEM7"); this.showItem.style.visibility = "hidden"; showItem = document.getElementById("ITEM8"); this.showItem.style.visibility = "hidden"; } else { showItem = document.getElementById("ITEM5"); this.showItem.style.visibility = "hidden"; showItem = document.getElementById("ITEM6"); this.showItem.style.visibility = "hidden"; showItem = document.getElementById("ITEM7"); this.showItem.style.visibility = "visible"; showItem = document.getElementById("ITEM8"); this.showItem.style.visibility = "visible"; } } </SCRIPT>and add your onclick events to your radio buttons -
onclick="showsrce(1);"remembering to change the value being passed for the second radio button.
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 |
quote:elementname="combobox6"
alert(btn);immediately after the function line and that will show you the value passed in the onclick event.
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 |
<SPAN id=ITEM2 style="FONT-WEIGHT: 400; FONT-SIZE: 10pt; Z-INDEX: 67; LEFT: 180px; WIDTH: 210px; FONT-STYLE: normal; FONT-FAMILY: MS Sans Serif; POSITION: absolute; TOP: 80px; HEIGHT: 20px; TEXT-DECORATION: none" name="radio2" elementname="radio2" elementtype="radio" sourcetype="typeMaster" labelid caption="radio" columns="3" rows="-1" operation="NONE" ibiformat datatype="0" addalloption="0" dynalldisplayvalue="ALL" inchainindex="-1" chainnumber="-1" cacheruntimedata="0" displayfield numofrecords="-1" datafield datasource datafieldtype="CHAR"> <INPUT id=ITEM2_0 onclick="showsrce(1);" style="LEFT: 0px; WIDTH: 16px; CURSOR: default; POSITION: absolute; TOP: 0px; HEIGHT: 16px" type=radio value=Employee name="DataSource" checked ="1"> <LABEL style="LEFT: 19px; POSITION: absolute; TOP: 0px" for="ITEM2_0"> Employee </LABEL> <INPUT id=ITEM2_1 onclick="showsrce(0);" style="LEFT: 88px; WIDTH: 16px; CURSOR: default; POSITION: absolute; TOP: 0px; HEIGHT: 16px" type=radio value=Address name="DataSource"> <LABEL style="LEFT: 107px; POSITION: absolute; TOP: 0px" for="ITEM2_1"> Addresses </LABEL> </SPAN>This message has been edited. Last edited by: Kerry,
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 |
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 |
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 |
<BODY> <SPAN id=ITEM2 style="FONT-WEIGHT: 400; FONT-SIZE: 10pt; Z-INDEX: 67; LEFT: 180px; WIDTH: 210px; FONT-STYLE: normal; FONT-FAMILY: MS Sans Serif; POSITION: absolute; TOP: 80px; HEIGHT: 20px; TEXT-DECORATION: none" sourcetype="typeMaster" datafieldtype="CHAR" datatype="0" datasource operation="NONE" addalloption="0" name="radio2" columns="3" datafield displayfield labelid numofrecords="-1" cacheruntimedata="0" chainnumber="-1" inchainindex="-1" dynalldisplayvalue="ALL" ibiformat rows="-1" caption="radio" elementtype="radio" elementname="radio2"> <INPUT id=ITEM2_0 style="LEFT: 0px; WIDTH: 16px; CURSOR: default; POSITION: absolute; TOP: 0px; HEIGHT: 16px" onclick=showsrce(1); type=radio CHECKED value=Employee name=DataSource> <LABEL style="LEFT: 19px; POSITION: absolute; TOP: 0px" for=ITEM2_0> Employee </LABEL> <INPUT id=ITEM2_1 style="LEFT: 88px; WIDTH: 16px; CURSOR: default; POSITION: absolute; TOP: 0px; HEIGHT: 16px" onclick=showsrce(0); type=radio value=Address name=DataSource> <LABEL style="LEFT: 107px; POSITION: absolute; TOP: 0px" for=ITEM2_1> Addresses </LABEL> </SPAN> <INPUT language=javascript id=button1 style="Z-INDEX: 1; LEFT: 170px; WIDTH: 210px; POSITION: absolute; TOP: 170px; HEIGHT: 60px" onclick=button1_OnClick(this) tabIndex=1 type=button size=21 value="Run Report" name=button1 requests_list="1"> <SELECT id=combobox2 style="Z-INDEX: 4; LEFT: 130px; VISIBILITY: visible; WIDTH: 250px; POSITION: absolute; TOP: 120px" tabIndex=4 size=1 name=BoardMember sourcetype="typeMaster" datafieldtype="VARCHAR" datatype="1" datasource="TBLDISTRICT.mas" operation="NONE" accept="0" addalloption="1" requiredfield="145163032" datafield="BOARD_MEMBER" displayfield="BOARD_MEMBER" labelid="text1"> </SELECT> <SPAN id=text2 style="Z-INDEX: 5; LEFT: 420px; WIDTH: 82px; POSITION: absolute; TOP: 50px; HEIGHT: 16px" tabIndex=5> STATUS </SPAN> <SELECT id=combobox3 style="Z-INDEX: 6; LEFT: 400px; WIDTH: 150px; POSITION: absolute; TOP: 120px" tabIndex=6 size=1 name=STATUS sourcetype="typeMaster" datafieldtype="VARCHAR" datatype="1" datasource="TBLSTATUS.mas" operation="NONE" accept="0" addalloption="1" requiredfield="145163032" datafield="STATUS" displayfield="STATUS" labelid="text2"> </SELECT> <SPAN id=text1 style="Z-INDEX: 25; LEFT: 130px; WIDTH: 230px; POSITION: absolute; TOP: 10px; HEIGHT: 38px" tabIndex=26> Select an Option </SPAN> <SELECT id=combobox1 style="Z-INDEX: 26; LEFT: 190px; VISIBILITY: hidden; WIDTH: 200px; POSITION: absolute; TOP: 280px" tabIndex=27 name=BoardMember datafieldtype="INTEGER" datatype="1" datasource="TBLschool.mas" operation="NONE" accept="0" addalloption="1" datafield="SCHOOLID" displayfield="SCHOOLID"> </SELECT>This message has been edited. Last edited by: Kerry,
function ITEM2_onclick(ctrl) { if (RADSELECT[0].checked) { showItem = document.getElementById("combobox2"); this.showItem.style.visibility = "visible"; showItem = document.getElementById("combobox1"); this.showItem.style.visibility = "hidden"; } else { showItem = document.getElementById("combobox2"); this.showItem.style.visibility = "hidden"; showItem = document.getElementById("combobox1"); this.showItem.style.visibility = "visible"; } }
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 |