Page 1 of 1

Always show appointment in calendar

PostPosted: Mon Apr 09, 2007 7:22 pm
by RobertFrith
Does anyone have a simple way to always show appointments in the calendar?

At present depending upon whether you initiate an appointment by accessing the edit appointment mini window from a project record or from the calendar the show appointment button defaults to either off or on.

Thanks
Rob

PostPosted: Mon Apr 09, 2007 7:44 pm
by John Sindelar
A couple options...

You can edit the New Activity script (the one called from contacts and projects) so that the Preform Script "New Appointment..." part is called with slightly different parameters: add this...

& " ; Class = calendar"

... to the end of the existing parameter.

Another option is to just edit the auto enter definition for the field "ApptClass_k" in the appointments table. Change the auto enter definition from this:

Code: Select all
Lower (
SeedCode_RemoveExtraReturns (

If ( ApptProjectOverview_k = 1 ;

// #### If this is a project overview...

Substitute ( ApptClass_k ; "gantt" ; "" ) & ¶ & "gantt" ;

// #### ortherwise leave the class alone...

ApptClass_k

) // End IF
) // End CCRemoveExtraReturns
) // End Lower



to this:

Code: Select all
Lower (
SeedCode_RemoveExtraReturns (

Substitute (

If ( ApptProjectOverview_k = 1 ;

// #### If this is a project overview...

Substitute ( ApptClass_k ; "gantt" ; "" ) & ¶ & "gantt" ;

// #### ortherwise leave the class alone...

ApptClass_k

) // End IF

; "calendar" ; "" ) & ¶ & "calendar"

) // End CCRemoveExtraReturns
) // End Lower


... though this edit will make it impossible to pull something out of the calendar, so I like the script edit myself (it is also a hair faster).