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. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at myibi@ibi.com and provide your corporate email address, company, and name.


Connect to myibi
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Reset Button

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Reset Button
 Login/Join
 
Silver Member
posted
Hi,

I developed a Guided Adhoc report which has a launch page.The launch page contains a double list control from which we can select the different fields that should appear on the report.There are several other controls like check boxes,radio buttons,drop-down lists,textboxes which are filters.
All these contorls are placed on a form and there are Run button and Reset button.When I make some selections and press the Reset button all the controls are reset to their defaults.

Now I have a new requirement where I should add a new button "Clear Filters".When I hit this button it should only reset the the filters but not the Double list control.

How can I should this.Can somebody share your thoughts on this.

Thanks.

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


WebFOCUS 7.6.7
windows
Html,Pdf and Excel
 
Posts: 39 | Registered: September 03, 2010Report This Post
Member
posted Hide Post
Hi Swetha,
I would just write a little javascript to change the selected index of the objects I need on the OnClick event of the clear filters button.
Aneela

"<HTML>
<HEAD>
<META id=mycharsetmeta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
<META id=Generation content="Created in release 7611, Generation 3.0">
<script id=IBI_RelCallBack type=text/javascript>function AdjustChildrenPosition(){
}
</SCRIPT>

<script id=IBI_OptionsScript type=text/javascript>
var cgipath = "cgipath";
var ibirls = "ibirls3";

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 src="/ibi_html/javaassist/nls.js" type=text/javascript></SCRIPT>

<script id=IBI_nlsVars src="/ibi_html/javaassist/nlsvars.js" type=text/javascript></SCRIPT>

<script id=IBI_ibigbl src="/ibi_html/javaassist/ibi/html/js/ibigbl.js" type=text/javascript></SCRIPT>

<script id=IBI_ibigblloadCss type=text/javascript>
ibigblloadCss(null);
addIntlTranslatedJS("composertrans.js");
</SCRIPT>
<TITLE>HtmlPage</TITLE>
<META content="MSHTML 6.00.6000.17108" name=GENERATOR>
<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 customselect1_onclick
function customselect1_onclick(ctrl) {
// TODO: Add your event handler code here
moveSelection(ctrl, false)
}
//End function customselect1_onclick

//Begin function customselect1_ondblclick
function customselect1_ondblclick(ctrl) {
// TODO: Add your event handler code here
moveSelection(ctrl, true)
}
//End function customselect1_ondblclick

//Begin function button5_onclick
function button5_onclick(ctrl) {

var ddl = document.getElementById("combobox1");

ddl.selectedIndex = 0;



}
//End function button5_onclick
</SCRIPT>

