Focal Point
[SOLVED] How to Inhibit entry to Calendar Textbox...

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/8147030895

February 02, 2011, 01:00 PM
Doug
[SOLVED] How to Inhibit entry to Calendar Textbox...
How can the entry, directly in to the Calendar Textbox, be inhibited without being “grayed out”. I know that I can “disable” it. But, that also grays it out. My users want to see the value in that text box in its full intensity, not grayed out.

Preferred suggestion would be something like “document.getElementById("cal_FrmDt").style.display = 'block';”. But, as you can imagine, that does not work.

Thanks in advance,
Doug

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




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
February 02, 2011, 01:09 PM
dhagen
You can override events generated by the text box. I believe the event you should search on is "focus" ... no pun intended. When the object gets focus, then set the focus to a different object.


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
February 02, 2011, 03:04 PM
Waz
I have onlt recently done this for some text entry boxes, so I can "Turn them on or off" without having that grey look.

I used this to stop entry:
onclick="return false ;"


And this to control entry:
onclick=" if ({test condition}) return false ;"



Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

February 02, 2011, 06:02 PM
Doug
Thanks guys,

I'll check these out.

I know you can also set the style to block on a "normal" / stand alone text box. But, I cannot get that to work on text box associated with the calendar control.

Like I said, I'll check out these options...

Thanks...
February 03, 2011, 02:58 AM
Alan B
In maintain I use the readonly attribute for the calendar textbox. I assume the same will apply for HTML composer.


Alan.
WF 7.705/8.007
February 03, 2011, 12:03 PM
Doug
Unfortunatly: No, it's not the same in the HTML Composer (text edit as well).

I was hoping to use the following: "document.getElementById("cal_FrmDt").style.display = 'block';” (retrieved from a JavaScript Forum)

Because "document.getElementById("cal_FrmDt").disabled = true;" works to the point of disabling it,
and "document.getElementById("cal_FrmDt").style.color = "red";" works to change the color (to red for testing only). Frowner
February 03, 2011, 12:15 PM
Francis Mariani
quote:
"document.getElementById("cal_FrmDt").style.display = 'block';”

The display property is used to hide or show a page element - it will not "block" the user from typing in in it. See http://www.w3schools.com/css/pr_class_display.asp

You should try the suggestions made previously.

Unfortunately I can't! I created an HTML page and added a calendar control. When I run it, I get a text box but no calendar icon. This is straight HTML Composer - no coding - one form, one control (no parameter so that may be the culprit).

I better check for hot fixes.


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
February 03, 2011, 12:24 PM
Doug
That's the confusing factor: "document.getElementById("cal_FrmDt").style.color = "red";" works by addressing ONLY THE TEXT PBOX of the Calendar. "disable" works well also. but not the "block".

I tried the others and they don't seem to work wither.

I'll do a "calendar only" html file in the composer and pass it on.

Thanks,
Doug

This message has been edited. Last edited by: Doug,
February 03, 2011, 12:39 PM
Doug
Here's a simple sample using onfocus
<HTML>
<HEAD>
<META id=mycharsetmeta content="text/html; charset=UTF-8" http-equiv=Content-Type>
<META id=Generation content="Gen 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,rltdyncalendar);
</SCRIPT>

<SCRIPT id=IBI_nls type=text/javascript src="/ibi_html/javaassist/nls.js"></SCRIPT>

<SCRIPT id=IBI_nlsVars type=text/javascript src="/ibi_html/javaassist/nlsvars.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);
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 calendar1_onfocus
function calendar1_onfocus(ctrl) {
  document.getElementById("text1").style.color = "red";
}
//End function calendar1_onfocus

//Begin function calendar2_onfocus
function calendar2_onfocus(ctrl) {
  document.getElementById("text1").style.color = "blue";
// ???  document.getElementById("text1").focus = true;
}
//End function calendar2_onfocus
</SCRIPT>

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

