CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Changing Field date format does not update DatePicker format string in Javascript for page.

Print topic Send  topic

Author Message
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.
View profile  Send private message
glerma

Posts: 56
Posted: 08/11/2009, 1:38 PM

Have you submitted this to Yes Software for evaluation?
View profile  Send private message
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.... :)
View profile  Send private message
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]
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.