<script for=window type=text/javascript eventname="onload">window.onload = function() { window_onload(); }</SCRIPT>
</HEAD>
<BODY style="OVERFLOW: auto" persistentuniqueid="compUid_1" nextelementuniquenumber="8" elementtype="21" edaconnectionrequired="true">
<FORM id=form1 style="Z-INDEX: 2; LEFT: 120px; WIDTH: 740px; POSITION: absolute; TOP: 100px; HEIGHT: 480px" onsubmit="OnExecute[this);return false;" method=post persistentuniqueid="compUid_2" tempheight="161" tempwidth="427" fexlist_list="form1" requests_list="0" form_type="1" default_slider_type="4" form_prompt_location="0" 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" name="form1">
<INPUT id=form1Submit style="Z-INDEX: 3; LEFT: 5px; BACKGROUND-IMAGE: url[/ibi_html/javaassist/ibi/html/describe/run16.gif); WIDTH: 38px; BACKGROUND-REPEAT: no-repeat; POSITION: absolute; TOP: 453px; HEIGHT: 22px; BACKGROUND-COLOR: lavender" tabIndex=2 type=submit value=" " persistentuniqueid="compUid_3" name="ITEM1"> 
<INPUT id=form1Reset style="Z-INDEX: 4; LEFT: 48px; BACKGROUND-IMAGE: url[/ibi_html/javaassist/ibi/html/describe/reset.gif); WIDTH: 38px; BACKGROUND-REPEAT: no-repeat; POSITION: absolute; TOP: 453px; HEIGHT: 22px; BACKGROUND-COLOR: lavender" tabIndex=3 type=reset value=" " name="reset1"> 
<SPAN language=java_script id=customselect1 ondblclick=customselect1_ondblclick[this) style="Z-INDEX: 5; LEFT: 0px; WIDTH: 286px; POSITION: absolute; TOP: 19px; HEIGHT: 88px" onclick=customselect1_onclick[this) tabIndex=4 persistentuniqueid="compUid_5" elementtype="36" boundtovariable="1" defaultlocation="0,0,107,286">
<INPUT id=customselect1_addbutton style="BACKGROUND-POSITION: center center; Z-INDEX: 7; LEFT: 131px; BACKGROUND-IMAGE: url[/ibi_html/javaassist/ibi/html/describe/move_right_16.png); WIDTH: 24px; BACKGROUND-REPEAT: no-repeat; POSITION: absolute; TOP: 3px; HEIGHT: 20px; BACKGROUND-COLOR: lavender" tabIndex=6 type=button value=" " name="button1"> 
<INPUT id=customselect1_removebutton style="BACKGROUND-POSITION: center center; Z-INDEX: 8; LEFT: 131px; BACKGROUND-IMAGE: url[/ibi_html/javaassist/ibi/html/describe/move_left_16.png); WIDTH: 24px; BACKGROUND-REPEAT: no-repeat; POSITION: absolute; TOP: 23px; HEIGHT: 20px; BACKGROUND-COLOR: lavender" tabIndex=7 type=button value=" " name="button2"> 
<SELECT id=customselect1_selectfrom style="Z-INDEX: 9; LEFT: 0px; POSITION: absolute; TOP: 2px" tabIndex=8 multiple size=5 persistentuniqueid="compUid_7" name="customselect1_selectfrom"> 
<OPTION value=CAR.ORIGIN.COUNTRY selected noinput="0" displaytext="COUNTRY">COUNTRY</OPTION> 
<OPTION value=CAR.COMP.CAR noinput="0" displaytext="CAR">CAR</OPTION> 
<OPTION value=CAR.CARREC.MODEL noinput="0" displaytext="MODEL">MODEL</OPTION> 
<OPTION value=CAR.BODY.BODYTYPE noinput="0" displaytext="BODYTYPE">BODYTYPE</OPTION> 
<OPTION value=CAR.BODY.SEATS noinput="0" displaytext="SEATS">SEATS</OPTION> 
<OPTION value=CAR.BODY.DEALER_COST noinput="0" displaytext="DEALER_COST">DEALER_COST</OPTION> 
<OPTION value=CAR.BODY.RETAIL_COST noinput="0" displaytext="RETAIL_COST">RETAIL_COST</OPTION> 
<OPTION value=CAR.BODY.SALES noinput="0" displaytext="SALES">SALES</OPTION></SELECT> 
<SELECT id=customselect1_selectto style="Z-INDEX: 10; LEFT: 165px; WIDTH: 121px; POSITION: absolute; TOP: 2px; HEIGHT: 86px" tabIndex=9 multiple size=5 persistentuniqueid="compUid_4" operation="AND" name="customselect1_selectto"></SELECT> 
<INPUT id=customselect1_upbutton style="BACKGROUND-POSITION: center center; Z-INDEX: 11; LEFT: 131px; BACKGROUND-IMAGE: url[/ibi_html/javaassist/ibi/html/describe/move_up_16.png); WIDTH: 24px; BACKGROUND-REPEAT: no-repeat; POSITION: absolute; TOP: 48px; HEIGHT: 20px; BACKGROUND-COLOR: lavender" onclick='moveSelectedItems["compUid_4", "true")' tabIndex=10 type=button value=" " buddyuniqueid="compUid_4" name="button3"> 
<INPUT id=customselect1_downbutton style="BACKGROUND-POSITION: center center; Z-INDEX: 12; LEFT: 131px; BACKGROUND-IMAGE: url[/ibi_html/javaassist/ibi/html/describe/move_down_16.png); WIDTH: 24px; BACKGROUND-REPEAT: no-repeat; POSITION: absolute; TOP: 68px; HEIGHT: 20px; BACKGROUND-COLOR: lavender" onclick='moveSelectedItems["compUid_4", "")' tabIndex=11 type=button value=" " buddyuniqueid="compUid_4" name="button4"></SPAN> 
<LABEL id=label1 style="Z-INDEX: 6; LEFT: 0px; WIDTH: 102px; CURSOR: default; POSITION: absolute; TOP: 0px; HEIGHT: 19px" tabIndex=5 for=customselect1>FIELD_LIST</LABEL> 
<LABEL id=label2 style="Z-INDEX: 13; LEFT: 296px; WIDTH: 99px; CURSOR: default; POSITION: absolute; TOP: 0px; HEIGHT: 19px" tabIndex=12 for=combobox1 elementtype="32" name="combobox1">CNTRY_FLTR</LABEL> 
<SELECT id=combobox1 style="Z-INDEX: 14; LEFT: 409px; WIDTH: 117px; POSITION: absolute; TOP: 0px" tabIndex=13 size=1 persistentuniqueid="compUid_6" boundtovariable="1" defaultlocation="0,0,22,117" name="combobox1"></SELECT> 
<INPUT language=java_script id=button5 style="Z-INDEX: 15; LEFT: 150px; WIDTH: 80px; POSITION: absolute; TOP: 450px; HEIGHT: 20px" onclick=button5_onclick[this) tabIndex=14 type=button value="clear filter" persistentuniqueid="compUid_8" name="button5"></FORM>     
<INPUT id=layoutinfo style="LEFT: -100px; POSITION: absolute; TOP: -100px" type=hidden resourcectrlids="form1Submit;form1Reset;customselect1_addbutton;customselect1_removebutton;customselect1_upbutton;customselect1_downbutton">
<INPUT id=IBIMR_domain style="LEFT: -100px; POSITION: absolute; TOP: -100px" type=hidden value=06999990/06999990.htm name="IBIMR_domain">
<INPUT id=IBIMR_folder style="LEFT: -100px; POSITION: absolute; TOP: -100px" type=hidden value=#aneeladairke name="IBIMR_folder">
<INPUT id=ibif_ex style="LEFT: -100px; POSITION: absolute; TOP: -100px" type=hidden value=app/asdtest3.htm name="ibif_ex">
<INPUT id=ibiapp_app style="LEFT: -100px; POSITION: absolute; TOP: -100px" type=hidden ismre="1" name="ibiapp_app">
<xml id=focus_xmlelement>
<script type="text/xml">
	
