Print Page | Close Window

Don't want to show Event but reminder needed

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=12426
Printed Date: 22 December 2024 at 3:41am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Don't want to show Event but reminder needed
Posted By: karthiksp
Subject: Don't want to show Event but reminder needed
Date Posted: 13 October 2008 at 11:40am
All,
 
      We are using Active X Calendar Control for our PowerBuilder product. In our last release calendar control was great hit by our customers.
 
      As a enhancement request, they want to log the To-Do List for the users just to get reminders but not to show in calendar as it gets too crowded with the events.
 
   Is there a way in calendar control to create a event by not showing in the calendar but reminder to be poped up to the user.
 
Any help is greatly appreciated
 
Thanks
Karthik



Replies:
Posted By: Mr.Den
Date Posted: 13 October 2008 at 2:09pm
A visible flag for events so they could be hidden would be cool


Posted By: karthiksp
Date Posted: 13 October 2008 at 2:49pm
So there is no option in calendar control. So then how people are handling the To-Do list as like in outlook without showing in calendar by reminder getting popped up


Posted By: mdoubson
Date Posted: 12 July 2009 at 12:23am
I am working with PowerBulder integration now and recommend you to update to current 13.1 version and get after-released update here
https://forum.codejock.com/uploads/DemoVersion/CalendarControlUpdated.rar - https://forum.codejock.com/uploads/DemoVersion/CalendarControlUpdated.rar
E.g. it supported printpreview just clicking internal CalendarControl button and has many new features compare with 2008 version
 
See snaphots here
https://forum.codejock.com/uploads/DemoVersion/PowerBuilderDayView.jpg - https://forum.codejock.com/uploads/DemoVersion/PowerBuilderDayView.jpg
https://forum.codejock.com/uploads/DemoVersion/PowerBuilderWorkWeekView.jpg - https://forum.codejock.com/uploads/DemoVersion/PowerBuilderWorkWeekView.jpg
https://forum.codejock.com/uploads/DemoVersion/PowerBulderMonthView-EditEventWithBuiltInEditor.jpg - https://forum.codejock.com/uploads/DemoVersion/PowerBulderMonthView-EditEventWithBuiltInEditor.jpg
https://forum.codejock.com/uploads/DemoVersion/PowerBulderPrintPreview.jpg - https://forum.codejock.com/uploads/DemoVersion/PowerBulderPrintPreview.jpg
https://forum.codejock.com/uploads/DemoVersion/PowerBulderPrintPreviewFullScreen.jpg - https://forum.codejock.com/uploads/DemoVersion/PowerBulderPrintPreviewFullScreen.jpg

I can consider your idea to have event property Visible or have special Category or Importance value which Calendar will not show in all Views or in MonthView only if we will have enough clients who like to have such feature
 
Example of event for create or modify event using built-in editors:
event doubleclicked;
OleObject activeView
OleObject levent
OleObject hitTest
OleObject viewEvent
datastore lds
string ls_subject
long days
integer rc
levent = create OleObject
activeView= create OleObject
hitTest = create OleObject
activeView = Calendar.object.ActiveView
days = activeView.DaysCount
OlecalendarDialog = create OleObject
OlecalendarDialog.ConnectToNewObject("Codejock.CalendarDialogs.13.1.0")
OlecalendarDialog.Calendar(Calendar.object)
hitTest = activeView.HitTest ()
if isValid(hitTest) then
 viewEvent = hitTest.ViewEvent
 if isValid( viewEvent) then
  levent = viewEvent.Event()
  if IsValid(levent) then
    if OlecalendarDialog.ShowEditEvent(levent) then
      lds = create datastore
      lds.DataObject = 'd_events'
      lds.SetTransObject(SQLCA)
      rc = lds.InsertRow(0)
      lds.SetItem(rc,'Subject', levent.Subject )
      lds.SetItem(rc,'startdatetime', levent.StartTime)
      lds.SetItem(rc,'enddatetime', levent.EndTime)
      lds.SetItem(rc,'location', levent.Location)
      lds.SetItem(rc,'body', levent.Body)
      lds.update()
      destroy lds
   end if
  end if
 else 
   levent = Calendar.object.DataProvider.CreateEvent()
   levent.StartTime = hitTest .HitDateTime
   if OleCalendarDialog.ShowNewEvent2(levent) then
     lds.DataObject = 'd_events'
     lds.SetTransObject(SQLCA)
     rc = lds.InsertRow(0)
     lds.SetItem(rc,'Subject', levent.Subject )
     lds.SetItem(rc,'startdatetime', levent.StartTime)
     lds.SetItem(rc,'enddatetime', levent.EndTime)
     lds.SetItem(rc,'location', levent.Location)
     lds.SetItem(rc,'body', levent.Body)
     lds.update()
     destroy lds
     Calendar.object.DataProvider.AddEvent(levent)
  end if
 end if
