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     [SOLVED] default date parm - passing value

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] default date parm - passing value
 Login/Join
 
Gold member
posted
Please help to display default value. I need it
for htm page where date field should have the value of &SDATE based on bellow logic.
when I do this -TYPE &SDATE1

I get &SDATE as output!
--------------------------------------------
-* my logic ----
-SET &WDAY= DOWK(&YYMD,A3);
-SET &TAW= DECODE &WDAY( MON 1 TUE 2 WED 3 THU 4 FRI 5 SAT 6 SUN 0 ELSE 0);
-SET &DIF= (-1)*&TAW;
-SET &EDATE= AYMD(&YYMD , &DIF, I8);
-SET &SDATE= AYMD(&EDATE , -6, I8);
-SET &SDAT2 = AYMD(&SDATE,-7,'I8');
-SET &EDAT2 = AYMD(&EDATE,7,'I8');

-DEFAULT &SDATE1 = &SDATE;

-TYPE &SDATE &SDATE1 &EDATE
-EXIT

This message has been edited. Last edited by: Kerry,


Valeriya

WebFOCUS 764 Servlet - MRE/Dashboard/Self Service/ReportCaster - Windows 2000
 
Posts: 68 | Location: Chicago | Registered: August 23, 2007Report This Post
Virtuoso
posted Hide Post
quote:
-DEFAULT &SDATE1 = &SDATE;


As is stands, that treats "&SDATE" as a constant. To get it evaluated, either use -SET rather than -DEFAULT, or append .EVAL


- Jack Gross
WF through 8.1.05
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Gold member
posted Hide Post
-DEFAULT &SDATE1 = &SDATE.EVAL;
WORKED THANKS!


Valeriya

WebFOCUS 764 Servlet - MRE/Dashboard/Self Service/ReportCaster - Windows 2000
 
Posts: 68 | Location: Chicago | Registered: August 23, 2007Report 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     [SOLVED] default date parm - passing value

Copyright © 1996-2020 Information Builders