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     [CLOSED] Prefill/Reload Popboxes in hTML

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Prefill/Reload Popboxes in hTML
 Login/Join
 
Platinum Member
posted
Anyone know how to reload a dropdown in HTML when a user comes back to the screen.

We have an application that allows users to select from several dropdowns to build an insurance quote but when the move to the next screen and come back the selection are not being held. They have to reselect all the options.

I have tried setting them when they come back but it is not working. The boxes are initially built statically 1 – 5 etc. and we are saving them off as they move thru the screens. If you look at the source code after you click the back button the variables (selections made) are there but the drop boxes show all defaults.

Thanks
JV
WF 764

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 8105m
Windows, All Outputs
 
Posts: 156 | Registered: August 23, 2010Report This Post
Virtuoso
posted Hide Post
Have you tried to use the following ?

To saved selected option:
aVar = IbComposer_getCurrentSelection('aVariable');


To reassign selected option:
IbComposer_setCurrentSelection('aVariable', aVar, false);

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


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Platinum Member
posted Hide Post
I don't know what just happened, here it is again.

<!-- Generated by Report Layout Painter -->
<HTML>
<HEAD>
<SCRIPT id=IBI_RelCallBack type=text/javascript>function AdjustChildrenPosition(){
}
</SCRIPT>
 
<SCRIPT id=IBI_OptionsScript type=text/javascript>
var rltVersion = "764";
var cgipath = "cgipath";
var ibirls = "ibirls2";
 
var rltdyncalendar = "rltdyncalendar";
var gmap = "ibigmap";
var olap="olap";
var olappanebase="olappanebase";
var olapdrill="olapdrill";
 
var ibixmltree="ibixmltree";
 
var ibiOptions = new Array(cgipath,ibirls);
</SCRIPT>
 
<SCRIPT id=IBI_nls type=text/javascript src="/ibi_html/javaassist/nls.js"></SCRIPT>
 
<SCRIPT id=IBI_ibigbl type=text/javascript src="/ibi_html/javaassist/ibi/html/js/ibigbl.js"></SCRIPT>
 
<SCRIPT id=IBI_ibigblloadCss type=text/javascript>
ibigblloadCss(null);</SCRIPT>
<TITLE>HtmlPage</TITLE>
<SCRIPT id=clientEventHandlersJS type=text/javascript>
//Begin function window_onload
function window_onload() {
UpdateData();
// TODO: Add your event handler code here
//add onInitialUpdate() function to make changes before initial run of the reports
}
//End function window_onload
 
//Begin function Back_OnClick
function Back_OnClick(ctrl) {
// TODO: Add your event handler code here
OnExecute(ctrl)
}
//End function Back_OnClick
 
</SCRIPT>
 