<META name=GENERATOR content="MSHTML 8.00.6001.18975"></HEAD>
<BODY style="OVERFLOW: auto" elementtype="21" nextelementuniquenumber="3" edaconnectionrequired="false">
<INPUT style="Z-INDEX: 3; POSITION: absolute; WIDTH: 110px; HEIGHT: 25px; TOP: 100px; LEFT: 40px" id=calendar1 language=javascript onfocus=calendar1_onfocus(this) tabIndex=2 size=11 elementtype="14" persistentuniqueid="compUid_1" name="calendar1"> 
<INPUT style="Z-INDEX: 2; POSITION: absolute; WIDTH: 110px; HEIGHT: 25px; TOP: 100px; LEFT: 220px" id=calendar2 language=javascript onfocus=calendar2_onfocus(this) tabIndex=3 size=11 elementtype="14" persistentuniqueid="compUid_2" name="calendar2"> 
<SPAN style="Z-INDEX: 1; POSITION: absolute; TEXT-ALIGN: center; WIDTH: 310px; FONT-FAMILY: arial; HEIGHT: 32px; COLOR: black; FONT-SIZE: 8pt; TOP: 30px; LEFT: 40px" id=text1 tabIndex=-1>This changes color when the calendar controls are in focus. 
<BR>This is only a test.</SPAN> 
<INPUT style="Z-INDEX: 4; POSITION: absolute; WIDTH: 310px; HEIGHT: 25px; TOP: 70px; LEFT: 40px" id=edit1 tabIndex=1 value="This is just for testing..." size=16 persistentuniqueid="compUid_3" name="edit1">      
<INPUT style="POSITION: absolute; TOP: -100px; LEFT: -100px" id=layoutinfo type=hidden>
<INPUT style="POSITION: absolute; TOP: -100px; LEFT: -100px" id=IBIMR_domain value=webdevel/webdevel.htm type=hidden name="IBIMR_domain">
<INPUT style="POSITION: absolute; TOP: -100px; LEFT: -100px" id=IBIMR_folder value=#douglasleee0 type=hidden name="IBIMR_folder">
<INPUT style="POSITION: absolute; TOP: -100px; LEFT: -100px" id=ibif_ex value=app/on_focus_test.htm type=hidden name="ibif_ex">
<INPUT style="POSITION: absolute; TOP: -100px; LEFT: -100px" id=ibiapp_app value="webdevel storeoperations baseapp" type=hidden ismre="1" name="ibiapp_app">
<xml id=focus_xmlelement>
<script type="text/xml">
	
<rootxmlnode>
		
<variables></variables>
		
<input_controls>
			
<input_control bindcontrolid="compUid_1" elementtype="14" name="calendar1" id="calendar1" multiple="0" onetimepopulated="1">
				
<link linktype="default">
					
<condition default="1" name="Default" whattodowithcontrol="0" valuescompareoperator="0" parameterscompareoperator="0" conditionmultiselectoperator="0">
						
<data_info calendardata="0/0/-10;0/0/10" calendardatatype="1" ibiformat="YMD" accept="0">
							
<static_values>
								
<static value="" display="" selected="0"></static></static_values></data_info></condition></link></input_control>
			
<input_control bindcontrolid="compUid_2" elementtype="14" name="calendar2" id="calendar2" multiple="0" onetimepopulated="1">
				
<link linktype="default">
					
<condition default="1" name="Default" whattodowithcontrol="0" valuescompareoperator="0" parameterscompareoperator="0" conditionmultiselectoperator="0">
						
<data_info calendardata="0/0/-10;0/0/10" calendardatatype="1" ibiformat="YMD" accept="0">
							
<static_values>
								
<static value="" display="" selected="0"></static></static_values></data_info></condition></link></input_control>
			
<input_control bindcontrolid="compUid_3" elementtype="7" name="edit1" id="edit1" multiple="0" onetimepopulated="1">
				
<link linktype="default">
					
<condition default="1" name="Default" whattodowithcontrol="0" valuescompareoperator="0" parameterscompareoperator="0" conditionmultiselectoperator="0">
						
<data_info accept="0">
							
<static_values>
<static value="This is just for testing..." display="This is just for testing..." selected="1"></static></static_values></data_info></condition></link></input_control></input_controls>
		
<other_bound_objects></other_bound_objects>
		
<requests></requests></rootxmlnode></script>
</xml></BODY>
<SCRIPT id=IBI_loadcalendar type=text/javascript>
if(ibigblInitInfo.testOptions(rltdyncalendar)){
     setDateRange();
     setupDocCalendars();
}</SCRIPT>

<SCRIPT id=IBI_loader type=text/javascript>
doBeforeLoad();
</SCRIPT>
</HTML>

