MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

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

Viewed 4578 time(s), 2 post(s) 1/30/2012 12:53:22 PMby shawndg
shawndg

shawndg

1/30/2012 12:53:22 PM
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 ?

This content has not been rated yet. 
1871 Reputation 252 Total posts
pajo

pajo

1/30/2012 2:31:39 PM
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.
This content has not been rated yet. 
629 Reputation 83 Total posts