Showing posts with label basics. Show all posts
Showing posts with label basics. Show all posts

3/03/2010

Action Options for User Scripts

When you create user defined scripts in ZonePro one of the important setup options is identifying the "Action" that the script is connected to. Basically this determines when the script runs. There are three main Action options. If you use the Screen action then the script runs as the screen is launched. If you want something to happen before the screen is displayed, this is Action option you want. You can also attach scripts to several common control buttons such as the Add, Close, Delete, Edit or Save buttons. Attaching a script to those buttons means the script will run when that button is clicked.
The third script option is to attach the script to the User Script button (the open book icon). This button appears on almost every screen in ZonePro. This button provides three opportunities for scripts depending on whether you click on it with the Left, Right, or Middle mouse buttons.

How to Add User Scripts

All of the scripts on this site are user defined scripts. These scripts can be added to your ZonePro system by copying the script text from any post and pasting it into the User Defined Scripts screen in either ZP 32 or ZP SQL. The User Defined Script screen is accessed from the first tab in the Maintenance Options section of ZonePro. When you create a new script in the User Defined Script screen you first indicate which Module and Screen the script is assigned to and then the Action that the script follows. All of these selections are made via drop-down boxes at the top of the User Defined Script screen. Each post should tell you the Module, Screen, and Action that the script was written for. You would duplicate these choices in the User Defined Scripts screen, click on the "New" button, and then paste the script you copied into the main scroll box on the screen. Use the Windows hot-keys and to copy and paste. The last step is to simply hit the "Save Script" button and you have just added new functionality to your ZonePro system.

Yet Another Blog!

I know, I know. How many blogs does one company need? At least three, apparently. The reason for this blog is a little different. Over the past couple of years I have attempted to keep track of ZonePro user script examples in PDF documents on our web site. The problem there is that it is hard to find the one you are looking for when you know you've written a script but can't remember when. The advantage of the blog format is that you can use labels to help locate topics. This will make it much easier to search for a script. On the sidebar of this page you'll see a list of labels. You can click on any label of interest and see every entry that has a matching label assigned. If I do this right, the blog format should be a great way of cataloging user scripts.