It's "close. but, no cigar." (yet)
February 03, 2011, 03:57 PM
Waz
Try using onkeydown="return false;"

You may have to check this for cross browser compatibility.

<HTML>
<HEAD>
<META id=mycharsetmeta content="text/html; charset=UTF-8" http-equiv=Content-Type>
<META id=Generation content="Gen 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,rltdyncalendar);
</SCRIPT>

<SCRIPT id=IBI_nls type=text/javascript src="/ibi_html/javaassist/nls.js"></SCRIPT>

<SCRIPT id=IBI_nlsVars type=text/javascript src="/ibi_html/javaassist/nlsvars.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);
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 calendar1_onfocus
function calendar1_onfocus(ctrl) {
  document.getElementById("text1").style.color = "red";
}
//End function calendar1_onfocus

//Begin function calendar2_onfocus
function calendar2_onfocus(ctrl) {
  document.getElementById("text1").style.color = "blue";
// ???  document.getElementById("text1").focus = true;
}
//End function calendar2_onfocus
</SCRIPT>

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

<META name=GENERATOR content="MSHTML 8.00.6001.18975"></HEAD>
<BODY style="OVERFLOW: auto" elementtype="21" nextelementuniquenumber="3" edaconnectionrequired="false">
<INPUT style="Z-INDEX: 3; POSITION: absolute; WIDTH: 110px; HEIGHT: 25px; TOP: 100px; LEFT: 40px" id=calendar1 language=javascript onkeydown=" return false;" onfocus=calendar1_onfocus(this) tabIndex=2 size=11 elementtype="14" persistentuniqueid="compUid_1" name="calendar1"> 
<INPUT style="Z-INDEX: 2; POSITION: absolute; WIDTH: 110px; HEIGHT: 25px; TOP: 100px; LEFT: 220px" id=calendar2 language=javascript onkeydown=" return false;" onfocus=calendar2_onfocus(this) tabIndex=3 size=11 elementtype="14" persistentuniqueid="compUid_2" name="calendar2"> 
<SPAN style="Z-INDEX: 1; POSITION: absolute; TEXT-ALIGN: center; WIDTH: 310px; FONT-FAMILY: arial; HEIGHT: 32px; COLOR: black; FONT-SIZE: 8pt; TOP: 30px; LEFT: 40px" id=text1 tabIndex=-1>This changes color when the calendar controls are in focus. 
<BR>This is only a test.</SPAN> 
<INPUT style="Z-INDEX: 4; POSITION: absolute; WIDTH: 310px; HEIGHT: 25px; TOP: 70px; LEFT: 40px" id=edit1 tabIndex=1 value="This is just for testing..." size=16 persistentuniqueid="compUid_3" name="edit1">      
<INPUT style="POSITION: absolute; TOP: -100px; LEFT: -100px" id=layoutinfo type=hidden>
<INPUT style="POSITION: absolute; TOP: -100px; LEFT: -100px" id=IBIMR_domain value=webdevel/webdevel.htm type=hidden name="IBIMR_domain">
<INPUT style="POSITION: absolute; TOP: -100px; LEFT: -100px" id=IBIMR_folder value=#douglasleee0 type=hidden name="IBIMR_folder">
<INPUT style="POSITION: absolute; TOP: -100px; LEFT: -100px" id=ibif_ex value=app/on_focus_test.htm type=hidden name="ibif_ex">
<INPUT style="POSITION: absolute; TOP: -100px; LEFT: -100px" id=ibiapp_app value="webdevel storeoperations baseapp" type=hidden ismre="1" name="ibiapp_app">
<xml id=focus_xmlelement>
<script type="text/xml">
	
<rootxmlnode>
		
<variables></variables>
		
<input_controls>
			
<input_control bindcontrolid="compUid_1" elementtype="14" name="calendar1" id="calendar1" multiple="0" onetimepopulated="1">
				
<link linktype="default">
					
<condition default="1" name="Default" whattodowithcontrol="0" valuescompareoperator="0" parameterscompareoperator="0" conditionmultiselectoperator="0">
						
<data_info calendardata="0/0/-10;0/0/10" calendardatatype="1" ibiformat="YMD" accept="0">
							
<static_values>
								
<static value="" display="" selected="0"></static></static_values></data_info></condition></link></input_control>
			
