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     Calendar on HTML page issues

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Calendar on HTML page issues
 Login/Join
 
Member
posted
I have built a launch page with HTML Composer and have used 2 calendars. One for beginning date and one for ending date. The calendars are both set to format the date in YYMD format. The calendar is not functioning as I would expect.

1. If you click on a date in the pop-up calendar it is passing the date as yyyymmdd, dropping the slashes.
2. If after clicking on the calendar you decide to type in the text box it will not capture what has been typed, the page just retains the pop-up calendar date and format, even if you click the reset button on the page.
3. If after you first load the page and only choose to type in the text box the page will pass whatever you typed, even if it isn't a date.

I am trying to be a good little gui user, but this is perplexing.
Has anyone else run into these issues?
Is this is just a bug with the HTML composer?
Do I just write a bunch of code to handle every possible entry I might see from a user?

Thanks
Carol

HTML page code:


<HTML>
<HEAD>
<META id=mycharsetmeta content="text/html; charset=ISO-8859-1" http-equiv=Content-Type>
<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,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 button1_onclick
function button1_onclick(ctrl) {
// TODO: Add your event handler code here
OnExecute(ctrl)
}
//End function button1_onclick
</SCRIPT>

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

<META name=GENERATOR content="MSHTML 8.00.6001.19154"></HEAD>
<BODY style="OVERFLOW: auto" persistentuniqueid="compUid_1" nextelementuniquenumber="8" elementtype="21" edaconnectionrequired="true">
<INPUT style="Z-INDEX: 1; POSITION: absolute; TOP: 109px; LEFT: 77px" id=button1 language=javascript tabIndex=1 onclick=button1_onclick(this) value=Submit type=button persistentuniqueid="compUid_2" requests_list="0" name="button1"> 
<FORM style="Z-INDEX: 2; POSITION: absolute; WIDTH: 398px; HEIGHT: 108px; TOP: 29px; LEFT: 67px" id=form1 method=post persistentuniqueid="compUid_5" tempheight="105" tempwidth="242" fexlist_list="button1" form_type="1" 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" name="form1">
<INPUT style="BACKGROUND-IMAGE: url(/ibi_html/javaassist/ibi/html/describe/reset.gif); Z-INDEX: 3; POSITION: absolute; BACKGROUND-COLOR: lavender; WIDTH: 38px; BACKGROUND-REPEAT: no-repeat; HEIGHT: 22px; TOP: 83px; LEFT: 92px" id=form1Reset tabIndex=2 value=" " type=reset persistentuniqueid="compUid_8" name="reset1"> 
<LABEL style="Z-INDEX: 4; POSITION: absolute; WIDTH: 51px; HEIGHT: 19px; TOP: 0px; CURSOR: default; LEFT: 0px" id=label1 tabIndex=3 for=calendar1 persistentuniqueid="compUid_7" elementtype="32" name="calendar1">BDATE</LABEL> 
<INPUT style="Z-INDEX: 5; POSITION: absolute; WIDTH: 100px; HEIGHT: 22px; TOP: 31px; LEFT: 0px" id=calendar1 tabIndex=4 hspace=0 maxLength=10 size=10 persistentuniqueid="compUid_3" elementtype="14" defaultlocation="0,0,22,100" boundtovariable="1" name="calendar1"> 
<LABEL style="Z-INDEX: 6; POSITION: absolute; WIDTH: 50px; HEIGHT: 19px; TOP: 2px; CURSOR: default; LEFT: 198px" id=label2 tabIndex=5 for=calendar2 persistentuniqueid="compUid_6" elementtype="32" name="calendar2">EDATE</LABEL> 
<INPUT style="Z-INDEX: 7; POSITION: absolute; WIDTH: 100px; HEIGHT: 22px; TOP: 31px; LEFT: 184px" id=calendar2 tabIndex=6 hspace=0 maxLength=10 size=10 persistentuniqueid="compUid_4" elementtype="14" defaultlocation="0,0,22,100" boundtovariable="1" name="calendar2"></FORM>   
<INPUT style="POSITION: absolute; TOP: -100px; LEFT: -100px" id=layoutinfo type=hidden resourcectrlids="form1Reset">
<INPUT style="POSITION: absolute; TOP: -100px; LEFT: -100px" id=ibiapp_app value=b113981 type=hidden name="ibiapp_app">
<INPUT style="POSITION: absolute; TOP: -100px; LEFT: -100px" id=ibic_server value=EDASERVE type=hidden isdataserversarea="1" name="ibic_server">
<xml id=focus_xmlelement>
<script type="text/xml">
	
<rootxmlnode top="100" left="10" width="150" height="130">
		
