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] Date Format in Report Caster

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Date Format in Report Caster
 Login/Join
 
Member
posted
I have a simple procedure that I'm using to test output formats in Report Caster:

TABLE FILE FA
SUM
FA.Position.MARKETVALUEBASE
BY LOWEST FA.Position.FULLDATE
BY LOWEST FA.Position.MFACTID
WHERE ( FA.Position.FULLDATE EQ '2/21/2014' );
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = IBFS:/EDA/EDASERVE/_EDAHOME/ETC/endeflt.sty,
$
ENDSTYLE
END

FA.Position.FULLDATE is a DATE with usage MDYY (aka 06/06/2014).

When I create a schedule using EXL07 (Excel 2007/.xlsx), HTML, AHTML or PDF as the override format, the dates in the resulting document are formatted correctly: 06/06/2014.

When I create a schedule using XML, COMT (csv), TABT (tab-delimited), the dates in the resulting document do not have the slashes: 06062014.

Any thoughts as to why this happens, and what can be done about it to make it consistent?

Thanks,
Chris

This message has been edited. Last edited by: Chris Mohr,


WebFOCUS 8.0.0.6
Windows, All Outputs
 
Posts: 4 | Registered: February 20, 2014Report This Post
Expert
posted Hide Post
it makes sense to me, as the first set are formatted final outputs and the second set are interim outputs.
so, what we do for different format requirements is
1) make a little fex that goes in the baseapp and gets -INCLUDE mod_wffmt.fex
where
mod_wffmt is:
-SET &cmt_HTML = IF &WFFMT.QUOTEDSTRING IS 'HTML' THEN ' ' ELSE '-*';
-SET &cmt_HTMLx = IF &WFFMT.QUOTEDSTRING NE 'HTML' THEN ' ' ELSE '-*';

... repeat for all the other formats you use
... and/or make some special ones, like
-SET &cmt_formatted = IF &WFFMT IS 'EXL2K' OR 'HTML' OR 'AHTML' OR 'PDF' THEN ' ' ELSE '-*';

... then create its reverse
-SET &cmt_formattedx = IF &WFFMT NE 'EXL2K' OR 'HTML' OR 'AHTML' OR 'PDF' THEN ' ' ELSE '-*';


2) then, in your fex
DEFINE FILE FA
temp/A8MDYY = DATECVT( FULLDATE , 'MDYY', 'A8MDYY');
TEXTDATE/A10=EDIT(temp,'99/99/9999');
END
TABLE FILE FA
...
&cmt_formatted.EVAL BY LOWEST FA.Position.FULLDATE
&cmt_formattedx.EVAL BY LOWEST TEXTDATE AS 'FULLDATE'




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
Member
posted Hide Post
Thanks for your response susannah. I understand how your method works, and while it works as advertised I wish there was a way to get directly to TEXTDATE without having to have two define fields for each date field that is part of the output.


WebFOCUS 8.0.0.6
Windows, All Outputs
 
Posts: 4 | Registered: February 20, 2014Report 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] Date Format in Report Caster

Copyright © 1996-2020 Information Builders