Print Page | Close Window

ActiveView the current data set

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=15216
Printed Date: 10 May 2024 at 3:47pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ActiveView the current data set
Posted By: omestephan
Subject: ActiveView the current data set
Date Posted: 21 September 2009 at 5:46am

We using the Calander Object in our Powerbuilder application. We want to retrieve only the events from de begin and end date from the current view. We using the follow code in the events ‘ViewChanged’ , ‘OptionsChanged’ , ‘TimeScaleChanged’ , ‘DataChanged’.

Only id_start and id_end is always 1 day and not the currect view set off days.

DATE id_start, id_end

id_start                               = DATE(ole_calendar.object.ActiveView.Days(0).Date)

id_end                 = DATE(ole_calendar.object.ActiveView.Days( ole_calendar.object.ActiveView.DaysCount - 1).Date)
IF (id_start <> ole_calendar.id_start OR id_end <> ole_calendar.id_end) THEN

Retrieve( id_start , id_end )

END IF



-------------
Xtreme SuitePro (ActiveX) 13.1.0
Windows Vista Ultimate (32bit) SP2
Powerbuilder Enterprise 11.5



Replies:
Posted By: mdoubson
Date Posted: 21 September 2009 at 11:08am
Please see the post - https://forum.codejock.com/forum_posts.asp?TID=12426&PN=1 - https://forum.codejock.com/forum_posts.asp?TID=12426&PN=1


-------------
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