<input_control bindcontrolid="compUid_2" elementtype="14" name="calendar2" id="calendar2" multiple="0" onetimepopulated="1">
				
<link linktype="default">
					
<condition default="1" name="Default" whattodowithcontrol="0" valuescompareoperator="0" parameterscompareoperator="0" conditionmultiselectoperator="0">
						
<data_info calendardata="0/0/-10;0/0/10" calendardatatype="1" ibiformat="YMD" accept="0">
							
<static_values>
								
<static value="" display="" selected="0"></static></static_values></data_info></condition></link></input_control>
			
<input_control bindcontrolid="compUid_3" elementtype="7" name="edit1" id="edit1" multiple="0" onetimepopulated="1">
				
<link linktype="default">
					
<condition default="1" name="Default" whattodowithcontrol="0" valuescompareoperator="0" parameterscompareoperator="0" conditionmultiselectoperator="0">
						
<data_info accept="0">
							
<static_values>
<static value="This is just for testing..." display="This is just for testing..." selected="1"></static></static_values></data_info></condition></link></input_control></input_controls>
		
<other_bound_objects></other_bound_objects>
		
<requests></requests></rootxmlnode></script>
</xml></BODY>
<SCRIPT id=IBI_loadcalendar type=text/javascript>
if(ibigblInitInfo.testOptions(rltdyncalendar)){
     setDateRange();
     setupDocCalendars();
}</SCRIPT>

<SCRIPT id=IBI_loader type=text/javascript>
doBeforeLoad();
</SCRIPT>
</HTML>



Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

February 04, 2011, 04:01 AM
Wep5622
quote:
Originally posted by Doug:
"disable" works well also. but not the "block".


"block" isn't meant to block anything, it refers to the formatting model used for the element.

See the specifiation, most notably section 4.1, for details.


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
February 04, 2011, 11:35 AM
Doug
Thanks Guys,