end if
destroy OlecalendarDialog
destroy levent
destroy activeView
destroy hitTest
destroy viewEvent 
end event


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


Posted By: mdoubson
Date Posted: 17 July 2009 at 9:03pm
This is workspace archive with some instructions inside - How to setuo CJ CalendarControl ActiveX in PowerBuilder -
https://forum.codejock.com/uploads/DemoVersion/PowerBuilderCalendarDemo.rar  


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


Posted By: skiman
Date Posted: 22 July 2009 at 10:26am
Originally posted by mdoubson mdoubson wrote:

I can consider your idea to have event property Visible or have special Category or Importance value which Calendar will not show in all Views or in MonthView only if we will have enough clients who like to have such feature
 
Hi,
 
I started already a threat some time ago for a Hide property. This is the same question, it would be nice to have this feature.
 
Regards,
Chris.


-------------
ABO Service


Posted By: mdoubson
Date Posted: 30 July 2009 at 1:42pm
I add new event property - EventVisible
You can set it in PrePopulate function call based on your model logic
 
Private Sub CalendarControl_PrePopulate(ByVal ViewGroup As XtremeCalendarControl.CalendarViewGroup, ByVal Events As XtremeCalendarControl.CalendarEvents)
...................................
pEvent.EventVisible = False
...................................
 
Use fresh activex 13.1 upgrade from here -
https://forum.codejock.com/uploads/DemoVersion/CalendarControlUpdated.rar - https://forum.codejock.com/uploads/DemoVersion/CalendarControlUpdated.rar
unrar it on same place your official 13.1 located. Rename the same way as official filename use
No need to re-registrate as you already had it
 
I am interesting in your testing with hidden reminders - please post


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


Posted By: mdoubson
Date Posted: 18 September 2009 at 7:09pm
Recent publication in PBDJ

PowerBuilder: Article

Implement a Calendar Component in PowerBuilder Applications

Enhance the look of the calendars within your scheduling modules

By http://alonbaadani.sys-con.com/ - Alon Baadani
 
http://pbdj.sys-con.com/node/1112659 - http://pbdj.sys-con.com/node/1112659
 
Recent PB project here - https://forum.codejock.com/uploads/20090922_183822_Calendar_outloo.zip - uploads/20090922_183822_Calendar_outloo.zip
 
Recent beta-ocx 13.2 - here - https://forum.codejock.com/uploads/BetaOCX/CalendarBeta13-2.rar - https://forum.codejock.com/uploads/BetaOCX/CalendarBeta13-2.rar


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


Posted By: karthiksp
Date Posted: 02 March 2010 at 4:24pm

I couldn't test the scenario in time, since our production server was set to run in the old version.

 
Now I tried the same thing what you mentioned your email. When I ran the official setup of Codejock calendar
 
Codejock.Calendar.v13.1.0.ocx  Size was 2572KB with Timestamped 8/19/2009 3.28 PM
 
When I unzip the file what you attached, still the same size & timestamp, But Once I renamed as per your steps, I tried the Eventvisible in Add Event method, it is not working.
 
Still the event is shown in the calendar control.
 
Let us know, what else we need to do
 
Karthik



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