<SCRIPT for=window eventname="onload">window.onload = function() { window_onload(); }</SCRIPT>
</HEAD>
<BODY style="OVERFLOW: auto" edaconnectionrequired="true">
<SPAN tabIndex=1 id=text1 style="FONT-SIZE: 18pt; HEIGHT: 120px; FONT-FAMILY: Arial; VERTICAL-ALIGN: bottom; POSITION: absolute; FONT-WEIGHT: bold; COLOR: #cccc99; TEXT-ALIGN: center; LEFT: 0px; Z-INDEX: 1; TOP: 0px; WIDTH: 1020px; BACKGROUND-COLOR: #583000">
<DIV></DIV>
<DIV>Umbrella Rate Quote
<IMG tabIndex=7 id=image1 style="HEIGHT: 100px; POSITION: absolute; LEFT: 20px; Z-INDEX: 7; TOP: 10px; WIDTH: 210px" border=0 name=image1 src="/approot/routines/txfb3.gif" width=160 height=110 originalWidth="165" originalHeight="112"></DIV></SPAN>
<SPAN tabIndex=3 id=text2 style="BORDER-TOP-STYLE: none; FONT-SIZE: 14pt; BORDER-LEFT-STYLE: none; HEIGHT: 1350px; FONT-FAMILY: Arial; BORDER-BOTTOM-STYLE: none; POSITION: absolute; FONT-WEIGHT: normal; COLOR: dimgray; FONT-STYLE: normal; BORDER-RIGHT-STYLE: none; LEFT: 0px; Z-INDEX: 3; TOP: 120px; WIDTH: 1020px">
<DIV>
<SPAN tabIndex=4 id=line1 style="FONT-SIZE: 1pt; HEIGHT: 3px; POSITION: absolute; LEFT: 90px; Z-INDEX: 4; TOP: 80px; WIDTH: 880px; BACKGROUND-COLOR: lavender" elementtype="5"></SPAN></DIV>
<DIV></DIV>
<SPAN tabIndex=5 id=text3 style="FONT-SIZE: 14pt; BORDER-TOP: thin ridge; HEIGHT: 150px; FONT-FAMILY: Arial; BORDER-RIGHT: thin ridge; VERTICAL-ALIGN: middle; BORDER-BOTTOM: thin ridge; POSITION: absolute; FONT-WEIGHT: bold; COLOR: black; TEXT-ALIGN: center; LEFT: 60px; BORDER-LEFT: thin ridge; Z-INDEX: 6; TOP: 100px; WIDTH: 960px; BACKGROUND-COLOR: #957e48">(Personal) DwellingInformation
<SPAN tabIndex=10 id=text6 style="FONT-SIZE: 10pt; HEIGHT: 30px; FONT-FAMILY: Arial; POSITION: absolute; FONT-WEIGHT: bold; COLOR: black; LEFT: 320px; Z-INDEX: 10; TOP: 80px; WIDTH: 310px">Please make a selection below</SPAN></SPAN>
<SPAN tabIndex=6 id=text4 style="FONT-SIZE: 14pt; BORDER-TOP: thin ridge; HEIGHT: 1110px; FONT-FAMILY: Arial; BORDER-RIGHT: thin ridge; VERTICAL-ALIGN: middle; BORDER-BOTTOM: thin ridge; POSITION: absolute; FONT-WEIGHT: bold; COLOR: #ffffff; TEXT-ALIGN: center; LEFT: 60px; BORDER-LEFT: thin ridge; Z-INDEX: 6; TOP: 230px; WIDTH: 960px; BACKGROUND-COLOR: #957e48">
<FORM tabIndex=11 id=form2 onsubmit="OnExecute(this);return false;" style="HEIGHT: 1030px; POSITION: absolute; LEFT: 10px; Z-INDEX: 11; TOP: 10px; WIDTH: 940px" method=post name=form2 autoExecute="True" requests_list="0" default_slider_type="4" form_prompt_location="1" form_number_of_visible_rows="4" form_number_of_columns="4" vert_dist_between_controls="10" form_hor_dist_between_controls="10" form_dist_between_desc_and_input="10">
<INPUT tabIndex=12 id=form2Submit title=Next1 style="HEIGHT: 22px; BACKGROUND-IMAGE: url(/ibi_html/javaassist/ibi/html/describe/run16.gif); BACKGROUND-REPEAT: no-repeat; POSITION: absolute; LEFT: 10px; Z-INDEX: 12; TOP: 940px; WIDTH: 80px; BACKGROUND-COLOR: lavender" size=41 type=submit value=Next name=Next1>
<SPAN tabIndex=42 id=text9 style="FONT-SIZE: 14pt; HEIGHT: 44px; VERTICAL-ALIGN: middle; POSITION: absolute; FONT-WEIGHT: bold; COLOR: black; TEXT-ALIGN: left; LEFT: 30px; Z-INDEX: 34; TOP: 630px; WIDTH: 702px">Watercraft coverage (including jet skis) that is endorsed to a TFB underlying policy or by another carrier? (End. 215)</SPAN>
<FIELDSET tabIndex=40 id=groupbox11 style="HEIGHT: 60px; POSITION: absolute; LEFT: 280px; Z-INDEX: 32; TOP: 690px; WIDTH: 230px">
<LEGEND>101-150 horsepower</LEGEND>
<SELECT tabIndex=41 id=HrsePwer2 style="POSITION: absolute; LEFT: 10px; Z-INDEX: 33; TOP: 30px; WIDTH: 70px" name=HrsePwer2>
<OPTION selected value=None displaytext="None">None</OPTION>
<OPTION value=1 displaytext="1">1</OPTION>
<OPTION value=2 displaytext="2">2</OPTION>
<OPTION value=3 displaytext="3">3</OPTION>
<OPTION value=4 displaytext="4">4</OPTION>
<OPTION value=5 displaytext="5">5</OPTION>
<OPTION value=6 displaytext="6">6</OPTION>
<OPTION value=7 displaytext="7">7</OPTION>
<OPTION value=8 displaytext="8">8</OPTION>
<OPTION value=9 displaytext="9">9</OPTION>
<OPTION value=10 displaytext="10">10</OPTION></SELECT></FIELDSET>
<FIELDSET tabIndex=38 id=groupbox10 style="HEIGHT: 60px; POSITION: absolute; LEFT: 30px; Z-INDEX: 30; TOP: 770px; WIDTH: 230px">
<LEGEND>151-200 horsepower</LEGEND>
<SELECT tabIndex=39 id=HrsePwer3 style="POSITION: absolute; LEFT: 10px; Z-INDEX: 31; TOP: 30px; WIDTH: 70px" name=HrsePwer3>
<OPTION selected value=None displaytext="None">None</OPTION>
<OPTION value=1 displaytext="1">1</OPTION>
<OPTION value=2 displaytext="2">2</OPTION>
<OPTION value=3 displaytext="3">3</OPTION>
<OPTION value=4 displaytext="4">4</OPTION>
<OPTION value=5 displaytext="5">5</OPTION>
<OPTION value=6 displaytext="6">6</OPTION>
<OPTION value=7 displaytext="7">7</OPTION>
<OPTION value=8 displaytext="8">8</OPTION>
<OPTION value=9 displaytext="9">9</OPTION>
<OPTION value=10 displaytext="10">10</OPTION></SELECT></FIELDSET>
<FIELDSET tabIndex=36 id=groupbox9 style="HEIGHT: 60px; POSITION: absolute; LEFT: 280px; Z-INDEX: 28; TOP: 770px; WIDTH: 230px">
<LEGEND>Over 200 horsepower</LEGEND>
<SELECT tabIndex=37 id=HrsePwer4 style="POSITION: absolute; LEFT: 10px; Z-INDEX: 29; TOP: 30px; WIDTH: 70px" name=HrsePwer4>
<OPTION selected value=None displaytext="None">None</OPTION>
<OPTION value=1 displaytext="1">1</OPTION>
<OPTION value=2 displaytext="2">2</OPTION>
<OPTION value=3 displaytext="3">3</OPTION>
<OPTION value=4 displaytext="4">4</OPTION>
<OPTION value=5 displaytext="5">5</OPTION>
<OPTION value=6 displaytext="6">6</OPTION>
<OPTION value=7 displaytext="7">7</OPTION>
<OPTION value=8 displaytext="8">8</OPTION>
<OPTION value=9 displaytext="9">9</OPTION>
<OPTION value=10 displaytext="10">10</OPTION></SELECT></FIELDSET>
<INPUT tabIndex=13 id=form2Reset style="HEIGHT: 22px; BACKGROUND-IMAGE: url(/ibi_html/javaassist/ibi/html/describe/reset.gif); BACKGROUND-REPEAT: no-repeat; POSITION: absolute; LEFT: 10px; Z-INDEX: 13; TOP: 1000px; WIDTH: 150px; BACKGROUND-COLOR: lavender" size=76 type=reset value=" Clear Selections" name=Reset>
<FIELDSET tabIndex=14 id=form2_formbodyid style="BORDER-TOP-STYLE: none; OVERFLOW: auto; BORDER-LEFT-STYLE: none; HEIGHT: 920px; BORDER-BOTTOM-STYLE: none; POSITION: absolute; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; BORDER-RIGHT-STYLE: none; PADDING-LEFT: 0px; LEFT: 0px; Z-INDEX: 14; TOP: 10px; PADDING-RIGHT: 0px; WIDTH: 935px" formbody="1">
<FIELDSET tabIndex=16 id=GB_AOOR style="HEIGHT: 70px; POSITION: absolute; LEFT: 30px; Z-INDEX: 0; TOP: 60px; WIDTH: 430px" name="AddOwnOcc">
<LEGEND style="FONT-SIZE: 14pt; HEIGHT: 25px; FONT-FAMILY: @Arial Unicode MS; WIDTH: 381px">
<DIV>Additional Owner Occupied Residence</DIV></LEGEND>
<SELECT tabIndex=17 id=AddOwnOcc style="POSITION: absolute; LEFT: 10px; Z-INDEX: 16; TOP: 40px; WIDTH: 70px" name=AddOwnOcc>
<OPTION selected value=None displaytext="None">None</OPTION>
<OPTION value=1 displaytext="1">1</OPTION>
<OPTION value=2 displaytext="2">2</OPTION>
<OPTION value=3 displaytext="3">3</OPTION>
<OPTION value=4 displaytext="4">4</OPTION>
<OPTION value=5 displaytext="5">5</OPTION>
<OPTION value=6 displaytext="6">6</OPTION>
<OPTION value=7 displaytext="7">7</OPTION>
<OPTION value=8 displaytext="8">8</OPTION>
<OPTION value=9 displaytext="9">9</OPTION>
<OPTION value=10 displaytext="10">10</OPTION></SELECT></FIELDSET>
<SPAN tabIndex=18 id=text7 style="BORDER-LEFT-WIDTH: thin; FONT-SIZE: 14pt; HEIGHT: 66px; BORDER-RIGHT-WIDTH: thin; VERTICAL-ALIGN: middle; BORDER-BOTTOM-WIDTH: thin; POSITION: absolute; COLOR: black; TEXT-ALIGN: left; LEFT: 30px; Z-INDEX: 17; TOP: 160px; BORDER-TOP-WIDTH: thin; WIDTH: 800px">
<DIV>Up to 4-family rental dwellings are included in the base rate. Additional rental dwelling charges for 4 or more units (single family, duplex, triplex or quad-plex dwellings) are:</DIV>
<DIV>(Only 20 units total can be endorsed. A unit = each family unit example triplex = 3 units)</DIV></SPAN>
<FIELDSET tabIndex=19 id=groupbox1 style="HEIGHT: 60px; POSITION: absolute; LEFT: 30px; Z-INDEX: 0; TOP: 230px; WIDTH: 318px">
<LEGEND>Single family residence (Rental)</LEGEND>
<SELECT tabIndex=20 id=SNGFamRes style="POSITION: absolute; LEFT: 12px; Z-INDEX: 18; TOP: 32px; WIDTH: 70px" name=SNGFamRes operation="NONE">
<OPTION selected value=None displaytext="None">None</OPTION>
<OPTION value=1 displaytext="1">1</OPTION>
<OPTION value=2 displaytext="2">2</OPTION>
<OPTION value=3 displaytext="3">3</OPTION>
<OPTION value=4 displaytext="4">4</OPTION>
<OPTION value=5 displaytext="5">5</OPTION>
<OPTION value=6 displaytext="6">6</OPTION>
<OPTION value=7 displaytext="7">7</OPTION>
<OPTION value=8 displaytext="8">8</OPTION>
<OPTION value=9 displaytext="9">9</OPTION>
<OPTION value=10 displaytext="10">10</OPTION>
<OPTION value=11 displaytext="11">11</OPTION>
<OPTION value=12 displaytext="12">12</OPTION>
<OPTION value=13 displaytext="13">13</OPTION>
<OPTION value=14 displaytext="14">14</OPTION>
<OPTION value=15 displaytext="15">15</OPTION>
<OPTION value=16 displaytext="16">16</OPTION>
<OPTION value=17 displaytext="17">17</OPTION>
<OPTION value=18 displaytext="18">18</OPTION>
<OPTION value=19 displaytext="19">19</OPTION>
<OPTION value=20 displaytext="20">20</OPTION></SELECT></FIELDSET>
<FIELDSET tabIndex=21 id=groupbox2 style="HEIGHT: 60px; POSITION: absolute; LEFT: 370px; Z-INDEX: 0; TOP: 230px; WIDTH: 240px">
<LEGEND>Duplex (Rental)</LEGEND>
<SELECT tabIndex=22 id=Duplex style="POSITION: absolute; LEFT: 12px; Z-INDEX: 19; TOP: 32px; WIDTH: 72px" name=Duplex>
<OPTION selected value=None displaytext="None">None</OPTION>
<OPTION value=1 displaytext="1">1</OPTION>
<OPTION value=2 displaytext="2">2</OPTION>
<OPTION value=3 displaytext="3">3</OPTION>
<OPTION value=4 displaytext="4">4</OPTION>
<OPTION value=5 displaytext="5">5</OPTION>
<OPTION value=6 displaytext="6">6</OPTION>
<OPTION value=7 displaytext="7">7</OPTION>
<OPTION value=8 displaytext="8">8</OPTION>
<OPTION value=9 displaytext="9">9</OPTION>
<OPTION value=10 displaytext="10">10</OPTION></SELECT></FIELDSET>
<FIELDSET tabIndex=23 id=groupbox3 style="HEIGHT: 60px; POSITION: absolute; LEFT: 30px; Z-INDEX: 0; TOP: 310px; WIDTH: 320px">
<LEGEND>Triplex (Rental)</LEGEND>
<SELECT tabIndex=24 id=Triplex style="POSITION: absolute; LEFT: 10px; Z-INDEX: 20; TOP: 30px; WIDTH: 70px" name=Triplex>
<OPTION selected value=None displaytext="None">None</OPTION>
<OPTION value=1 displaytext="1">1</OPTION>
<OPTION value=2 displaytext="2">2</OPTION>
<OPTION value=3 displaytext="3">3</OPTION>
<OPTION value=4 displaytext="4">4</OPTION>
<OPTION value=5 displaytext="5">5</OPTION>
<OPTION value=6 displaytext="6">6</OPTION></SELECT></FIELDSET>
<FIELDSET tabIndex=25 id=groupbox4 style="HEIGHT: 60px; POSITION: absolute; LEFT: 370px; Z-INDEX: 0; TOP: 310px; WIDTH: 240px">
<LEGEND>Quadruplex (Rental)</LEGEND>
<SELECT tabIndex=26 id=QuadPlex style="POSITION: absolute; LEFT: 10px; Z-INDEX: 21; TOP: 30px; WIDTH: 70px" name=QuadPlex>
<OPTION selected value=None displaytext="None">None</OPTION>
<OPTION value=1 displaytext="1">1</OPTION>
<OPTION value=2 displaytext="2">2</OPTION>
<OPTION value=3 displaytext="3">3</OPTION>
<OPTION value=4 displaytext="4">4</OPTION>
<OPTION value=5 displaytext="5">5</OPTION></SELECT></FIELDSET>
<FIELDSET tabIndex=27 id=groupbox5 style="HEIGHT: 60px; POSITION: absolute; LEFT: 30px; Z-INDEX: 0; TOP: 420px; WIDTH: 580px">
<LEGEND style="HEIGHT: 22px; WIDTH: 471px">Office endorsed to a TFB underlying policy? (End. 205)</LEGEND>
<SELECT tabIndex=28 id=OffEndTFB style="POSITION: absolute; LEFT: 10px; Z-INDEX: 22; TOP: 30px; WIDTH: 70px" name=OffEndTFB>
<OPTION selected value=None displaytext="None">None</OPTION>
<OPTION value=1 displaytext="1">1</OPTION>
<OPTION value=2 displaytext="2">2</OPTION>
<OPTION value=3 displaytext="3">3</OPTION>
<OPTION value=4 displaytext="4">4</OPTION>
<OPTION value=5 displaytext="5">5</OPTION></SELECT></FIELDSET>
<FIELDSET tabIndex=29 id=groupbox6 style="HEIGHT: 60px; POSITION: absolute; LEFT: 30px; Z-INDEX: 0; TOP: 510px; WIDTH: 697px">
<LEGEND>Incidental Business Pursuits that is endorsed to a TFB underlying policy? (End. 220)</LEGEND>
<SELECT tabIndex=30 id=IBPEndTFB style="POSITION: absolute; LEFT: 10px; Z-INDEX: 23; TOP: 30px; WIDTH: 72px" name=IBPEndTFB>
<OPTION selected value=None displaytext="None">None</OPTION>
<OPTION value=1 displaytext="1">1</OPTION>
<OPTION value=2 displaytext="2">2</OPTION>
<OPTION value=3 displaytext="3">3</OPTION>
<OPTION value=4 displaytext="4">4</OPTION>
<OPTION value=5 displaytext="5">5</OPTION></SELECT></FIELDSET>
<SPAN tabIndex=31 id=text8 style="FONT-SIZE: 14pt; HEIGHT: 30px; VERTICAL-ALIGN: middle; POSITION: absolute; FONT-WEIGHT: bold; COLOR: black; TEXT-ALIGN: left; LEFT: 30px; Z-INDEX: 24; TOP: 860px; WIDTH: 660px" ElementToPaste="true">Contact Commercial Underwriter for any Watercraft not listed above.</SPAN>
<FIELDSET tabIndex=32 id=groupbox7 style="HEIGHT: 60px; POSITION: absolute; LEFT: 30px; Z-INDEX: 0; TOP: 680px; WIDTH: 230px" ElementToPaste="true">
<LEGEND>51-100 horsepower</LEGEND>
<SELECT tabIndex=33 id=HrsePwer1 style="POSITION: absolute; LEFT: 10px; Z-INDEX: 25; TOP: 30px; WIDTH: 70px" name=HrsePwer1 ElementToPaste="true">
<OPTION selected value=None displaytext="None">None</OPTION>
<OPTION value=1 displaytext="1">1</OPTION>
<OPTION value=2 displaytext="2">2</OPTION>
<OPTION value=3 displaytext="3">3</OPTION>
<OPTION value=4 displaytext="4">4</OPTION>
<OPTION value=5 displaytext="5">5</OPTION>
<OPTION value=6 displaytext="6">6</OPTION>
<OPTION value=7 displaytext="7">7</OPTION>
<OPTION value=8 displaytext="8">8</OPTION>
<OPTION value=9 displaytext="9">9</OPTION>
<OPTION value=10 displaytext="10">10</OPTION></SELECT></FIELDSET>
<SPAN tabIndex=43 id=text10 style="FONT-SIZE: 14pt; HEIGHT: 20px; POSITION: absolute; COLOR: black; LEFT: 30px; Z-INDEX: 35; TOP: 20px; WIDTH: 372px">More than 1 owner occupied dwelling? </SPAN></FIELDSET>
<INPUT onclick=Back_OnClick(this) tabIndex=44 id=BackMain style="HEIGHT: 22px; POSITION: absolute; LEFT: 10px; Z-INDEX: 36; TOP: 970px; WIDTH: 90px" type=button value=Back name=BackMain autoExecute="True" requests_list="1"></FORM>
<SPAN tabIndex=45 id=text11 style="FONT-SIZE: 8pt; HEIGHT: 14px; POSITION: absolute; COLOR: black; LEFT: 800px; Z-INDEX: 37; TOP: 1090px; WIDTH: 150px">umb_personal_scrn_1.htm</SPAN></SPAN>
<SPAN tabIndex=9 id=text5 style="HEIGHT: 22px; POSITION: absolute; LEFT: 90px; Z-INDEX: 9; TOP: 60px; WIDTH: 270px">Have A Great Day!</SPAN></SPAN>
<INPUT id=WFUSERID style="POSITION: absolute; LEFT: -100px; TOP: -100px" type=hidden value=&WFUSERID name=WFUSERID operation>
<INPUT id=RptSel style="POSITION: absolute; LEFT: -100px; TOP: -100px" type=hidden value=&RptSel name=RptSel operation>
<INPUT id=UmbCovAmt style="POSITION: absolute; LEFT: -100px; TOP: -100px" type=hidden value=&UmbCovAmt name=UmbCovAmt operation>
<INPUT id=LocCty style="POSITION: absolute; LEFT: -100px; TOP: -100px" type=hidden value=&LocCty name=LocCty operation>
<INPUT id=AUTHSEC style="POSITION: absolute; LEFT: -100px; TOP: -100px" type=hidden value=&AUTHSEC name=AUTHSEC operation>
<INPUT id=NameBox style="POSITION: absolute; LEFT: -100px; TOP: -100px" type=hidden value="&NameBox" name=NameBox operation>
<INPUT id=AddOwnOcc style="POSITION: absolute; LEFT: -100px; TOP: -100px" type=hidden value=&AddOwnOcc name=AddOwnOcc operation>
<INPUT id=SNGFamRes style="POSITION: absolute; LEFT: -100px; TOP: -100px" type=hidden value=&SNGFamRes name=SNGFamRes operation>
<INPUT id=Duplex style="POSITION: absolute; LEFT: -100px; TOP: -100px" type=hidden value=&Duplex name=Duplex operation>
<INPUT id=Triplex style="POSITION: absolute; LEFT: -100px; TOP: -100px" type=hidden value=&Triplex name=Triplex operation>
<INPUT id=QuadPlex style="POSITION: absolute; LEFT: -100px; TOP: -100px" type=hidden value=&QuadPlex name=QuadPlex operation>
<INPUT id=OffEndTFB style="POSITION: absolute; LEFT: -100px; TOP: -100px" type=hidden value=&OffEndTFB name=OffEndTFB operation>
<INPUT id=IBPEndTFB style="POSITION: absolute; LEFT: -100px; TOP: -100px" type=hidden value=&IBPEndTFB name=IBPEndTFB operation>
<INPUT id=HrsePwer1 style="POSITION: absolute; LEFT: -100px; TOP: -100px" type=hidden value=&HrsePwer1 name=HrsePwer1 operation>
<INPUT id=HrsePwer2 style="POSITION: absolute; LEFT: -100px; TOP: -100px" type=hidden value=&HrsePwer2 name=HrsePwer2 operation>
<INPUT id=HrsePwer3 style="POSITION: absolute; LEFT: -100px; TOP: -100px" type=hidden value=&HrsePwer3 name=HrsePwer3 operation>
<INPUT id=HrsePwer4 style="POSITION: absolute; LEFT: -100px; TOP: -100px" type=hidden value=&HrsePwer4 name=HrsePwer4 operation>
 
