How to Create an Activity Series

Root > 3. Customisation

How to Create an Activity Series


With a custom JavaScript function you can allow users to create an Activity Series. This allows users to create multiple activities from one click of a button. The following code should be placed in the Contact.html template in the <HEAD..<script language="JavaScript"> area (each schedule= activity should be on one line)-

function ActivitySeries() {

schedule=window.open('<#recordhistory raw=yes regarding="Auto record history <#date>" details="Web Demonstration" noshow=yes type="Meeting Held">','schedule',''); 
  

schedule=window.open('<#schedule raw=yes plusdays=3 time="11:00 AM" regarding="Auto scheduled activity <#date>" details="Auto scheduled details" noshow=yes timeless=no priority=medium type=meeting alarm=yes leadtime=5>','schedule',''); 
  

schedule=window.open('<#schedule raw=yes plusdays=9 time="12:00 PM" regarding="Auto scheduled activity <#date>" details="Auto scheduled details" noshow=yes timeless=no priority=high type=call alarm=yes leadtime=120>','schedule',''); 
  

schedule=window.open('<#schedule raw=yes plusdays=15 time="1:00 PM" regarding="Auto scheduled activity <#date>" details="Auto scheduled details" noshow=yes timeless=no priority=low type=todo alarm=yes leadtime=30>','schedule','');
 

The above code creates three activities. The first is a meeting set 3 days in the future. The second is a call set 9 days in the future. And the last is a to-do set 15 days in the future. You may add or remove additional Schedule= activities within the same function. The parameters that you may change are as follows-

plusdays= This is the amount of days in the future to schedule the activity.

time= This is the time of day to schedule the activity. AM or PM is needed.

regarding= This is the text to enter into the Regarding field. <#DATE> inserts the current date.

details= This is the text to enter into the Details field.

priority= Select from High, Medium, or Low.

type= Choose from Call, Meeting, or To-Do.

alarm= Yes or No to activate an alarm for this activity.

leadtime= The amount of time in minutes to activate the alarm ahead of the activity.

Once you have created the javaScript function, you will need to launch the function within the <BODY> of Contact.html. The following code can be used to launch the Activity Series from a button-

<a href=# onclick="javascript:ActivitySeries();"><img src="Images/traditional/schedule.gif" border=0></a>

Attached is a copy of Contact.html with an Activity Series added to be used as a reference.



Regional details are also available at http://www.wiredcontact.co.uk

Add Feedback