<rootxmlnode top="100" left="10" width="150" height="130">
		
<variables>
			
<variable controltype="36" parametercreatedinreslay="0" type="unresolved" desc="FIELD_LIST" name="DBLLIST" default="" textvarname="" accept="0" select="1" create="1" top="70" left="30" width="60" height="20" inbinding="1">
				
<link linktype="default" from="compUid_5">
					
<condition default="1" name="Default" whattodowithcontrol="4" valuescompareoperator="0" parameterscompareoperator="0" conditionmultiselectoperator="0">
						
<data_info displayfield="DBLLIST" datafield="DBLLIST" datasource="car.mas" datatype="0" selectedvalue="" operation="AND" slider_range_from="" slider_range_to="" sourcetype="typeMaster">
							
<static_values>
								
<static value="CAR.ORIGIN.COUNTRY" display="COUNTRY" selected="1" noinput="0"></static>
								
<static value="CAR.COMP.CAR" display="CAR" selected="0" noinput="0"></static>
								
<static value="CAR.CARREC.MODEL" display="MODEL" selected="0" noinput="0"></static>
								
<static value="CAR.BODY.BODYTYPE" display="BODYTYPE" selected="0" noinput="0"></static>
								
<static value="CAR.BODY.SEATS" display="SEATS" selected="0" noinput="0"></static>
								
<static value="CAR.BODY.DEALER_COST" display="DEALER_COST" selected="0" noinput="0"></static>
								
<static value="CAR.BODY.RETAIL_COST" display="RETAIL_COST" selected="0" noinput="0"></static>
								
<static value="CAR.BODY.SALES" display="SALES" selected="0" noinput="0"></static></static_values></data_info></condition></link>
				
<requestid id="0"></requestid></variable>
			
<variable controltype="8" parametercreatedinreslay="0" type="unresolved" desc="CNTRY_FLTR" name="COUNTRY" default="" textvarname="" accept="0" select="1" create="1" top="70" left="140" width="60" height="20" inbinding="1">
				
<link linktype="default" from="compUid_6">
					
<condition default="1" name="Default" whattodowithcontrol="4" valuescompareoperator="0" parameterscompareoperator="0" conditionmultiselectoperator="0">
						
<data_info displayfield="CAR.ORIGIN.COUNTRY" datafield="COUNTRY" datasource="car.mas" datatype="1" selectedvalue="" operation="OR" slider_range_from="" slider_range_to=""></data_info></condition></link>
				
<requestid id="0"></requestid></variable></variables>
		
<input_controls>
			
<input_control bindcontrolid="compUid_5" elementtype="36" requiredfield="0" name="customselect1" id="customselect1" multiple="1" onetimepopulated="1" top="20" left="30" width="60" height="20" inbinding="1">
				
<link linktype="default">
					