<INPUT id=layoutinfo style="POSITION: absolute; LEFT: -100px; TOP: -100px" type=hidden inputcontrolids="HrsePwer2;HrsePwer3;HrsePwer4;AddOwnOcc;SNGFamRes;Duplex;Triplex;QuadPlex;OffEndTFB;IBPEndTFB;HrsePwer1;WFUSERID;RptSel;UmbCovAmt;LocCty;AUTHSEC;NameBox" resourcectrlids="image1">
<INPUT id=ibiapp_app style="POSITION: absolute; LEFT: -100px; TOP: -100px" type=hidden value=umbrella name=ibiapp_app>
<xml id=ibi_requests>
<script>
 
<requests>
 
<request requestid="0" sourcetype="typeFex" targettype="window" targetname="_top" ibif_ex="umb_cntl_scr_phase2_per.fex" ibic_server="MYCLM" activereport="0" reportcolumns="" ibiapp_app="umbrella" paramremovedbyuser="radio1">
 
<variables>
 
<variable field="AddOwnOcc" file="" desc="AddOwnOcc" datatype="0" operation="" default="" name="AddOwnOcc" textvarname="" accept="0" type="unresolved" select="0" min="" max="" controltype="7" create="1"></variable>
 
<variable field="SNGFamRes" file="" desc="SNGFamRes" datatype="0" operation="" default="" name="SNGFamRes" textvarname="" accept="0" type="unresolved" select="0" min="" max="" controltype="7" create="1"></variable>
 
