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.
How can I default today's date to a calendar default from a fex to a launch page. We usually do this default: -DEFAULT &BEGIN_DATE = '01/01/2007'; -DEFAULT &END_DATE = '12/31/2007'; and this will be shown on the launch page for these (calender ) fields. Now, I want to calculate today's date and assign it to the end_date and &begin_date to be something else depending on the requirement..I tried -set with the calculation first then assign that &var to the -default &begin_date and &end_date. It does not work. why? Any help is appreciated.
on VMS: OpenVMS AXP V8.2 Prod and TestEnvironment Webfocus: WebFocus 7.6.1 Prod and TestEnvironment
EOM is the end of month.
BOM is the beginning of month.
EOQ is the end of quarter.
BOQ is the beginning of quarter.
EOY is the end of year.
BOY is the beginning of year.
EOW is the end of week.
BOW is the beginning of week.
NWD is the next weekday.
NBD is the next business day.
PWD is the prior weekday.
PBD is the prior business day.
WD- is a weekday or earlier.
BD- is a business day or earlier.
WD+ is a weekday or later.
BD+ is a business day or later.
A business day calculation is affected by the BUSDAYS and HDAY parameter settings.
TThis message has been edited. Last edited by: Tony A,
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
We have put these settings in the EDASPROV.PRF file so we can use them in all programs (see the double ampersands)
-* this settings are in my EDASPROFso we have them in all our reports available
-SET &DOWK = DOWK(&YYMD,'A4');
-SET &DIFF = IF &DOWK EQ 'MON' THEN -3 ELSE
- IF &DOWK EQ 'SUN' THEN -2 ELSE -1;
-* this can be corrected for the holiday calander
-* calculates the previous working day
-SET &&VRG_WRKDAG = AYMD(&YYMD, &DIFF, 'I8YYMD');
-*
-* calculate the actual year
-* and the prvious two years
-SET &&LPD_JAAR = EDIT('&&VRG_WRKDAG.EVAL','9999');
-SET &&VRG_JAAR = &&LPD_JAAR.EVAL - 1;
-SET &&VRG_JR2 = &&LPD_JAAR.EVAL - 2;
-*
-* the actual month based on the preious working day as 'YYYYMM'
-* and the act month
-SET &&LPD_JRMND = EDIT('&&VRG_WRKDAG.EVAL','999999');
-SET &LPD_MND = EDIT('&&VRG_WRKDAG.EVAL','$$$$99');
-*
-* the previous month and year as 'YYYYMMD'
-SET &VRG_MNDNUM = IF &LPD_MND.EVAL EQ 1 THEN 12 ELSE &LPD_MND.EVAL - 1;
-SET &VRG_MND = IF &VRG_MNDNUM.EVAL LT 10 THEN '0'||'&VRG_MNDNUM.EVAL' ELSE '&VRG_MNDNUM.EVAL';
-SET &&VRG_JRMND = IF &LPD_MND.EVAL EQ 1 THEN '&&VRG_JAAR.EVAL'||'1201' ELSE '&&LPD_JAAR.EVAL'||'&&VRG_MND.EVAL'||'01';
-*
-* first day of the actual month and the actual year
-SET &&LPD_JMD = '&&LPD_JRMND.EVAL'||'01';
-SET &&NIEUWJAAR = '&&LPD_JAAR.EVAL' || '0101';
-* and convert the first day of the year to a number
-SET &&DAGNUMNJ = DATECVT(&&NIEUWJAAR, 'I8YYMD', 'I8');
-*
-* the same with the previous year
-SET &&VRG_JMD = '&&VRG_JAAR.EVAL'||'0101';
-SET &&DAGNUMVJ = DATECVT(&&VRG_JMD, 'I8YYMD', 'I8');
-*
-* convert the last working day to a number
-SET &&DAGNUM = DATECVT(&&VRG_WRKDAG, 'I8YYMD', 'I8');
-*
Frank
prod: WF 7.6.10 platform Windows, databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7 test: WF 7.6.10 on the same platform and databases,IE7
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006