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     [CLOSED] Creating Dropdown Parameter list in Reporting Objects

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Creating Dropdown Parameter list in Reporting Objects
 Login/Join
 
Gold member
posted
In a reporting object we are trying to define a parameter for today_begin and today_end using the following set commands:

 
-SET &TODAY_START = &YYMD | ' 00:00:00';
-SET &TODAY_END = &YYMD | ' 23:59:59';
 


However, when we try to use these parameters in our filters, it does not convert the parameter to the actual value. We receive an invalid date format error message.

This message has been edited. Last edited by: <Kathryn Henning>,




Prod/Dev: WebFOCUS 8.0.08 on Windows Server 2008/Tomcat , WebFOCUS DevStudio 8.0.08 on Windows 7 Pro


 
Posts: 94 | Location: Austin, TX | Registered: August 08, 2012Report This Post
<Kathryn Henning>
posted
Hi Joey,

Are there -DEFAULT values for every &var contained within the Other section of the Reporting Object? If so, what is the exact error that you're receiving?

Thanks and regards,

Kathryn
 
Report This Post
Expert
posted Hide Post
quote:
-SET &TODAY_START = &YYMD | ' 00:00:00';
-SET &TODAY_END = &YYMD | ' 23:59:59';

INVALID DATE FORMAT message indicates that you are trying to compare perhaps an Oracle Date which has a format that looks like your &TODAY.. variables, but isn't really.
If your filter statement is
IF SOMEDATE EQ &TODAY_START.QUOTEDSTRING
then you are comparing some date format to an alphabetic charcter string.
that's going to give you an INVALID DATE FORMAT message, b/c the alpha string is not a date, really.
IF i'm right in my thinking about what you're doing, then first DEFINE a new date field in your Reporting Object,
DEFINE FILE thing
mydate/YYMD = HDATE( somedate, 'YYMD');
END
and then do your filter
IF mydate EQ &YYMD
and that should work




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report 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     [CLOSED] Creating Dropdown Parameter list in Reporting Objects

Copyright © 1996-2020 Information Builders