<variable field="Duplex" file="" desc="Duplex" datatype="0" operation="" default="" name="Duplex" textvarname="" accept="0" type="unresolved" select="0" min="" max="" controltype="7" create="1"></variable>
 
<variable field="Triplex" file="" desc="Triplex" datatype="0" operation="" default="" name="Triplex" textvarname="" accept="0" type="unresolved" select="0" min="" max="" controltype="7" create="1"></variable>
 
<variable field="QuadPlex" file="" desc="QuadPlex" datatype="0" operation="" default="" name="QuadPlex" textvarname="" accept="0" type="unresolved" select="0" min="" max="" controltype="7" create="1"></variable>
 
<variable field="OffEndTFB" file="" desc="OffEndTFB" datatype="0" operation="" default="" name="OffEndTFB" textvarname="" accept="0" type="unresolved" select="0" min="" max="" controltype="7" create="1"></variable>
 
<variable field="IBPEndTFB" file="" desc="IBPEndTFB" datatype="0" operation="" default="" name="IBPEndTFB" textvarname="" accept="0" type="unresolved" select="0" min="" max="" controltype="7" create="1"></variable>
 
<variable field="HrsePwer1" file="" desc="HrsePwer1" datatype="0" operation="" default="" name="HrsePwer1" textvarname="" accept="0" type="unresolved" select="0" min="" max="" controltype="7" create="1"></variable>
 
