Focal Point
European notation for the HTML Date Picker

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

March 15, 2007, 08:27 AM
<1-0-Ed>
European notation for the HTML Date Picker
Hello all,

I'm new to the Focal Point forum (well this is my first post anyway Smiler ) so please excuse me if I haven't posted this question at the right location or if I'm asking a question that has already been answered here...

My problem is as follows:

The date picker / calendar control in the HTML layout painter that is used by default for DATE variables when creating an HTML page for a FEX isn't giving me the ability to select the correct notation/output. What I'm looking for is a DMYY output like so: D-M-YY (13-01-2007). The options only allow me to use 13/01/2007.

Any ideas? (other than editting the dyncalendar.js file)

Kind regards,
Adrian.

This message has been edited. Last edited by: <1-0-Ed>,
March 15, 2007, 11:08 AM
Alan B
Short answer Adrian, is no.

There are only certain formats set up.

However, rather than taking a sledge hammer to it, because I think you would have to change dyncalendar and calendarInit, is just create your own function with a replace() (of / to -) in it in your HTML code and run that from dyncalendar_hideLayer. That way you run less risk of problems.


Alan.
WF 7.705/8.007
March 15, 2007, 01:54 PM
Leah
Does it not work for your selection. Just curious, we have DB2 dates which in the world of DB2 sql woul want yyyy-mm-dd. When I set up the calendar on a report I selected the smart date format yymd and the calendar displays it as month/day/year as I recall. Had to remove the calendar as it wouldn't work in FIREFOX, so I don't have the example any more.


Leah
March 15, 2007, 02:52 PM
Alan B
Leah
It's how you want the date displayed on the form, some users, mine at least, can be a bit fussy and the basic diplay options are limited, so I use a bit of js to change it how I want.

However the calendar does work in Firefox now in 7.1.


Alan.
WF 7.705/8.007
March 15, 2007, 03:00 PM
FrankDutch
Adrian

It might be a good suggestion to ask this to the WebFocus designers.
It would be better if this function is depends on the regional settings of the users computer, which can be different within one company.

Frank




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

March 15, 2007, 03:24 PM
Alan B
Very true Frank

Whilst I can cope with the plain HTML, UA has the same limited set of formats and it is a real pain to do anything with them.

Even worse, some date formats, that are deemed acceptable, will cause an error in the IB js, leaving you to have to null the date in the js if the user wants to change it.


Alan.
WF 7.705/8.007
March 16, 2007, 09:36 AM
AlexU
Changing the .js is not a good idea since you would then have to make sure that you modify it every time you upgrade. A quick solution is to take whatever format you pick in the calendar and convert it in your fex with an EDIT function.

-SET &DTB = EDIT(&DOB,'$$$$$99$$$') ||'-'|| EDIT(&DOB,'$$$$$$$$99')||'-'|| EDIT(&DOB,'9999$$$$$$');


WF 7703M, XP/Win7, MRE, RC, BID, PMF, HTML, PDF, Excel 2000/7/10