Nav view search

Navigation

Search

The Exchange

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

Back

Using the Professional Services Library: Edit

The Edit function in the Professional Services Library allows the user, using the built-in OpenURI MetaScript function, to easily navigate within Virtual Ticket without the need to remember OpenURI syntax, and opens the selected record in the editing mode.

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

//@version "2.0"  
//@include "database:PS.js"  
 
// Place inside a button's "Click Action" MetaScript  
// Options include id, type, new_window, form, group, parameters  
 
// Simple example - This will open the chosen Request in edit mode in a new Virtual Ticket browser  
PS.Edit( Field( 'Request_Number' ), "Requests" );  
 
// More complex example - This will open the chosen Request in edit mode in the same Virtual Ticket browser, and will use the "Request Entry" form  
PS.Edit( Field( 'Request_Number' ), "Requests", "no", "Request Entry" ); 

Last Modified:

2011-10-05

by

Ken Valley