<variable field="HrsePwer2" file="" desc="HrsePwer2" datatype="0" operation="" default="" name="HrsePwer2" textvarname="" accept="0" type="unresolved" select="0" min="" max="" controltype="7" create="1"></variable>
 
<variable field="HrsePwer3" file="" desc="HrsePwer3" datatype="0" operation="" default="" name="HrsePwer3" textvarname="" accept="0" type="unresolved" select="0" min="" max="" controltype="7" create="1"></variable>
 
<variable field="HrsePwer4" file="" desc="HrsePwer4" datatype="0" operation="" default="" name="HrsePwer4" textvarname="" accept="0" type="unresolved" select="0" min="" max="" controltype="7" create="1"></variable>
 
<variable field="RptSel" file="" desc="RptSel" datatype="0" operation="" default="" name="RptSel" textvarname="" accept="0" type="unresolved" select="0" min="" max="" controltype="7" create="1"></variable>
 
<variable field="UmbCovAmt" file="" desc="UmbCovAmt" datatype="0" operation="" default="" name="UmbCovAmt" textvarname="" accept="0" type="unresolved" select="0" min="" max="" controltype="7" create="1"></variable>
 
<variable field="NameBox" file="" desc="NameBox" datatype="0" operation="" default="" name="NameBox" textvarname="" accept="0" type="unresolved" select="0" min="" max="" controltype="7" create="1"></variable>
 
