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 System Date

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] DEFAULT System Date
 Login/Join
 
Platinum Member
posted
Is there no way to do this without a launch page? Because I want to use the system date in Report Caster but prompt the user when run on-demand.

None of these techniques work.
Thanks

-SET &TODAY = &DATEMDYY;
-DEFAULTH &TRANSDATE=&YYMD.EVAL;
-DEFAULT &MYDATE = '&YYMD';
-DEFAULT &MYDATE2 = '&TODAY';
-RUN
-TYPE &TRANSDATE
-TYPE &TODAY
-TYPE &MYDATE
-TYPE &MYDATE2

This message has been edited. Last edited by: Rick Man,


Reporting Server 7.6.10
Dev. Studio 7.6.8
Windows NT
Excel, HTML, PDF
 
Posts: 204 | Registered: March 31, 2008Report This Post
Virtuoso
posted Hide Post
Maybe something like this?

-SET &TODAY = &DATEMDYY ;
-SET &TRANSDATE = &YYMD ;
-DEFAULT &MYDATE = &TRANSDATE.EVAL
-DEFAULT &MYDATE2 = &TODAY.EVAL
-RUN
-TYPE &TODAY
-TYPE &TRANSDATE
-TYPE &MYDATE
-TYPE &MYDATE2


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Platinum Member
posted Hide Post
No, still get the '&TRANSDATE.EVAL' in the prompt box.
The ideal would be to use a system amper variable in the Report Caster Parameters screen.


Reporting Server 7.6.10
Dev. Studio 7.6.8
Windows NT
Excel, HTML, PDF
 
Posts: 204 | Registered: March 31, 2008Report This Post
Gold member
posted Hide Post
Unfortunately you cannot prompt a default value with another amper variable unless you use javascript.

For an example look at this post: Set current date as default

However you can have a normal date prompt but on a later line override the value if report caster is running the report. For example:

-PROMPT &DATE_ENTERED.Date.
-IF &FOCFOCEXEC NE 'RCASTER' THEN GOTO LBLUSER ELSE GOTO LBLRC;
-LBLRC
-SET &DATE_ENTERED=&YYMD;

-LBLUSER
-*The rest of the report


WF: 8201, OS: Windows, Output: HTML, PDF, Excel
 
Posts: 78 | Registered: November 08, 2010Report This Post
Expert
posted Hide Post
Rick,

Check for &DSTSCHEDID.EXISTS EQ 0 and then branch accordingly.

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, 2004Report This Post
Platinum Member
posted Hide Post
This is what I did. Thanks for the help.

 
-* 7/20/2012 R. Mnauszak Added check for RCASTER in order to default to the system date
-PROMPT &TRANSDATE.Enter End Date (MMDDYYYY).
-IF &FOCFOCEXEC NE 'RCASTER' THEN GOTO LBLUSER ELSE GOTO LBLRC;
-RUN
-LBLRC
-SET &TRANSDATE=&MDYY;
-RUN
-*
-LBLUSER
-*The rest of the report
-TYPE FOC = &FOCFOCEXEC
-TYPE DATE = &TRANSDATE
 


Reporting Server 7.6.10
Dev. Studio 7.6.8
Windows NT
Excel, HTML, PDF
 
Posts: 204 | Registered: March 31, 2008Report 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 System Date

Copyright © 1996-2020 Information Builders