I am trying to set up a Webform and use the Webform MySQL Views to place the contect from a filled webform into a views calendar..
Does anybody have any tips or help?
This is the error I get,
The calendar_style style requires a Date argument.
The date argument date fields must be added to this query. You can exclude them if you do not want them displayed in the calendar.
Comments
Comment #1
calbert commentedAny updates, this would really be a huge help for me.
Comment #2
cafuego commentedThe patch in #1211192: Submission date database field should be unix timestamp (and now in the 6.x-dev releases) do this for the submitted field. It shouldn't be overly hard to do this for user-defined fields, provided they're defined as datetime.
Comment #3
cafuego commentedHowever, lets put that in 6.x-2.x and leave 6.x-1.x well enough alone.
Comment #4
cafuego commentedSadly dates are in fact stored as text, so this will require a views handler to interpret that text as a date. Not quite as straightforward as I'd hoped.
Comment #5
calbert commentedAny update cafuego ? I out of my league here getting a handler to interpret the text as date.
Comment #6
cafuego commentedNo, I haven't looked at it in any details yet, paid work comes first ;-)
Comment #7
cafuego commentedOk, I've found out how to properly expose webform date components to date_api, so they show up as fields. That currently works for the filter. However, it also means the field is getting rendered through Drupals format_date() and is not getting turned into a timestamp first. That leaves all date components as '1970-01-01' when displayed via views currently.
It's possible that date_api needs a patch to allow a date field to have a custom views field handler, and I think the chances of that patch getting in are probably 0 :-(