Legacy users, Capesoft Replicate(tm) users, AutoInc or Unique Key Users

 

Legacy Users and anyone with Autoinc or Unique Keys other than the ABC (SysId type long) will have to do their own incrementing of any fields as necessary in the Recurring Scheduler and Recurring Reminder controls using the "before adding Record" embed.  ABC SysId fields that are longs, and have the Autoinc enabled, are handled automatically.

 

The update form will function normally when the "OK" or "cancel" buttons are used.  If you click on the "Schedule" or "Remove" buttons of the Recurring control, the control ignores the loaded record other than making a copy of the buffer, and changes the dates as instructed in the user input in the control, "Inserting" or "Deleting" matching file records starting with the "From Date" and going to the "Until Date".  It then closes the form without adding or changing the loaded record.

 

"No Weekends" checkbox works in conjunction with the "Every X Days" and will automatically schedule the appointment on the previous Friday if it falls on a Saturday, and the following Monday if it falls on a Sunday.

 

Tips and tricks if you need more control.  For instance if the data may have been changed by another window or process.

These statements can be used on gain focus, change tabs, etc as necessary.

 

All of the Calendar controls have an embed for setting up the original date, and an additional embed that fires whenever a new date is selected in the calendar.  See the embeds section for the calendar template in question.  You can use the calendars to control your processes, routines, etc this way.

 

All the rest of the templates have "Take Record Header", and/or "Take Record for the details used" equivalents to massage and filter the data, get data from other files, etc as you may need for additional functionality.

 

In addition to this, below are listed additional statements you may use to gain additional functionality from the templates.

 

All the templates other than the Active Calendar date selector type, are multi and are differentiated by the %ActiveTemplateInstance to tell each instance apart from each other.  This number is displayed within the parenthesis of the template name as displayed under the Extensions in the lower right hand Pane in the ide window.  The template instance is also displayed in the header for the prompts of the template you want to refer to starting with Ver 2.7.

 

BSTInstance

 

BSTHeader

 

This template Instance is used as a suffix to call routines to update the selected template.

This gives you access to the routines used in the templates as follows.

Example,  DO GetAppointments6

 

BSTBooking

On date change to reformat display

DO CreateFormatString%ActiveTemplateInstance

DO CreateFirstColumn%ActiveTemplateInstance

DO ClearColors%ActiveTemplateInstance

DO GetAppointments%ActiveTemplateInstance

To Reload(refresh) Data

BST:ForceRefresh%ActiveTemplateInstance = 1

DO GetAppointments%ActiveTemplateInstance

To Reload Resource Column and Refresh data.

BST:Done%ActiveTemplateInstance = 0

DO CreateFirstColumn%ActiveTemplateInstance

BST:ForceRefresh%ActiveTemplateInstance = 1

DO GetAppointments%ActiveTemplateInstance

 

 

BSTSched

To Reload(refresh) Data

DO GetAppointments%ActiveTemplateInstance

 

BSTMonthSched

To Reload(refresh) Data

DO GetAppointments%ActiveTemplateInstance

 

BST Wall Calendars

On date change to reformat display (this also calls Get Appointments)

DO CreateFormatStrings%ActiveTemplateInstance

To Reload(refresh) Data

DO GetAppointments%ActiveTemplateInstance

 

TimeLineDD

On date change to reformat display

DO CreateFormatString%ActiveTemplateInstance

DO CreateFirstColumn%ActiveTemplateInstance

DO DoColors%ActiveTemplateInstance

DO GetAppointments%ActiveTemplateInstance

To Reload(refresh) Data

BST:ForceRefresh%ActiveTemplateInstance = 1

DO GetAppointments%ActiveTemplateInstance

To Reload Resource Column and Refresh data.

BST:Done%ActiveTemplateInstance = 0

DO CreateFirstColumn%ActiveTemplateInstance

BST:ForceRefresh%ActiveTemplateInstance = 1

DO GetAppointments%ActiveTemplateInstance

 

TLGraph

On date change to reformat display

DO CreateFormatString%ActiveTemplateInstance

DO DrawGraph%ActiveTemplateInstance