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.
As far as I know Excel does not recognize dates that have translated components. It just assumes that they are strings since that is the actual content of the cell as delivered by WF, as opposed to a normal numeric date that has had an Excel formatting option applied. You might try looking into using an Excel template with a pre-formatted column. I'm sure there are other suggestions that people have used as well.
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
And why, if you indicate the lower case "t" whcih means to use mixed case, does it not create the date with mixed case? To go one step further, if you change the date format to MtDYY instead of DMtYY, it doe NOT convert to a date when pressing enter after the date. The inconsistencies would lead me to open a case with techsupport.
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
Interestingly, if you use HTMTABLE with HTMLFORMTYPE=XLS, dates DATE0 and DATE1 are recognized in Excel as dates while DATE2 and DATE3 are seen as strings (although DATE0 has an MDYY format instead of YYMD).
DEFINE FILE CAR
DATE0/YYMD='20081225';
DATE1/I8DMtYY=DATE0;
DATE2/DMtYY=DATE0;
DATE3/DMYY=DATE0;
END
-*
TABLE FILE CAR
PRINT DATE0 DATE1 DATE2 DATE3
BY COUNTRY
ON TABLE HOLD FORMAT HTMTABLE
END
-*
SET HTMLFORMTYPE=XLS
-RUN
-*
-HTMLFORM BEGIN
!IBI.FIL.HOLD;
-HTMLFORM END
WebFOCUS 7.7.05
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007
DEFINE FILE EMPLOYEE YRHIRED/YYMD = HIRE_DATE; MHIRED/I8DMtYY = YRHIRED; END TABLE FILE EMPLOYEE PRINT FIRST_NAME MHIRED BY LAST_NAME ON TABLE PCHOLD FORMAT EXL2K END
In 7.6.10 this works although you will get a warning about sorting numbers displayed as text
Thanks to everyone for their help and suggestions.
I will raise a case with IB support as I don't understand why a user cannot reformat DATE1 or the inconsistencies with the format as Darin has identified.
I have been able to use other applications to send date in format DD MMM YYYY to excel and users have been able to re-format them without any issue, so I don't think this is an excel problem.
Using templates to deal with this isn't really practical, as the number and position of my date columns changes report by report and with each deployment...
AIX Server WebFocus 7.6.11
Posts: 10 | Location: Nottingham, UK | Registered: November 20, 2008