Mono Support Monox - MonoX_4_7_40_3323 - Problems with custom webpart built of calander. 

Viewed 9544 time(s), 2 post(s), 1/30/2012 12:53:22 PM - by shawndg
1/30/2012 12:53:22 PM
1871 Reputation 252 Total posts

Hi guys,

some time ago, we created a web part based of the MonoX web part to allow us to change the listing order by of the calendar web part.

simple view..
selection in our calender.. This broke because the
SD.LLBLGen.Pro.ORMSupportClasses; appears to have changed =/

The following code is broken..
filter.PredicateExpression.Add(CalendarEventFields.CalendarId ==
this.CalendarId);

Inside the MonoSoftware.MonoX.ModuleGallery.EventSimpleView
There is the property of CalendarId but inside
MonoSoftware.MonoX.DAL.HelperClasses - CalendarEventFields
There is no longer a CalendarId field.. there is only a ID which don't
seem to work the same way..

Any idea how to fix this ?

1
1/30/2012 2:31:39 PM
629 Reputation 83 Total posts

Hi,

yes we did change calendar system, so that one event can be attached to more calendars. So we had to add table for many to many relation, therefor CalendarId field is no longer on event entity. You need to change your filter code like this

filter.Relations.Add(CalendarEventEntity.Relations.CalendarEventEntryEntityUsingCalendarEventId);
filter.PredicateExpression.Add(CalendarEventEntryFields.CalendarId == this.CalendarId);

this should fix error you get.

2
This is a demo site for MonoX. Please visit Mono Software for more info.