<condition default="1" name="Default" whattodowithcontrol="0" valuescompareoperator="0" parameterscompareoperator="0" conditionmultiselectoperator="0">
						
<data_info datatype="0" datasource="" addalloption="1" sourcetype="typeMaster" cacheruntimedata="1" accept="0" operation="AND">
							
<static_values>
								
<static value="CAR.ORIGIN.COUNTRY" display="COUNTRY" selected="1" noinput="0"></static>
								
<static value="CAR.COMP.CAR" display="CAR" selected="0" noinput="0"></static>
								
<static value="CAR.CARREC.MODEL" display="MODEL" selected="0" noinput="0"></static>
								
<static value="CAR.BODY.BODYTYPE" display="BODYTYPE" selected="0" noinput="0"></static>
								
<static value="CAR.BODY.SEATS" display="SEATS" selected="0" noinput="0"></static>
								
<static value="CAR.BODY.DEALER_COST" display="DEALER_COST" selected="0" noinput="0"></static>
								
<static value="CAR.BODY.RETAIL_COST" display="RETAIL_COST" selected="0" noinput="0"></static>
								
<static value="CAR.BODY.SALES" display="SALES" selected="0" noinput="0"></static></static_values></data_info></condition></link></input_control>
			
<input_control bindcontrolid="compUid_6" elementtype="8" requiredfield="0" name="combobox1" id="combobox1" multiple="0" onetimepopulated="0" top="20" left="140" width="60" height="20" inbinding="1">
				
<link linktype="default">
					
<condition default="1" name="Default" whattodowithcontrol="0" valuescompareoperator="0" parameterscompareoperator="0" conditionmultiselectoperator="0">
						
<data_info datatype="1" datasource="car.mas" datafield="CAR.ORIGIN.COUNTRY" displayfield="CAR.ORIGIN.COUNTRY" addalloption="1" sourcetype="typeMaster" cacheruntimedata="1" dynalldisplayvalue="ALL" ibiformat="A10" dfformat="A10" accept="0" selectedvalue="" operation="OR">
							
< ![CDATA[TABLE FILE car
SUM FST.CAR.ORIGIN.COUNTRY
 BY CAR.ORIGIN.COUNTRY
-*insert_filters_here
ON TABLE PCHOLD FORMAT XML
END
]]></data_info></condition></link></input_control></input_controls>
		
<other_bound_objects></other_bound_objects>
		
<requests nextrequestsid="0">
			
<request requestid="0" sourcetype="typeFex" targettype="window" targetname="_blank" ibif_ex="app/asdtest3.fex" IBIMR_domain="06999990/06999990.htm" IBIMR_folder="#aneeladairke" IBIMR_sub_action="MR_STD_REPORT" activereport="0" reportcolumns="" ibiapp_app=""></request></requests></rootxmlnode></script>
</xml></BODY>
<script id=IBI_loader type=text/javascript>
doBeforeLoad();
</SCRIPT>
</HTML> "

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


WebFocus 7.1.3
Developer studio 7.6.4
Windows
Excel, HTML and PDF
 
Posts: 14 | Registered: March 31, 2009Report This Post
Virtuoso
posted Hide Post
Oh please, Aneela! Put your code between the code tags! This way it is completely unreadable!
You can find the code tags in the red right most icon (< / >) or hand-code it by first typing [ code ] (no spaces), your code, and close by [ /code ] (no spaces).

Please EDIT your post to correct this!


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Member
posted Hide Post
Sorry about that GamP and Swetha.

Here is the HTML and the fex is after that.

 <HTML>
<HEAD>
<META id=mycharsetmeta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
<META id=Generation content="Created in release 7611, Generation 3.0">
<SCRIPT id=IBI_RelCallBack type=text/javascript>function AdjustChildrenPosition(){
}
</SCRIPT>

<SCRIPT id=IBI_OptionsScript type=text/javascript>
var cgipath = "cgipath";
var ibirls = "ibirls3";

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 src="/ibi_html/javaassist/nls.js" type=text/javascript></SCRIPT>

<SCRIPT id=IBI_nlsVars src="/ibi_html/javaassist/nlsvars.js" type=text/javascript></SCRIPT>

<SCRIPT id=IBI_ibigbl src="/ibi_html/javaassist/ibi/html/js/ibigbl.js" type=text/javascript></SCRIPT>

<SCRIPT id=IBI_ibigblloadCss type=text/javascript>
ibigblloadCss(null);
addIntlTranslatedJS("composertrans.js");
</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 customselect1_onclick
function customselect1_onclick(ctrl) {
// TODO: Add your event handler code here
moveSelection(ctrl, false)
}
//End function customselect1_onclick

//Begin function customselect1_ondblclick
function customselect1_ondblclick(ctrl) {
// TODO: Add your event handler code here
moveSelection(ctrl, true)
}
//End function customselect1_ondblclick

//Begin function button5_onclick
function button5_onclick(ctrl) {

var ddl = document.getElementById("combobox1");

ddl.selectedIndex = 0;



}
//End function button5_onclick
</SCRIPT>

<SCRIPT for=window type=text/javascript eventname="onload">window.onload = function() { window_onload(); }</SCRIPT>

<META content="MSHTML 6.00.6000.17108" name=GENERATOR></HEAD>
<BODY style="OVERFLOW: auto" edaconnectionrequired="true" elementtype="21" nextelementuniquenumber="9" persistentuniqueid="compUid_1">
<FORM id=form1 style="Z-INDEX: 2; LEFT: 120px; WIDTH: 440px; POSITION: absolute; TOP: 100px; HEIGHT: 150px" onsubmit="OnExecute(this);return false;" method=post persistentuniqueid="compUid_2" form_dist_between_desc_and_input="10" form_hor_dist_between_controls="10" vert_dist_between_controls="10" form_number_of_columns="4" form_number_of_visible_rows="4" form_prompt_location="0" default_slider_type="4" form_type="1" requests_list="0" fexlist_list="form1" tempwidth="427" tempheight="161" name="form1">
<INPUT id=form1Submit style="Z-INDEX: 3; LEFT: 5px; BACKGROUND-IMAGE: url(/ibi_html/javaassist/ibi/html/describe/run16.gif); WIDTH: 38px; BACKGROUND-REPEAT: no-repeat; POSITION: absolute; TOP: 123px; HEIGHT: 22px; BACKGROUND-COLOR: lavender" tabIndex=2 type=submit value=" " persistentuniqueid="compUid_3" name="ITEM1"> 
<INPUT id=form1Reset style="Z-INDEX: 4; LEFT: 48px; BACKGROUND-IMAGE: url(/ibi_html/javaassist/ibi/html/describe/reset.gif); WIDTH: 38px; BACKGROUND-REPEAT: no-repeat; POSITION: absolute; TOP: 123px; HEIGHT: 22px; BACKGROUND-COLOR: lavender" tabIndex=3 type=reset value=" " name="reset1"> 
<SPAN language=javascript id=customselect1 ondblclick=customselect1_ondblclick(this) style="Z-INDEX: 5; LEFT: 0px; WIDTH: 286px; POSITION: absolute; TOP: 19px; HEIGHT: 88px" onclick=customselect1_onclick(this) tabIndex=4 elementtype="36" persistentuniqueid="compUid_5" defaultlocation="0,0,107,286" boundtovariable="1">
<INPUT id=customselect1_addbutton style="BACKGROUND-POSITION: center center; Z-INDEX: 7; LEFT: 131px; BACKGROUND-IMAGE: url(/ibi_html/javaassist/ibi/html/describe/move_right_16.png); WIDTH: 24px; BACKGROUND-REPEAT: no-repeat; POSITION: absolute; TOP: 3px; HEIGHT: 20px; BACKGROUND-COLOR: lavender" tabIndex=6 type=button value=" " name="button1"> 
<INPUT id=customselect1_removebutton style="BACKGROUND-POSITION: center center; Z-INDEX: 8; LEFT: 131px; BACKGROUND-IMAGE: url(/ibi_html/javaassist/ibi/html/describe/move_left_16.png); WIDTH: 24px; BACKGROUND-REPEAT: no-repeat; POSITION: absolute; TOP: 23px; HEIGHT: 20px; BACKGROUND-COLOR: lavender" tabIndex=7 type=button value=" " name="button2"> 
<SELECT id=customselect1_selectfrom style="Z-INDEX: 9; LEFT: 0px; POSITION: absolute; TOP: 2px" tabIndex=8 multiple size=5 persistentuniqueid="compUid_7" name="customselect1_selectfrom"> 
<OPTION value=CAR.ORIGIN.COUNTRY selected displaytext="COUNTRY" noinput="0">COUNTRY</OPTION> 
<OPTION value=CAR.COMP.CAR displaytext="CAR" noinput="0">CAR</OPTION> 
<OPTION value=CAR.CARREC.MODEL displaytext="MODEL" noinput="0">MODEL</OPTION> 
<OPTION value=CAR.BODY.BODYTYPE displaytext="BODYTYPE" noinput="0">BODYTYPE</OPTION> 
<OPTION value=CAR.BODY.SEATS displaytext="SEATS" noinput="0">SEATS</OPTION> 
<OPTION value=CAR.BODY.DEALER_COST displaytext="DEALER_COST" noinput="0">DEALER_COST</OPTION> 
<OPTION value=CAR.BODY.RETAIL_COST displaytext="RETAIL_COST" noinput="0">RETAIL_COST</OPTION> 
<OPTION value=CAR.BODY.SALES displaytext="SALES" noinput="0">SALES</OPTION></SELECT> 
<SELECT id=customselect1_selectto style="Z-INDEX: 10; LEFT: 165px; WIDTH: 121px; POSITION: absolute; TOP: 2px; HEIGHT: 86px" tabIndex=9 multiple size=5 persistentuniqueid="compUid_4" operation="AND" name="customselect1_selectto"></SELECT> 
<INPUT id=customselect1_upbutton style="BACKGROUND-POSITION: center center; Z-INDEX: 11; LEFT: 131px; BACKGROUND-IMAGE: url(/ibi_html/javaassist/ibi/html/describe/move_up_16.png); WIDTH: 24px; BACKGROUND-REPEAT: no-repeat; POSITION: absolute; TOP: 48px; HEIGHT: 20px; BACKGROUND-COLOR: lavender" onclick='moveSelectedItems("compUid_4", "true")' tabIndex=10 type=button value=" " buddyuniqueid="compUid_4" name="button3"> 
<INPUT id=customselect1_downbutton style="BACKGROUND-POSITION: center center; Z-INDEX: 12; LEFT: 131px; BACKGROUND-IMAGE: url(/ibi_html/javaassist/ibi/html/describe/move_down_16.png); WIDTH: 24px; BACKGROUND-REPEAT: no-repeat; POSITION: absolute; TOP: 68px; HEIGHT: 20px; BACKGROUND-COLOR: lavender" onclick='moveSelectedItems("compUid_4", "")' tabIndex=11 type=button value=" " buddyuniqueid="compUid_4" name="button4"></SPAN> 
<LABEL id=label1 style="Z-INDEX: 6; LEFT: 0px; WIDTH: 102px; CURSOR: default; POSITION: absolute; TOP: 0px; HEIGHT: 19px" tabIndex=5 for=customselect1>FIELD_LIST</LABEL> 
<LABEL id=label2 style="Z-INDEX: 13; LEFT: 296px; WIDTH: 99px; CURSOR: default; POSITION: absolute; TOP: 50px; HEIGHT: 19px" tabIndex=12 for=combobox1 elementtype="32" persistentuniqueid="compUid_9" name="combobox1">CNTRY_FLTR</LABEL> 
<SELECT id=combobox1 style="Z-INDEX: 14; LEFT: 299px; WIDTH: 117px; POSITION: absolute; TOP: 70px" tabIndex=13 size=1 persistentuniqueid="compUid_6" defaultlocation="0,0,22,117" boundtovariable="1" name="combobox1"></SELECT> 
<INPUT language=javascript id=button5 style="Z-INDEX: 15; LEFT: 110px; WIDTH: 80px; POSITION: absolute; TOP: 120px; HEIGHT: 20px" onclick=button5_onclick(this) tabIndex=14 type=button value="clear filter" persistentuniqueid="compUid_8" name="button5"></FORM>     
<INPUT id=layoutinfo style="LEFT: -100px; POSITION: absolute; TOP: -100px" type=hidden resourcectrlids="form1Submit;form1Reset;customselect1_addbutton;customselect1_removebutton;customselect1_upbutton;customselect1_downbutton">
<INPUT id=IBIMR_domain style="LEFT: -100px; POSITION: absolute; TOP: -100px" type=hidden value=06999990/06999990.htm name="IBIMR_domain">
<INPUT id=IBIMR_folder style="LEFT: -100px; POSITION: absolute; TOP: -100px" type=hidden value=#aneeladairke name="IBIMR_folder">
<INPUT id=ibif_ex style="LEFT: -100px; POSITION: absolute; TOP: -100px" type=hidden value=app/asdtest3.htm name="ibif_ex">
<INPUT id=ibiapp_app style="LEFT: -100px; POSITION: absolute; TOP: -100px" type=hidden ismre="1" name="ibiapp_app">
<xml id=focus_xmlelement>
<script type="text/xml">
	