And the winner is: Waz. Big Grin For the language=javascript onkeydown=" return false;". (Thanks for your patience as well, I neglected the "language=javascript.)

Thanks (Francis and Wep5622) for the clarification of "block" isn't meant to block anything. I guess I just wanted something "That Simple and Intuitive". But, not as intuitive as I’d like (imho), Waz's suggestion did the trick.
February 04, 2011, 12:45 PM
Doug
Unfortunately, there's a caveat to all of this.

The (onkeydown=" return false;") interferes with my validation of the two dates (from and to). So, at least for now, I'm placing a transparent gif over them to prevent access to them... It's really a work-around, but, acceptable for now seeing that we need to get this in to production ASAP.

Still Smilering...
February 04, 2011, 02:30 PM
dhagen
This is what you should do:
<HTML>
<HEAD>
<META id=mycharsetmeta content="text/html; charset=UTF-8" http-equiv=Content-Type>
<META id=Generation content="Gen 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,rltdyncalendar);
</SCRIPT>

<SCRIPT id=IBI_nls type=text/javascript src="/ibi_html/javaassist/nls.js"></SCRIPT>

<SCRIPT id=IBI_nlsVars type=text/javascript src="/ibi_html/javaassist/nlsvars.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);
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 calendar1_onfocus
function calendar1_onfocus(ctrl) {
  document.getElementById("text1").style.color = "red";
}
//End function calendar1_onfocus

//Begin function calendar2_onfocus
function calendar2_onfocus(ctrl) {
  document.getElementById("text1").style.color = "blue";
// ???  document.getElementById("text1").focus = true;
}
//End function calendar2_onfocus
</SCRIPT>

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

<META name=GENERATOR content="MSHTML 8.00.6001.18975"></HEAD>
<BODY style="OVERFLOW: auto" elementtype="21" nextelementuniquenumber="3" edaconnectionrequired="false">
<INPUT style="Z-INDEX: 3; POSITION: absolute; WIDTH: 110px; HEIGHT: 25px; TOP: 100px; LEFT: 40px" id=calendar1 language=javascript onfocus="document.getElementById('edit1').focus();" tabIndex=2 size=11 elementtype="14" persistentuniqueid="compUid_1" name="calendar1"> 
<INPUT style="Z-INDEX: 2; POSITION: absolute; WIDTH: 110px; HEIGHT: 25px; TOP: 100px; LEFT: 220px" id=calendar2 language=javascript onfocus="document.getElementById('edit1').focus();" tabIndex=3 size=11 elementtype="14" persistentuniqueid="compUid_2" name="calendar2"> 
<SPAN style="Z-INDEX: 1; POSITION: absolute; TEXT-ALIGN: center; WIDTH: 310px; FONT-FAMILY: arial; HEIGHT: 32px; COLOR: black; FONT-SIZE: 8pt; TOP: 30px; LEFT: 40px" id=text1 tabIndex=-1>This changes color when the calendar controls are in focus. 
<BR>This is only a test.</SPAN> 
<INPUT style="Z-INDEX: 4; POSITION: absolute; WIDTH: 310px; HEIGHT: 25px; TOP: 70px; LEFT: 40px" id=edit1 tabIndex=1 value="This is just for testing..." size=16 persistentuniqueid="compUid_3" name="edit1">      
<INPUT style="POSITION: absolute; TOP: -100px; LEFT: -100px" id=layoutinfo type=hidden>
<INPUT style="POSITION: absolute; TOP: -100px; LEFT: -100px" id=IBIMR_domain value=webdevel/webdevel.htm type=hidden name="IBIMR_domain">
<INPUT style="POSITION: absolute; TOP: -100px; LEFT: -100px" id=IBIMR_folder value=#douglasleee0 type=hidden name="IBIMR_folder">
<INPUT style="POSITION: absolute; TOP: -100px; LEFT: -100px" id=ibif_ex value=app/on_focus_test.htm type=hidden name="ibif_ex">
<INPUT style="POSITION: absolute; TOP: -100px; LEFT: -100px" id=ibiapp_app value="webdevel storeoperations baseapp" type=hidden ismre="1" name="ibiapp_app">
<xml id=focus_xmlelement>
<script type="text/xml">
	
<rootxmlnode>
		
<variables></variables>
		
<input_controls>
			
<input_control bindcontrolid="compUid_1" elementtype="14" name="calendar1" id="calendar1" multiple="0" onetimepopulated="1">
				
<link linktype="default">
					
<condition default="1" name="Default" whattodowithcontrol="0" valuescompareoperator="0" parameterscompareoperator="0" conditionmultiselectoperator="0">
						
<data_info calendardata="0/0/-10;0/0/10" calendardatatype="1" ibiformat="YMD" accept="0">
							
<static_values>
								
<static value="" display="" selected="0"></static></static_values></data_info></condition></link></input_control>
			
<input_control bindcontrolid="compUid_2" elementtype="14" name="calendar2" id="calendar2" multiple="0" onetimepopulated="1">
				
<link linktype="default">
					
<condition default="1" name="Default" whattodowithcontrol="0" valuescompareoperator="0" parameterscompareoperator="0" conditionmultiselectoperator="0">
						
<data_info calendardata="0/0/-10;0/0/10" calendardatatype="1" ibiformat="YMD" accept="0">
							
<static_values>
								
<static value="" display="" selected="0"></static></static_values></data_info></condition></link></input_control>
			
<input_control bindcontrolid="compUid_3" elementtype="7" name="edit1" id="edit1" multiple="0" onetimepopulated="1">
				
<link linktype="default">
					
<condition default="1" name="Default" whattodowithcontrol="0" valuescompareoperator="0" parameterscompareoperator="0" conditionmultiselectoperator="0">
						
<data_info accept="0">
							
<static_values>
<static value="This is just for testing..." display="This is just for testing..." selected="1"></static></static_values></data_info></condition></link></input_control></input_controls>
		
<other_bound_objects></other_bound_objects>
		
<requests></requests></rootxmlnode></script>
</xml></BODY>
<SCRIPT id=IBI_loadcalendar type=text/javascript>
if(ibigblInitInfo.testOptions(rltdyncalendar)){
     setDateRange();
     setupDocCalendars();
}</SCRIPT>

<SCRIPT id=IBI_loader type=text/javascript>
doBeforeLoad();
</SCRIPT>
</HTML>  



"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
February 06, 2011, 03:52 PM
Waz
You can add javascript validation before the return.

onkeydown="validate();return false;"


You can also change this to be more dynamic, and have the validate return a tru or false.

onkeydown="validate();"

.
.
.

function validate() {
tests and checks

if (testedOK) return false;
else return true ;
}



Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!