Home    Forums    Feature Requests    Beta Issues    SysAid Resources    Documentation    Support
Hello Guest,  Login   
        
DOWNLOAD FREE EDITION
    
     Recent Topics    Hottest Topics    Online Members    Member Listing    Advanced Search
Customize Entity Triggers  XML
Forum Index » Online Aid
 
Author Message
sivanm
SysAid Product Manager


Joined: 14/03/2010
Messages: 293
Offline

Customize

Entities

 

For each SysAid entity, you can create form events called triggers. This tab allows you to create the different triggers for the entity you've chosen.

 

 

There are three different trigger types: on load of the form, before saving the form, or after saving the form. Triggers allow you to automatically perform your own custom operations when using the different forms within SysAid.

 

On Load

These triggers will run the moment you load the form, and should be written in Java. As an example, a trigger for the service record entity could check to see if the SR due date has passed and create a popup notifying the administrator if this is the case.

 

Before Save

These triggers will run after you hit OK/Apply, but before the data is saved to the database. Use JavaScript for these triggers. Before Save triggers are useful for data validation, but can also be used to modify data that's been entered in the form before it's saved to the database. An example trigger of this type could look at integer fields and remove any commas that a user has entered into the number so that it will be saved correctly in the database (i.e. 2,000 would become 2000).

 

After Save

These triggers should be written in Java, and will perform an action after the data has already been saved in the database. An example for the service record entity would be creating a new task if the saved service record status = closed and the reopen counter = 0.

 

 

More information

Please consult our SysAid API Guide for more information about writing custom triggers.

disaster37
SysAider

SysAider from release 7.5 Pathfinder
Joined: 17/01/2011
Messages: 28
Offline

Hello,

I should to use On Load Trigger. Can you paste me a sample that you have already implented to view the right syntax please. Because they haven't any documentation about that.

(I am java coder, so no problem to understand your sample code).

Best Regards,
Sebastien Langoureaux
SA Consultant
SysAider

SysAider from release 6 Ecuador Pathfinder SysAid Certified
Joined: 06/07/2009
Messages: 40
Location: Ecuador
Offline

Hello! Did someone ever got an example or knows how this work??
I want to use the after save trigger, and would like to have some kind of help with the code... I'm not expert but I do understand java code.
sivanm
SysAid Product Manager


Joined: 14/03/2010
Messages: 293
Offline

Hi SA Consultant

I understand that you asked for information and examples of how the customs triggers work.
The following guide provides useful information for developers about the custom triggers and other SysAid API capabilities.
http://www.sysaid.com/help-page.htm?helpPageId=7655&edition=2

Thanks,
Sivan

This message was edited 1 time. Last update was at 11/06/2012 08:09:47

Forum Index » Online Aid
Go to:   
Help Desk Software
Free Help Desk Software
Free Asset Management Software
SysAid Helpdesk Software
Web Based Help Desk Software
SysAid Help Desk Forum
General IT Discussion Forum
SysAid CSS Customer Service Software
Customer Support Software
   SysAid Technologies Ltd.
   Toll-Free phone center (U.S.): 1-800-686-7047
   Offices - U.S.617-231-0124
   Israel:+972-3-533-3675
   Email:helpdesk@sysaid.com
   Optimized by SEO Israel
   SysAid logos and other SysAid Technologies marks
   are trademarks or registered trademarks of
   SysAid Technologies Ltd.
   All Rights Reserved by SysAid Technologies Ltd.
   2002-2011
   Live Support Hours
   07:00 AM - 09:30 PM (UK)
   03:00 AM - 05:30 PM (EDT)

   We provide worldwide services, and we do our best
   to match the working times of customers from
   different time zones.

   SysAid Help Desk Software and Asset Management Software
Privacy Policy © Terms Of Use