myproxy
Posts: 23
|
| Posted: 04/21/2009, 11:12 PM |
|
A Warning for other users...
Not sure why CCS does not update Javascript in page after making change.
I still get mm/dd/yy even after making all dates are formatted to be mm/dd/yyyy under CCS.
I had to manually go into page's JS and change format over to be mm/dd/yyyy.
Keep this in mind when running into issue with date picker and a field, there is a disconnect with what CCS tells you and what ends up in code on page!
var task_DatePicker_task_start_date1 = new Object();
task_DatePicker_task_start_date1.format = "mm/dd/yyyy"; <<<<<<
---------------------------------------------------------------------------------------------------------------
This appears on the taskrecord page for sample CCS TaskManager example.
The field (task_start_date) has format and dbformat of mm/dd/yyyy.
The server connection has mm/dd/yyyy for date format.
The locale setting has mm/dd/yyyy for date format.
I have regened all files.
After selecting the date picker, the result is populated as 04/21/09 instead of 04/21/2009.
|
 |
 |
glerma
Posts: 56
|
| Posted: 08/11/2009, 1:38 PM |
|
Have you submitted this to Yes Software for evaluation?
|
 |
 |
damian
Posts: 838
|
| Posted: 08/11/2009, 3:09 PM |
|
did you try deleting the date picker component and re-adding?
it probably wont work now as CCS wont update your manually changed code.
_________________
if you found this post useful take the time to help someone else.... :)
|
 |
 |
tcb
Posts: 34
|
| Posted: 08/11/2009, 3:19 PM |
|
Also make sure you have the correct .js file included in CCS's HTML if you have separate Javascript pages turned on. If you happen to "Save As" a page, for example, the new page will have its own javascript file all nice and tidy, but the reference to the .js file in the new HTML is to the old one. This can lead to some extremely tedious tail-chasing if you don't notice it.
[Edited for clarity]
|
 |
 |
|