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] Dynamic Calendar date range not working in WebFOCUS

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Dynamic Calendar date range not working in WebFOCUS
 Login/Join
 
Gold member
posted
Hello All,

I am working on a dynamic calendar date range where I need to define the date range of the calendar dynamically.
I have the below HTML code:



<script id=IBI_OptionsScript type=text/javascript>
var rltVersion = "714";
var cgipath = "cgipath";
var ibirls = "ibirls2";
var multidrill = "multidrill";
var mntFormValidate = "mntFormValidate";
var dyncalendar = "dyncalendar";
var olap="olap";
var olappanebase="olappanebase";
var ibixmltree="ibixmltree";
var ibilangtrans="ibilangtrans";
var olapdrill="olapdrill";
var ibiOptions = new Array(cgipath,ibirls,mntFormValidate,ibilangtrans,dyncalendar,olap,olappanebase,olapdrill,multidrill);

<script id=IBI_nls src="/ibi_html/javaassist/nls.js" type=text/javascript>
<script id=IBI_ibigbl src="/ibi_html/javaassist/ibi/html/js/ibigbl.js" type=text/javascript>
<script id=IBI_ibigblloadCss type=text/javascript>
ibigblloadCss(null);
<script id=IBI_RelCallBack type=text/javascript>function AdjustChildrenPosition(){
}

Empty Package<BR>
<script language=javascript>



<script id=clientEventHandlersJS type=text/javascript>
function window_onload()
{
//alert("Awesome");
}

<script for=window eventname="onload">window.onload = function()
{
window_onload();
}














<script id=IBI_loadcalendar type=text/javascript>
if(ibigblInitInfo.testOptions(dyncalendar)){
setDateRange();
setupDocCalendars();
}



If I go ahead and hard code the dates then it does restrict the celandar. The below code also works:





But the same if I save the dates in some variable try with the below option:
fex file code:
-SET &BEGDT = '01/01/2019';
-SET &ENDDT = '04/30/2020';

HTML code:



I also tried declaring the global variable but still did not work. also tried below option:




Any hint would be of great help!

Thank you,
Prajakta

This message has been edited. Last edited by: FP Mod Chuck,


Webfocus 8.1.0.5
Windows, all output
 
Posts: 56 | Registered: February 16, 2011Report This Post
Virtuoso
posted Hide Post
1. HTML Code is missing above.
2. Are you really running WebFOCUS 769 or is that a typo?
3. Have you tried to do this all in WebFOCUS instead of coding it like this?


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Gold member
posted Hide Post
Hello,

Thank you for the reply!
Here is the HTML code.

<HTML lang="en">
<HEAD>
<SCRIPT id=IBI_OptionsScript type=text/javascript>
var rltVersion = "714";
var cgipath = "cgipath";
var ibirls = "ibirls2";
var multidrill = "multidrill";
var mntFormValidate = "mntFormValidate";
var dyncalendar = "dyncalendar";
var olap="olap";
var olappanebase="olappanebase";
var ibixmltree="ibixmltree";
var ibilangtrans="ibilangtrans";
var olapdrill="olapdrill";
var ibiOptions = new Array(cgipath,ibirls,mntFormValidate,ibilangtrans,dyncalendar,olap,olappanebase,olapdrill,multidrill);
</SCRIPT>
<SCRIPT id=IBI_nls src="/ibi_html/javaassist/nls.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);</SCRIPT>
<SCRIPT id=IBI_RelCallBack type=text/javascript>function AdjustChildrenPosition(){
}
</SCRIPT>
<TITLE>Empty Package
</TITLE>
<SCRIPT language=javascript>

</SCRIPT>
<STYLE type=text/css>

</STYLE>
<SCRIPT id=clientEventHandlersJS type=text/javascript>
function window_onload()
{
//alert("Awesome"); 
}
</SCRIPT>
<SCRIPT for=window eventname="onload">window.onload = function()
{
window_onload();
}
</SCRIPT>
</HEAD>
<BODY>
<BODY style="OVERFLOW: auto">
<form action="/ibi_apps/WFServlet" name="form1" TARGET = "_blank">
<input type='hidden' name='IBIF_ex' >
<input type="hidden" name="IBIAPP_app" value="SampleCP">
<input type='hidden' name='IBIMR_random'>
<input type = 'hidden' name = 'IBIC_server' value ="SampleCP">


<INPUT id=calendar1 style="FONT-SIZE: 8pt; Z-INDEX: 19; LEFT: 225; WIDTH: 125px; POSITION: absolute; TOP: 210; HEIGHT: 22px" tabIndex=4 size=28 name="calendar1" elementtype="14" ibiformat="MDYY" calendardata="01/01/2019;06/30/2020" calendardatatype="2">
<INPUT id=calendar2 style="FONT-SIZE: 8pt; Z-INDEX: 20; LEFT: 420; WIDTH: 125px; POSITION: absolute; TOP: 210; HEIGHT: 22px" tabIndex=5 size=28 name="calendar2" elementtype="14" ibiformat="MDYY" calendardata="01/01/2019;06/30/2020" calendardatatype="2">

</BODY>
<SCRIPT id=IBI_loadcalendar type=text/javascript>
if(ibigblInitInfo.testOptions(dyncalendar)){
     setDateRange();
     setupDocCalendars();
}</SCRIPT>
</form>
</HTML>






I have coded everything. I am currently using Webfocus 8.1
Please let me know if you have any idea on why this is not working

Thank you,
Prajakta


Webfocus 8.1.0.5
Windows, all output
 
Posts: 56 | Registered: February 16, 2011Report 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] Dynamic Calendar date range not working in WebFOCUS

Copyright © 1996-2020 Information Builders