<variable field="LocCty" file="" desc="LocCty" datatype="0" operation="" default="" name="LocCty" textvarname="" accept="0" type="unresolved" select="0" min="" max="" controltype="7" create="1"></variable>
 
<variable field="AUTHSEC" file="" desc="AUTHSEC" datatype="0" operation="" default="" name="AUTHSEC" textvarname="" accept="0" type="unresolved" select="0" min="" max="" controltype="7" create="1"></variable>
 
<variable field="WFUSERID" file="" desc="WFUSERID" datatype="0" operation="" default="" name="WFUSERID" textvarname="" accept="0" type="unresolved" select="0" min="" max="" controltype="7" create="1"></variable>
   </variables>
  </request>
 
<request requestid="1" sourcetype="typeFex" targettype="window" targetname="_top" ibif_ex="umb_prsnl_back_to_main_menu.fex" ibic_server="MYCLM" activereport="0" reportcolumns="" ibiapp_app="umbrella">
 
<variables>
 
<variable field="AddOwnOcc" file="" desc="AddOwnOcc" datatype="0" operation="" default="" name="AddOwnOcc" textvarname="" accept="0" type="unresolved" select="0" min="" max="" controltype="7" create="1"></variable>
 
<variable field="SNGFamRes" file="" desc="SNGFamRes" datatype="0" operation="" default="" name="SNGFamRes" textvarname="" accept="0" type="unresolved" select="0" min="" max="" controltype="7" create="1"></variable>
 
<variable field="Duplex" file="" desc="Duplex" datatype="0" operation="" default="" name="Duplex" textvarname="" accept="0" type="unresolved" select="0" min="" max="" controltype="7" create="1"></variable>
 
<variable field="Triplex" file="" desc="Triplex" datatype="0" operation="" default="" name="Triplex" textvarname="" accept="0" type="unresolved" select="0" min="" max="" controltype="7" create="1"></variable>
 
<variable field="QuadPlex" file="" desc="QuadPlex" datatype="0" operation="" default="" name="QuadPlex" textvarname="" accept="0" type="unresolved" select="0" min="" max="" controltype="7" create="1"></variable>
 
