Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - ActiveView the current data set
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ActiveView the current data set

 Post Reply Post Reply
Author
Message
omestephan View Drop Down
Newbie
Newbie


Joined: 21 September 2009
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote omestephan Quote  Post ReplyReply Direct Link To This Post Topic: ActiveView the current data set
    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
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 21 September 2009 at 11:08am
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.