<variables>
			
<variable controltype="14" parametercreatedinreslay="0" type="unresolved" desc="BDATE" name="BDATE" default="" textvarname="" accept="0" select="0" create="1" top="70" left="30" width="60" height="20" inbinding="1">
				
<link linktype="default" from="compUid_3">
					
<condition default="1" name="Default" whattodowithcontrol="4" valuescompareoperator="0" parameterscompareoperator="0" conditionmultiselectoperator="0">
						
<data_info displayfield="BDATE" datafield="BDATE" datasource="" datatype="0" selectedvalue="" operation="" slider_range_from="" slider_range_to="" sourcetype="typeMaster"></data_info></condition></link>
				
<requestid id="0"></requestid></variable>
			
<variable controltype="14" parametercreatedinreslay="0" type="unresolved" desc="EDATE" name="EDATE" default="" textvarname="" accept="0" select="0" create="1" top="70" left="140" width="60" height="20" inbinding="1">
				
<link linktype="default" from="compUid_4">
					
<condition default="1" name="Default" whattodowithcontrol="4" valuescompareoperator="0" parameterscompareoperator="0" conditionmultiselectoperator="0">
						
<data_info displayfield="EDATE" datafield="EDATE" datasource="" datatype="0" selectedvalue="" operation="" slider_range_from="" slider_range_to="" sourcetype="typeMaster"></data_info></condition></link>
				
<requestid id="0"></requestid></variable></variables>
		
<input_controls>
			
<input_control bindcontrolid="compUid_3" elementtype="14" requiredfield="0" name="calendar1" id="calendar1" multiple="0" top="20" left="30" width="60" height="20" inbinding="1" unresolved="0" onetimepopulated="1">
				
<link linktype="default">
					
<condition default="1" name="Default" whattodowithcontrol="0" valuescompareoperator="0" parameterscompareoperator="0" conditionmultiselectoperator="0">
						
<data_info datatype="0" datasource="" addalloption="0" sourcetype="typeMaster" cacheruntimedata="0" calendardata="0/0/-10;0/0/10" calendardatatype="1" ibiformat="YYMD" accept="0" operation="NONE" selectedvalue="">
							
<![CDATA[]]></data_info></condition></link></input_control>
			
<input_control bindcontrolid="compUid_4" elementtype="14" requiredfield="0" name="calendar2" id="calendar2" multiple="0" top="20" left="140" width="60" height="20" inbinding="1" unresolved="0" onetimepopulated="1">
				
<link linktype="default">
					
<condition default="1" name="Default" whattodowithcontrol="0" valuescompareoperator="0" parameterscompareoperator="0" conditionmultiselectoperator="0">
						
<data_info datatype="0" datasource="" addalloption="0" sourcetype="typeMaster" cacheruntimedata="0" calendardata="0/0/-10;0/0/10" calendardatatype="1" ibiformat="YYMD" accept="0" operation="NONE">
							
<static_values>
								
<static value="" display="" selected="0" noinput="0"></static></static_values></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="calendar_test.fex" activereport="0" reportcolumns="" ibiapp_app="b113981"></request></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>



FEX code to test the page load:
-* File Calendar_Test.fex

-TYPE  Begin date is being sent as  &BDATE
-TYPE  End date is being sent as  &EDATE


Carol Bricker
BNSF Railway
Production: WF Dev Studio 7.6.11
Output: HTML, Excel 2010, PDF
 
Posts: 5 | Location: Fort Worth, TX | Registered: June 09, 2006Report This Post
Expert
posted Hide Post
There are 7 Hotfix's for 7.6.11; this was addressed in Hotfix 4:

HTML Composer: Calendar control output to dialogue manager variable omits delimiter (ibirls3.js)

7.6.11 Hotfix Info

You need to install Hotfix 7 which will include all previous fixes...


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Guru
posted Hide Post
Carol,

I've also had a few issues with the calendar object. I'm not on site now, but have you tried using the &variablename_TEXT, which the composer for some reason creates. If I remember correctly, the calendar don't change the value of the & variable bound to the object when you type in the text box, only when you click in the object itself. However, it will populate the &variable_TEXT. I think it's also assigned when you click in the object, so you can set the &variable bound to the object to &variable_TEXT, and you're home safe. Mind you, I can't check it for the moment.

Good luck
Håkan


WebFOCUS DS 8.0.06/08 DS/AS
WebFOCUS RS 8.0.08 (Linux/IBM i)
WebFOCUS Client 8.0.06 (Linux)
 
Posts: 319 | Location: Stockholm, Sweden | Registered: February 04, 2004Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Calendar on HTML page issues

Copyright © 1996-2020 Information Builders