Print Page | Close Window

refresh one event

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=15067
Printed Date: 06 October 2024 at 7:35pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: refresh one event
Posted By: Ditte
Subject: refresh one event
Date Posted: 28 August 2009 at 7:52am
Hi,

Iīve changed the location, subject and also the body inside the calendar (with user defined dialog, not built-in dialog)

Set ComSubject   of hoEvent to sSubject    
Set Comlocation  of hoEvent to sLocation  
Set Combody      of hoEvent to sBody      

I can send
   Send ComRemoveAllEvents of hoDataProvider
   Send ComPopulate
   Send ComRedrawControl
 but Iīm afraid that it need a long time (if there are many events)  

Is there a way (I donīt found it) to refresh only the changed event? 

-------------
Regards



Dittmar



Product: Xtreme SuitePro (ActiveX) 13.4.2

Platform: Win XP

Language: Visual Dataflex 16.1



Replies:
Posted By: Fabian
Date Posted: 28 August 2009 at 11:18am

I would use:

CHANGE EVENTS DATA then
 
hoDataProvider.ChangeEvent hoEvent
COMPopulate
 
Thats - in my case - instant


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.3

Platform: Windows 7 (32bit)

Language: Visual Basic 6.0 / SP6


Posted By: Ditte
Date Posted: 29 August 2009 at 8:12am
Thanks,

it works fine.

I donīt look at CalendarDataProvider.


-------------
Regards



Dittmar



Product: Xtreme SuitePro (ActiveX) 13.4.2

Platform: Win XP

Language: Visual Dataflex 16.1


Posted By: mdoubson
Date Posted: 30 August 2009 at 2:34pm
This is the same action built-in dialog doing

-------------
Mark Doubson, Ph.D.


Posted By: Ditte
Date Posted: 31 August 2009 at 5:03pm
but I donīt use the built-in dialog.
Where can I find out what itīs doing?



-------------
Regards



Dittmar



Product: Xtreme SuitePro (ActiveX) 13.4.2

Platform: Win XP

Language: Visual Dataflex 16.1


Posted By: mdoubson
Date Posted: 31 August 2009 at 5:13pm
In my comment about built-in dialog I mean that it use same function call in OnOK handler:
.................
CXTPCalendarData* pData = m_ptrEditingEvent->GetDataProvider();

if (pData) {

...................
// Update event in data storage

CXTPCalendarControl::CUpdateContext updateContext(m_ptrControl, xtpCalendarUpdateLayout | xtpCalendarUpdateRedraw);

if (m_bAddEvent)

VERIFY(pData->AddEvent(m_ptrEditingEvent));

else

VERIFY(pData->ChangeEvent(m_ptrEditingEvent));

m_ptrControl->Populate();

}

}



-------------
Mark Doubson, Ph.D.



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