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.
I need to keep a dynamic date range in calendar control starting from three year back start date till current day minus seven days. I have done this by a dynamic procedure from calendar properties with calendardatatype="2" calendardata="cal_sted.fex". But when i run the launch page the text box alone is appearing while calendar control is not showing up on the run.
--cal_sted.fex--
DEFINE FILE CAR
DATE1/YYMD='&YYMD';
DATE2/YYMD=DATEADD(DATE1,'D',-7);
DATE3/YYMD=DATEADD(DATE1,'Y',-3);
DATE4/YYMD=DATEMOV(DATE3,'BOY');
END
TABLE FILE CAR
PRINT
DATE4 AND DATE2
COUNTRY NOPRINT
WHERE RECORDLIMIT EQ 1;
ON TABLE PCHOLD FORMAT XML
END
When i ran the same with relative setting calendardata="0/-7/-3;0/-7/0" calendardatatype="1" it is working fine.I have the calendar parameters assigned correctly to the fex parameters.Currently working on 7.6.9 version.
Please provide suggestions.This message has been edited. Last edited by: Kerry,
Make sure that the ID attribute of the HTML form controls are unique.
For one of IBs calendar controls there are other items to consider. Explain how you are using the XML output within the javascript and also post the control line from your HTML (NOT the whole HTML. Remember to enclose the HTML line using [ code] and [/code] tags in your posting.
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
The calendar id i have used is unique. I am having two calendar date selection as from and to dates.The control line which i have used in HTML page is as
The first thing I spot is that your sourcetype attribute is set to typeMaster which intimates that you want population achieved using the .mas.
Internally IBIRLS.JS (also IBIRLS2 and 3 but I need to check 3 for the latest calendar control script) will use an adhoc fex to achieve the XML return is the format -
TABLE FILE [datasource attribute value] SUM FST.[displayfield attribute value] BY [datafield attribute value] ON TABLE PCHOLD FORMAT XML END
but you have no attributes set for datafield or displayfield, there isn't even a datasource attribute value!
I will have to read through the IBIRLS2 (I think that is the version you use? check at the top of your HTML) to see how this particular calendar control is populated using the attributes that you have in your code. I will check when I get time.
In the meantime it could be a simple case of changing the sourcetype attribute values to typeFex (case specific). Give it a try - it can't hurt?
The code that you have posted also has the "selectedvalue" attribute which is what Attilla was asking about.
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
Thanks tony for your suggestions i tried replacing typeMaster with typeFex in sourcetype and adding the datafield,displayfield and datasource value. This still does'nt work
I have the following code in my HTML page :
<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,rltdyncalendar);
</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>
--------------*and towards the end of my code i have the script as:*---------------------
Thanks a lot Tony for your suggestions ,found an alternative method to satisfy my requirement.
In the calendar onload function i called a function which will calculate a string as per my requirement. So i am no longer populating from dynamic procedure, doing it with relative property of calendar only.
Could'nt make out why the calendar control did'nt turn up while using dynamic procedure.
function fill_calendar() {
var d=new Date();
var a=d.getMonth();
var c=d.getDate();
var e=-a;
var g=-(c-1);
var f=e+"/"+g+"/"+-3+";"+"0/-7/0";
document.getElementById('RDFRM_DT').calendardata = f;
}
The above function will return the date in format "Month/Day/Year;Month/Day/Year" in Var f, which is set for calendardata property on load.