<rootxmlnode top="100" left="10" width="150" height="130">
		
<variables>
			
<variable controltype="36" parametercreatedinreslay="0" type="unresolved" desc="FIELD_LIST" name="DBLLIST" default="" textvarname="" accept="0" select="1" create="1" top="70" left="30" width="60" height="20" inbinding="1">
				
<link linktype="default" from="compUid_5">
					
<condition default="1" name="Default" whattodowithcontrol="4" valuescompareoperator="0" parameterscompareoperator="0" conditionmultiselectoperator="0">
						
<data_info displayfield="DBLLIST" datafield="DBLLIST" datasource="car.mas" datatype="0" selectedvalue="" operation="AND" slider_range_from="" slider_range_to="" sourcetype="typeMaster">
							
<static_values>
								
<static value="CAR.ORIGIN.COUNTRY" display="COUNTRY" selected="1" noinput="0"></static>
								
<static value="CAR.COMP.CAR" display="CAR" selected="0" noinput="0"></static>
								
<static value="CAR.CARREC.MODEL" display="MODEL" selected="0" noinput="0"></static>
								
<static value="CAR.BODY.BODYTYPE" display="BODYTYPE" selected="0" noinput="0"></static>
								
<static value="CAR.BODY.SEATS" display="SEATS" selected="0" noinput="0"></static>
								
