Print Page | Close Window

Problem with ShowEditEvent

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=9804
Printed Date: 23 June 2024 at 2:26pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Problem with ShowEditEvent
Posted By: pauljaj
Subject: Problem with ShowEditEvent
Date Posted: 06 March 2008 at 1:44am

I'm successfully using the calendar as per all the base functionality e.g. add/edit/delete etc from a calendar.

I thought I'd then make a list view of certain events direct from the database which showed the Subject, Location, Start, End and RecurrenceState, storing the eventid in the list, kind of like the categories view in Outlook.
 
I then called the following code using the EventID from the database via the dataprovider using the following code to edit events:
 
Set objEvent = calMain.DataProvider.GetEvent(EventID)
 

Dim dlgCalendar As New CalendarDialogs

dlgCalendar.ParentHWND = ParentForm.hWnd
dlgCalendar.Calendar = calMain

dlgCalendar.ShowEditEvent objEvent

It almost works except when the event is a Master event for a recurrance pattern and then the form displays with the start date and end date visible even though the event has a recurrence pattern. If you click on the recurrance button, the correct recurrance pattern displays and whwn you click ok, the Start and End fields disappear on the Edit Event dialog. Kind of sounds like a bug??
 
Any suggestions would be appreciated. I'm sure I could use custom dialogs but happy just to use the built-in if I can...
 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net