Prior to apex2.3 we used the Date Picker item type for dates which has now been deprecated. We want to use the new Date Picker going forward.
We do have a requirement that means depending on the value of an application item we either want to show the date picker with English or French month and day names. (please don't ask why we need to do this)
We were achieving this using a dynamic action which fires this javascript
apex.jQuery.datepicker.regional[ "fr-CA" ] = { closeText: "Fermer",
prevText: "Précédent",nextText: "Suivant",currentText: "Aujourd''hui",
monthNames: [ "janvier", "février", "mars", "avril", "mai", "juin", "juillet", "aôut", "septembre", "octobre", "novembre", "décembre" ],
monthNamesShort: [ "janv", "févr", "mars", "avril", "mai", "juin", "juil", "aôut", "sept", "oct", "nov", "déc" ],
dayNames: [ "dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi" ],
dayNamesShort: [ "dim", "lun", "mar", "mer", "jeu", "ven", "sam" ],
dayNamesMin: [ "D", "L", "M", "M", "J", "V", "S" ],
weekHeader: "Sem.", firstDay: 0, isRTL: false, showMonthAfterYear: false, yearSuffix: "" };
apex.jQuery.datepicker.setDefaults(apex.jQuery.datepicker.regional['fr-CA']);jQuery("input.hasDatepicker").each(function(){jQuery.extend(apex.jQuery("#"+this.id).data("datepicker").settings,jQuery.datepicker.regional['fr-CA']);});
alert("'xxx'");
$( ".selector" ).datepicker({
dayNamesShort: [ "Dim", "Lun", "Mar", "Mer", "Jeu", "Ven", "Sam" ]
});
$.datepicker.setDefaults( $.datepicker.regional[ "fr" ] );
Now that we have moved to Apex 23.1.0 this no longer works.
Does anyone know how to achieve the same functionality?
Thanks