<static value="CAR.BODY.DEALER_COST" display="DEALER_COST" selected="0" noinput="0"></static>
								
<static value="CAR.BODY.RETAIL_COST" display="RETAIL_COST" selected="0" noinput="0"></static>
								
<static value="CAR.BODY.SALES" display="SALES" selected="0" noinput="0"></static></static_values></data_info></condition></link>
				
<requestid id="0"></requestid></variable>
			
<variable controltype="8" parametercreatedinreslay="0" type="unresolved" desc="CNTRY_FLTR" name="COUNTRY" default="" textvarname="" accept="0" select="1" create="1" top="70" left="140" width="60" height="20" inbinding="1">
				
<link linktype="default" from="compUid_6">
					
<condition default="1" name="Default" whattodowithcontrol="4" valuescompareoperator="0" parameterscompareoperator="0" conditionmultiselectoperator="0">
						
<data_info displayfield="CAR.ORIGIN.COUNTRY" datafield="COUNTRY" datasource="car.mas" datatype="1" selectedvalue="" operation="OR" slider_range_from="" slider_range_to=""></data_info></condition></link>
				
<requestid id="0"></requestid></variable></variables>
		
<input_controls>
			
<input_control bindcontrolid="compUid_5" elementtype="36" requiredfield="0" name="customselect1" id="customselect1" multiple="1" onetimepopulated="1" top="20" left="30" width="60" height="20" inbinding="1">
				
<link linktype="default">
					
<condition default="1" name="Default" whattodowithcontrol="0" valuescompareoperator="0" parameterscompareoperator="0" conditionmultiselectoperator="0">
						
<data_info datatype="0" datasource="" addalloption="1" sourcetype="typeMaster" cacheruntimedata="1" accept="0" operation="AND">
							
<static_values>
								
<static value="CAR.ORIGIN.COUNTRY" display="COUNTRY" selected="1" noinput="0"></static>
								
<static value="CAR.COMP.CAR" display="CAR" selected="0" noinput="0"></static>
								
<static value="CAR.CARREC.MODEL" display="MODEL" selected="0" noinput="0"></static>
								
<static value="CAR.BODY.BODYTYPE" display="BODYTYPE" selected="0" noinput="0"></static>
								
<static value="CAR.BODY.SEATS" display="SEATS" selected="0" noinput="0"></static>
								
<static value="CAR.BODY.DEALER_COST" display="DEALER_COST" selected="0" noinput="0"></static>
								
<static value="CAR.BODY.RETAIL_COST" display="RETAIL_COST" selected="0" noinput="0"></static>
								
<static value="CAR.BODY.SALES" display="SALES" selected="0" noinput="0"></static></static_values></data_info></condition></link></input_control>
			
<input_control bindcontrolid="compUid_6" elementtype="8" requiredfield="0" name="combobox1" id="combobox1" multiple="0" onetimepopulated="0" top="20" left="140" width="60" height="20" inbinding="1">
				
<link linktype="default">
					
<condition default="1" name="Default" whattodowithcontrol="0" valuescompareoperator="0" parameterscompareoperator="0" conditionmultiselectoperator="0">
						
