calendar current month issue

A place for users and developers of the Xataface to discuss and receive support.

calendar current month issue

Postby fabiofromfrance » Thu Feb 25, 2010 6:53 am

I am trying the calendar module and found following issue.

When creating an event for the current month, it appears on the list view but not on the calendar. I have done several test and I narrowed it down to current month only. If event appears before or after current month then it is showing up in the calendar tab view.

also it seems not to pick up the event.category =1 ... not sure how this should show up but don't the it in the calendar view

Anyone else having same issue? I am on GMT+1 timezone so not sure if this could be an issue as I saw some issue related to this with calendar.

Thankyou

Fabrice,

this is my setup
fields.ini
Code: Select all
[rdv_date]
  event.date=1
  event.start=1
   widget:label = "Date et Heure Début"

[location]
   event.location = 1
   widget:label = "Lieu du rendez-vous"

[category]
   event.category = 1
   widget:label = "Type de rendez-vous"
fabiofromfrance
 
Posts: 14
Joined: Mon Feb 15, 2010 3:03 pm

Re: calendar current month issue

Postby shannah » Thu Feb 25, 2010 5:45 pm

Yes... See this thread for solution (it involves getting latest version of some files from SVN:
viewtopic.php?f=4&t=5173&p=25318&hilit=Calendar
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: calendar current month issue

Postby fabiofromfrance » Fri Feb 26, 2010 2:02 am

Stev,
I have put dfCalendar-src.js and dfCalendar.js version 1731 from your svn web site but still same issue. I cannot view an event within current month in the calendar view tab. I have also noticed a strange behaviour. Let say I have an event in March 22nd, and I do view it in the calendar. If I create a new event in March like March 25th, and then click on the calendar tab, all March event disappear ... I need to go back to list view, click on show all and then go back to calendar and view March month to see all event ... I think there is a refresh issue here or a caching pb. I am guessing that calendar doesn't go back to mySql table each time we click on it to retrieve latest data?

For the current month issue, I really don't know but today I am still not able to view any event for February in the calendar view even though these events are in the list view and also in the mySql db ... I will see what's happen next week since we would be in March ... I hope my march event would still be there.

Anyone else got that issue?

Fabrice
fabiofromfrance
 
Posts: 14
Joined: Mon Feb 15, 2010 3:03 pm

Re: calendar current month issue

Postby strast » Fri Feb 26, 2010 8:00 pm

I have seen the same behavior, Fabrice.

When you view a record from the calendar, then return to the calendar, the record you just viewed is the only one in the select list so is the only one you see on the calendar.

I fixed it by adding the line: url="{$site_href}?-action=calendar&-table=reservations" to the calendar override in the file
tables/reservations/actions.ini. This will strip the record ID from the URL when you click the Calendar tab.
NOTE: My calendar table is named RESERVATIONS. Be sure to use your own table name!

From my actions.ini
Code: Select all

[calendar > calendar]
    ;;Turn on the calendar tab
    condition = "true"
    ;;Ensure all records are displayed
    url = "{$site_href}?-action=calendar&-table=reservations"


--Steve S.
strast
 
Posts: 29
Joined: Thu Feb 05, 2009 6:14 pm

Re: calendar current month issue

Postby shannah » Fri Feb 26, 2010 11:11 pm

Good tip Steve,

The reason for this behavior is because after adding a new record, Xataface sets the query to only show the record added (is this the best behavior? perhaps not). And the calendar action obeys the current query. (i.e. if you do a find then switch between list view and calendar view, they both respect the search results and only show those records that were found by the current query). Clicking "Show all" then back to calendar would show the rest.

The fact that both of you have raised this as an issue that causes confusion means that perhaps this behavior needs some tweaking.

-Steve
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 44 guests

Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved