Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS Designer Forum on Focal Point     [CLOSED] Dynamic date value in calendar - issue
Go
New
Search
Notify
Tools
Reply
  
[CLOSED] Dynamic date value in calendar - issue
 Login/Join
 
Member
posted
Hi Team,

I tried to create / set a dynamic date value in calendar using prompt. But it is not taking up. Can you help me out? Below is the code


-SET &STARTDATE_YYMD = DATECVT(DATEADD(DATECVT(&YYMD, 'I8YYMD', 'YYMD'), 'M', '-1'), 'YYMD', 'I8YYMD');
-SET &STARTDATE_MONTH = LCWORD(10, CHGDAT('YYMD','MX', &STARTDATE_YYMD, 'A10'), 'A10');
-SET &STARTDATE_DAY = CHGDAT('YYMD','DX', &STARTDATE_YYMD, 'A2');
-SET &STARTDATE_YEAR = CHGDAT('YYMD','YYX', &STARTDATE_YYMD, 'A4');
-SET &STDT = TRUNCATE(&STARTDATE_MONTH) | ' ' | TRUNCATE(&STARTDATE_DAY) | ' ' | TRUNCATE(&STARTDATE_YEAR);

-SET &ENDDATE_YYMD = DATECVT(DATEADD(DATECVT(&YYMD, 'I8YYMD', 'YYMD'), 'D', '0'), 'YYMD', 'I8YYMD');
-SET &ENDDATE_MONTH = LCWORD(10, CHGDAT('YYMD','MX', &ENDDATE_YYMD, 'A10'), 'A10');
-SET &ENDDATE_DAY = CHGDAT('YYMD','DX', &ENDDATE_YYMD, 'A2');
-SET &ENDDATE_YEAR = CHGDAT('YYMD','YYX', &ENDDATE_YYMD, 'A4');
-SET &ENDDT = TRUNCATE(&ENDDATE_MONTH) | ' ' | TRUNCATE(&ENDDATE_DAY) | ' ' | TRUNCATE(&ENDDATE_YEAR);

-TYPE STARTDATE_YYMD &STARTDATE_YYMD
-TYPE STARTDATE_MONTH &STARTDATE_MONTH
-TYPE STARTDATE_DAY &STARTDATE_DAY
-TYPE STARTDATE_YEAR &STARTDATE_YEAR
-TYPE STDT &STDT

-TYPE ENDDATE_YYMD &ENDDATE_YYMD
-TYPE ENDDATE_MONTH &ENDDATE_MONTH
-TYPE ENDDATE_DAY &ENDDATE_DAY
-TYPE ENDDATE_YEAR &ENDDATE_YEAR
-TYPE ENDDT &ENDDT

-*-DEFAULT &STARTDATE='March 18 2018';
-*-DEFAULT &ENDDATE='April 17 2019';
-DEFAULT &STARTDATE = '&STDT.EVAL';
-DEFAULT &ENDDATE = '&ENDDT.EVAL';
PROMPT &STARTDATE.(|FORMAT=MDYY).StartDate:.QUOTEDSTRING;
-PROMPT &ENDDATE.(|FORMAT=MDYY).EndDate:.QUOTEDSTRING;


When you provide as a static value it is working however for dynamic it is not showing the value which calculated.

Below is the reference URL:
https://webfocusinfocenter.inf...d9-9726-FC3291EDC48F

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


WebFOCUS 8.6
Windows, All Outputs
 
Posts: 9 | Registered: September 25, 2014Reply With QuoteReport This Post
Virtuoso
posted Hide Post
subbu_088

I am going to close this thread seeing you have posted it in the other and getting advice.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 1666 | Location: Customer Support | Registered: April 12, 2005Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS Designer Forum on Focal Point     [CLOSED] Dynamic date value in calendar - issue

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.