<variable field="OffEndTFB" file="" desc="OffEndTFB" datatype="0" operation="" default="" name="OffEndTFB" textvarname="" accept="0" type="unresolved" select="0" min="" max="" controltype="7" create="1"></variable>
 
<variable field="IBPEndTFB" file="" desc="IBPEndTFB" datatype="0" operation="" default="" name="IBPEndTFB" textvarname="" accept="0" type="unresolved" select="0" min="" max="" controltype="7" create="1"></variable>
 
<variable field="HrsePwer1" file="" desc="HrsePwer1" datatype="0" operation="" default="" name="HrsePwer1" textvarname="" accept="0" type="unresolved" select="0" min="" max="" controltype="7" create="1"></variable>
 
<variable field="HrsePwer2" file="" desc="HrsePwer2" datatype="0" operation="" default="" name="HrsePwer2" textvarname="" accept="0" type="unresolved" select="0" min="" max="" controltype="7" create="1"></variable>
 
<variable field="HrsePwer3" file="" desc="HrsePwer3" datatype="0" operation="" default="" name="HrsePwer3" textvarname="" accept="0" type="unresolved" select="0" min="" max="" controltype="7" create="1"></variable>
 
<variable field="HrsePwer4" file="" desc="HrsePwer4" datatype="0" operation="" default="" name="HrsePwer4" textvarname="" accept="0" type="unresolved" select="0" min="" max="" controltype="7" create="1"></variable>
 
<variable field="RptSel" file="" desc="RptSel" datatype="0" operation="" default="" name="RptSel" textvarname="" accept="0" type="unresolved" select="0" min="" max="" controltype="7" create="1"></variable>
 
<variable field="UmbCovAmt" file="" desc="UmbCovAmt" datatype="0" operation="" default="" name="UmbCovAmt" textvarname="" accept="0" type="unresolved" select="0" min="" max="" controltype="7" create="1"></variable>
 
<variable field="NameBox" file="" desc="NameBox" datatype="0" operation="" default="" name="NameBox" textvarname="" accept="0" type="unresolved" select="0" min="" max="" controltype="7" create="1"></variable>
 
<variable field="LocCty" file="" desc="LocCty" datatype="0" operation="" default="" name="LocCty" textvarname="" accept="0" type="unresolved" select="0" min="" max="" controltype="7" create="1"></variable>
 
<variable field="AUTHSEC" file="" desc="AUTHSEC" datatype="0" operation="" default="" name="AUTHSEC" textvarname="" accept="0" type="unresolved" select="0" min="" max="" controltype="7" create="1"></variable>
 
<variable field="WFUSERID" file="" desc="WFUSERID" datatype="0" operation="" default="" name="WFUSERID" textvarname="" accept="0" type="unresolved" select="0" min="" max="" controltype="7" create="1"></variable>
   </variables>
  </request></requests></script>
</xml></BODY>
<SCRIPT id=IBI_loader type=text/javascript>
getActiveReportJscript();
setUserInfo();
</SCRIPT>
</HTML>


WebFOCUS 8105m
Windows, All Outputs
 
Posts: 156 | Registered: August 23, 2010Report This Post
Virtuoso
posted Hide Post
Delete the post that display the image...

If I'm understanding well your issue, you may need something like this.
Fisrt add a hidden control filed such as NextPressed where it will be initailized to 'N' per example.
Then in associated control function:
function Next_OnClick(ctrl)
{
 NextPressed.value = 'Y';
 aVar = IbComposer_getCurrentSelection('aVariable');
 
 <plus what ever code you need to process the Next function>
}

function Back_OnClick(ctrl)
{
 NextPressed.value = 'N';
 IbComposer_setCurrentSelection('aVariable', aVar, false);
 
 <plus what ever code you need to process the Back function>
}


Not sure what does your Next and Back button, but it's a starting point that could work.

The hidden control may not be useful and be removed, but at least you'll have a variable telling you if the Next button has been click o not.


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Platinum Member
posted Hide Post
Here is an example.

We have 4 screens in which the agents will use to write new business.

First screen
Select Coverage amount Dropdown
Select County Office Listbox
Select Quote Type Personal or Farm Radio

Second screen
Additional Owner Occupied Residence Dropdown 1-10
Single Family Residence Dropdown 1-20
and so on.

Say I selected 2 for AddOwnOccRes
Say I selected 3 for SngFam
I leave all others set to None

Click Next to Third screen
Auto Liability Limits Radio
Private Passenger Auto Dropdown 1-30

Ok now I figure out I need to go back to the second screen and change AddOwnAccRes from a 2 to a 4. When I click the back button on my screen I want it to populate AddOwnAccRes with the 2 that I selected before and keep the SngFrm set to 3 so I don't have to change it again.

Right now when I click back it sets everything back to None which is default.

Hope this is a bit clearer.

Thanks
JV

Jeremy Veselka
Web Dev - Web Focus Sr. Programmer
jveselka@txfb-ins.com
254.399.5063


WebFOCUS 8105m
Windows, All Outputs
 
Posts: 156 | Registered: August 23, 2010Report This Post
Virtuoso
posted Hide Post
How do you navigate from one screen to the other ? Is that only a page refresh with other elements or what else ?


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Platinum Member
posted Hide Post
When they click next it runs a fex which does some work to save their selections so that they can be report later and or recreated. Then it loads the next HTML screen. When they click back it runs thru a reload process which looks at the saved selections and then reloads the previous HTML screen. If you look at the source code when you go back, their selections are listed as the variables but they don't repopulate the drop down boxes.

