Focal Point
[CLOSED] Calendar control YMD instead of YYMD ???

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/3217062776

July 15, 2015, 12:07 PM
Hank W.
[CLOSED] Calendar control YMD instead of YYMD ???
I'm slightly stumped. I have a calendar control to pick a date. I have the "Date format in data source" chosen as 2015/01/15 YYMD, I have the "Send unformatted value" ticked.. so I'd expect 20150115 to be passed.

However, the calendar display field comes up as YMD (regardless of what you choose as your date format), so it shows 15/01/15 and 150115 gets passed.

I wouldn't want to create another Y2K bug, but am I missing a trick here or is ist just a "feature"?I'm on DevStudio 8006

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


Cheers,
H.

WebFOCUS 8.1.05M
Oracle 11g - DB2
RedHat
July 15, 2015, 01:30 PM
Francis Mariani
Because I still can I would look at the source code and verify that YYMD is in the GUI generated code. I've had inexplicable things happen with the calendar control (and other controls as well) and have sometimes modified the code manually (heavens forbid!).

Verify that the IBI attribute for the control is indeed YYMD (ibiformat="YYMD"). I would uncheck "Send unformatted value" to see what happens.

In the GUI world, sometimes the only solution is to delete the control and re-add it. Some people consider that a regular part of using the GUI, I don't.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
July 15, 2015, 01:45 PM
Hank W.
Going at the html then... indigestion tablets here I come Music

And works like a charm...

Funny that, it won't touch the ibiformat, otherwise ticking/unticking sends the 2015/01/15 or 20150115 just as expected.

Thanks Francis, I needed the sanity check.

This message has been edited. Last edited by: Hank W.,


Cheers,
H.

WebFOCUS 8.1.05M
Oracle 11g - DB2
RedHat
July 15, 2015, 02:34 PM
Francis Mariani
Please let me know if you had to edit the code to fix the format, because if you did, this is a b***** good reason why we need to edit the GUI generated HTML. Some people believe it is perfect when we know it is not. Cheers.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server