Nav view search

Navigation

Search

The Exchange

The place to download pre-configured tickets, code snippets, and solutions

Back

Using the Professional Services Library: JM

The JM function in the Professional Services Library allows the user to easily navigate to Job Manager from within Virtual Ticket.

Note: This solution is optimized for Virtual Ticket Developer.

If you are using Workgroups DaVinci and are planning to use a Toolbox snippet not marked as DaVinci-compatible, please check with Support for possible compatibility issues before using.

The following script demonstrates the usage of JM in the Professional Services Library:

//@version "2.0"   
//@include "database:PS.js"   
 
/*  
Place inside a button's "Click Action" MetaScript  
Options include id, type
 
Additionally, if a charge or outside purchase is opened, you may pass the following parameters:
employee_number, department_code, cost_center_code, task_code, note, date, bill_classification
 
The following are the different types that may be used:
Estimates, Jobs, Customers, Invoices, New Job Recorder, New Job Charge, and New Outside Purchase
*/ 
 
// Simple example - This will open the Job in Job Manager   
PS.JM( Field( 'Job Number' ), "Jobs" );   
 
// More complex example - This will open the New Job Charge in Job Manager, and set the employee_number to 12345 
PS.JM( Field( 'Job Number' ), "New Job Charge", "12345" ); 

Last Modified:

2011-10-05

by

Ken Valley