Thanks
JV


WebFOCUS 8105m
Windows, All Outputs
 
Posts: 156 | Registered: August 23, 2010Report This Post
Virtuoso
posted Hide Post
Without seeing your code, I assume that you’re using something similar to the IBI automatic “SavedParameterRetrieval” script to reload the previous page or that script.
Below is something that I use following that IBI script in certain circumstances where the automatic droplist reload is not giving me what I exactly need.

Define a control, such as NextPressed which is a hidden checkbox control. And default it to unchecked.

Add the following:
function onInitialUpdate()
{
if (NextPressed _0.checked == true)
{
// Retrieve your saved values and define a variable with each values or use the following
// (working when “SavedParameterRetrieval” script from IBI is used):
aCtrl = IbComposer_getCurrentSelectio(aControl);

// Assign to your control, the retrieved value from above for that control:
IbComposer_setCurrentSelection(aControl, aCtrl, false);
}
else
{
NextPressed _0.checked = false;
}
}

function Next_OnClick(ctrl)
{
NextPressed_0.checked = true;

<plus whatever code you need to process the Next function which should be something like the SaveSelectedParameters() function from IBI>
}


If this don’t help, you may need to open a case to have more help from IBI Tech.


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Platinum Member
posted Hide Post
Ok, one more try. Here is a little piece of my code and I see what it is doing. I have None set as selected in the HTML so when I move forward and come back it is just setting None back as the default. Here is what I think I need. When they make a selection from the dropdown I need it to update the code right then to show their selection as selected and hold it. That way when I come back it will set their selection back in the dropbox. I assume this is the function onInitialUpdate() but I don’t know how to code the rest of it.

 
<DIV>Additional Owner Occupied Residence</DIV></LEGEND>
<SELECT onclick=AddOwnOcc_onclick tabIndex=17 id=AddOwnOcc style="POSITION: absolute; LEFT: 10px; Z-INDEX: 16; TOP: 40px; WIDTH: 70px" name=AddOwnOcc requests_list="3" operation="NONE">
<OPTION selected value=None displaytext="None">None</OPTION>
<OPTION value=1 displaytext="1">1</OPTION>
<OPTION value=2 displaytext="2">2</OPTION>
<OPTION value=3 displaytext="3">3</OPTION>
<OPTION value=4 displaytext="4">4</OPTION>
<OPTION value=5 displaytext="5">5</OPTION>
<OPTION value=6 displaytext="6">6</OPTION>
<OPTION value=7 displaytext="7">7</OPTION>
<OPTION value=8 displaytext="8">8</OPTION>
<OPTION value=9 displaytext="9">9</OPTION>
<OPTION value=10 displaytext="10">10</OPTION></SELECT></FIELDSET> 
<SPAN tabIndex=18 id=text7 style="BORDER-LEFT-WIDTH: thin; FONT-SIZE: 14pt; HEIGHT: 66px; BORDER-RIGHT-WIDTH: thin; VERTICAL-ALIGN: middle; BORDER-BOTTOM-WIDTH: thin; POSITION: absolute; COLOR: black; TEXT-ALIGN: left; LEFT: 30px; Z-INDEX: 17; TOP: 160px; BORDER-TOP-WIDTH: thin; WIDTH: 800px">
 


Thanks
JV


WebFOCUS 8105m
Windows, All Outputs
 
Posts: 156 | Registered: August 23, 2010Report This Post
Platinum Member
posted Hide Post
FYI, the onclick code that you see here was just my try at coding it. I also set this above

 
//Begin function AddOwnOcc_onclick
function AddOwnOcc_onclick(ctrl) {
UpdateData();
}
//End function AddOwnOcc_onclick
 


And added this request

 <request requestid="3" sourcetype="typeFex" targettype="window" targetname="_top" ibif_ex="umb_cntl_scr_phase1.fex" ibic_server="MYCLM" activereport="0" reportcolumns="" ibiapp_app="umbrella" paramremovedbyuser="umbrella"></request>
 


WebFOCUS 8105m
Windows, All Outputs
 
Posts: 156 | Registered: August 23, 2010Report This Post
Virtuoso
posted Hide Post
The UpdateData() function does the default load, you need to "overwrite" what it did using the onInitialUpdate().
onInitialUpdate() is executed after UpdateData(), so it's possible to "overwrite" the defaults.
function onInitialUpdate()
{
	// It will process the default "overwrite" only if Next key has been pressed
	if (NextPressed_0.checked == true)
	{
		// I don't know how you saved the selected values and how you're navigating from one page to te other.
		// Assuming that you're staying in the same HTML with just displaying something else by maybe hidding and displaying other fields.
		// Having saved the selected values in the Next_OnClick() event as below,
		// assign to your control the saved value from Next_OnClick() event:
		IbComposer_setCurrentSelection(AddOwnOcc, vAddOwnOcc, false);
	}

	NextPressed_0.checked = false;
}

//This is to tell HTML that the Next screen has been selected
function Next_OnClick(ctrl)
{
	NextPressed_0.checked = true;

	// This will save selected value in a global variable
	vAddOwnOcc = IbComposer_getCurrentSelectio(AddOwnOcc);

	<plus whatever code you need to process the Next function>
}


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Platinum Member
posted Hide Post
I yet to figure this one out. I am still working on it. I hope to find a solution this week.


WebFOCUS 8105m
Windows, All Outputs
 
Posts: 156 | Registered: August 23, 2010Report 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     [CLOSED] Prefill/Reload Popboxes in hTML

Copyright © 1996-2020 Information Builders