-
28 Jul 2008 7:20 AM #1
Issue with Date Field on Form
Issue with Date Field on Form
I am using Oracle. I have date data coming into a form through ajax in the following sample format: "4/30/2008". The date fields had been rendering fine with the data coming from the ajax until roughly one week ago. Now the date fields are empty, although data is in the json for it when the form loads. This is happening on all forms with a date field and their is a value in the json for that field name. Any idea what has happened?
Thanks for any assistance,
Dave
Sample JSON
Sample Date Field using "startedon" value from json aboveCode:{ success: true, data: {projectid: "2008072414204908500",projectdesc: "Standardization of the Calibration Procedure for the VMI Breaker Lifts ",projecttypeid: "2007111508112496803",statusid: "1",enteredon: "7/24/2008 2:20:56 PM",enteredby: "A205387",estsav: "0",estcost: "0",problem: "",objective: "To Improve Calibration Time",apid: "",capitalrequired: "0",startedon: "7/7/2008",assignedto: "A205387" }}
Code:var strDateShortFormat = 'Y M d'; var dtm_Start = new Ext.form.DateField( { id : 'PD7_' + strProject, name : 'startedon', allowBlank : true, width : 100, fieldLabel : 'Start Date', format : strDateShortFormat });dlbjr - David L. Bryant Jr.
Owner of
dlbjr Technology Consulting
Web2 System Developer & Consultant
Focused on C.I. - Six Sigma - Shingo - Lean Technologies
dlbjr.consulting@gmail.com
Owner of:
Attractive Graphics - "custom screen printing"
attractivegraphicscsp@gmail.com
-
28 Jul 2008 8:40 AM #2
-
28 Jul 2008 8:51 AM #3
Version 2.0
Version 2.0
Currently using Version 2.0. I just updated it to 2.1.
Having same issue with both versionsdlbjr - David L. Bryant Jr.
Owner of
dlbjr Technology Consulting
Web2 System Developer & Consultant
Focused on C.I. - Six Sigma - Shingo - Lean Technologies
dlbjr.consulting@gmail.com
Owner of:
Attractive Graphics - "custom screen printing"
attractivegraphicscsp@gmail.com
-
28 Jul 2008 8:57 AM #4
2.1 has a known bug with dates, and theres a fix posted somewhere...
-
29 Jul 2008 6:14 AM #5
The date string "7/7/2008" cannot be parsed by the format 'Y M d' can it? Read the docs.
You'd use "j/n/Y"Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
29 Jul 2008 6:17 AM #6
Animal - Thanks - Igot it working
Animal - Thanks - Igot it working
Animal,
I created a formatdate function in oracle to output any date for JSON formated as "07/24/2008". It fixed the issue. Thanks for the assistance. I found out the Oracle DBA changed the language format on the oracle box.
dlbjrdlbjr - David L. Bryant Jr.
Owner of
dlbjr Technology Consulting
Web2 System Developer & Consultant
Focused on C.I. - Six Sigma - Shingo - Lean Technologies
dlbjr.consulting@gmail.com
Owner of:
Attractive Graphics - "custom screen printing"
attractivegraphicscsp@gmail.com


Reply With Quote