Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Date missing from grid view 03 Feb 2014 12:25 #12123

  • dyvel
  • dyvel's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
  • Posts: 200
  • Thank you received: 11
Hi

I've created 2 date fields for my table and added them to my collection view (grid) and on the form (edit) page.
When I add a date, it's not being displayed in the grid (all empty).

Formpage:


Grid:

Please Log in or Create an account to join the conversation.

Last edit: by dyvel.

Date missing from grid view 09 Feb 2014 12:38 #12165

Hi All,
Finally Back on deck after Summer Holidays...

I think i have a similar issue however i think i found the solution (well perhaps workaround)

For me it was that i did not set the default format of the date field when defining the field in table

- table field Default format "inherited"
- Defining the format in the grid did not seem to fix
- date field value was not displayed in an fly view after save

The fix for me was to define the date format in the table field

I have confirmed this by leaving one of my date fields with no default format
- where the date format is defined in the table field as "dd-mm-yyy" for example - displays in grid view
- where the date format is defined in the table field as "inherited" - does not display in the grid views

Hope it helps

Additionally
- i did see dates when a saved / overwritten as 1999-11-30
- mysteriously it seemed that the date was overwritten with 1999-11-30 when displayed in a fly view (this could have been my mistake managed to build a j1.6 and install on J3.2)

Please Log in or Create an account to join the conversation.

Date missing from grid view 09 Feb 2014 12:50 #12166

Hi Admin
see my project test date display

Please Log in or Create an account to join the conversation.

Date missing from grid view 09 Feb 2014 12:57 #12167

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
I think I know because I remember to have fixed this, but still ???

Well, in the XML form, what is the generated format ?

If you want a default format, do not set empty string.
Cook was generating empty format parameter.
Better to remove the property, than leaving it empty.

Can you check that ? I am very busy.
Good news are coming...in the corner.
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

Date missing from grid view 09 Feb 2014 13:02 #12169

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Or also in the grid ...
What is the dateFormat property ?
Try to remove it...

Dates are really more complex than it seems.
- Timezones,
- Formated strings recieved by the controller,
- Changed standard ('%Y-%m-%d %M:%S' becomed 'Y-m-d i:s')
- Difficulty to check a null date... 1900-00...

I faced all those problems in the past. Now Everyting is really quite stable...but still ???
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

Date missing from grid view 09 Feb 2014 13:44 #12170

No Worries
Will do some more digging on the issue for you tomorrow :)

Please Log in or Create an account to join the conversation.

Date missing from grid view 12 Feb 2014 20:39 #12190

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Fixed now.
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.066 seconds

Real time saver and great Component Builder tool ! I have been developing with J-Cook Pro Component Builder for several months now and can say with all honesty that this product/service is second to none. The product is feature rich and is being improved and added to all the time. Do yourself a favor if you need to build a Joomla! Component then you can do no wrong in trying the product. You will save on time and effort while being able to deliver your project on time. J-Cook pro does the hard work for you you then have the freedom to fully customise the end result for your own needs. 

One word: Awesome.
Edwardcox (JED)
         

Get Started