<data_info datatype="1" datasource="car.mas" datafield="CAR.ORIGIN.COUNTRY" displayfield="CAR.ORIGIN.COUNTRY" addalloption="1" sourcetype="typeMaster" cacheruntimedata="1" dynalldisplayvalue="ALL" ibiformat="A10" dfformat="A10" accept="0" selectedvalue="" operation="OR">
							
<![CDATA[TABLE FILE car
SUM FST.CAR.ORIGIN.COUNTRY
 BY CAR.ORIGIN.COUNTRY
-*insert_filters_here
ON TABLE PCHOLD FORMAT XML
END
]]></data_info></condition></link></input_control></input_controls>
		
<other_bound_objects></other_bound_objects>
		
<requests nextrequestsid="0">
			
<request requestid="0" sourcetype="typeFex" targettype="window" targetname="_blank" ibif_ex="app/asdtest3.fex" IBIMR_domain="06999990/06999990.htm" IBIMR_folder="#aneeladairke" IBIMR_sub_action="MR_STD_REPORT" activereport="0" reportcolumns="" ibiapp_app=""></request></requests></rootxmlnode></script>
</xml></BODY>
<SCRIPT id=IBI_loader type=text/javascript>
doBeforeLoad();
</SCRIPT>
</HTML> 

 TABLE FILE CAR
PRINT 
     &DBLLIST.(AND(<COUNTRY,CAR.ORIGIN.COUNTRY>,<CAR,CAR.COMP.CAR>,<MODEL,CAR.CARREC.MODEL>,<BODYTYPE,CAR.BODY.BODYTYPE>,<SEATS,CAR.BODY.SEATS>,<DEALER_COST,CAR.BODY.DEALER_COST>,<RETAIL_COST,CAR.BODY.RETAIL_COST>,<SALES,CAR.BODY.SALES>)).FIELD_LIST.
HEADING
""
FOOTING
""
WHERE CAR.ORIGIN.COUNTRY EQ &COUNTRY.(OR(FIND COUNTRY,CAR.ORIGIN.COUNTRY IN car)).CNTRY_FLTR.;
ON TABLE SET PAGE-NUM OFF 
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     UNITS=IN,
     SQUEEZE=ON,
     ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
     GRID=OFF,
     FONT='ARIAL',
     SIZE=9,
$
TYPE=TITLE,
     STYLE=BOLD,
$
TYPE=TABHEADING,
     SIZE=12,
     STYLE=BOLD,
$
TYPE=TABFOOTING,
     SIZE=12,
     STYLE=BOLD,
$
TYPE=HEADING,
     SIZE=12,
     STYLE=BOLD,
$
TYPE=FOOTING,
     SIZE=12,
     STYLE=BOLD,
$
TYPE=SUBHEAD,
     SIZE=10,
     STYLE=BOLD,
$
TYPE=SUBFOOT,
     SIZE=10,
     STYLE=BOLD,
$
TYPE=SUBTOTAL,
     BACKCOLOR=RGB(210 210 210),
$
TYPE=ACROSSVALUE,
     SIZE=9,
$
TYPE=ACROSSTITLE,
     STYLE=BOLD,
$
TYPE=GRANDTOTAL,
     BACKCOLOR=RGB(210 210 210),
     STYLE=BOLD,
$
ENDSTYLE
END
 


WebFocus 7.1.3
Developer studio 7.6.4
Windows
Excel, HTML and PDF
 
Posts: 14 | Registered: March 31, 2009Report This Post
Silver Member
posted Hide Post
Thanks Aneela.
I have nearly 100 controls that should be reset when I click the button.I have to use document.getElementById("control name");
function for each control which is not cool.Is this the only way or is there any simple way.


WebFOCUS 7.6.7
windows
Html,Pdf and Excel
 
Posts: 39 | Registered: September 03, 2010Report This Post
Virtuoso
posted Hide Post
Assuming most are single-select listboxes, and the default is consistently the top entry --

Write a resetComboBox(id) function that encapsulates the logic to reset the combobox with the specified id. Then the reset operation is a (long, boring) series of simple one-liners:
... {
resetComboBox(combobox1) ;
resetComboBox(combobox2) ;
...
}


If you wish, you can then expand it to take a list of IDs (id,id2,id3,...) -- up to (say) 10 IDs -- and process the non-null extras via recursive calls.
That will reduce the lines by a factor of 10:

... {
resetComboBox(combobox1,combobox2, ..., combobox10) ;
resetComboBox(combobox11,combobox12, ..., combobox20) ;
...
}
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 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     [CLOSED] Reset Button

Copyright © 1996-2020 Information Builders