EZReport Scripting - Plug-In Scripting

Creating a Plug-In or Add-On to EZReport is possible with use of a JavaScript based EZSurvey and EZReport scripting language. This is different than Server-Side Scripting because it controls the actions of EZReport report generation. Creating custom plug-ins allows Raosoft or customers to develop new features for EZReport. Custom plug-ins are an advanced development feature and Raosoft cannot always support use of third-party plug-ins. Working with plug-in scripting requires a moderate amount of programing experience in HTML and JavaScript.

Overview:

JSDB Objects:

JSDB is the engine that runs scripts in EZReport. For a list of objects that JSDB supports, but is not limited to, go to:
http://www.jsdb.org/ezreport.html

JavaScript:

In addition to JSDB objects, EZReport scripting supports standard JavaScript syntax. A guide for this syntax can be found at:
Netscape's Core JavaScript Guide 1.5 or
Netscape's Core JavaScript Reference 1.5

.PLUGIN:

File with the extension .plugin are located in the rsrc directory. You can add the resource object and call the .js file from here, where resourcename is any name you want to give your resource. For example:

<resource name=resourcename>
<form>
</form>
</resource>

Inside the resouce object is the form object. Inside the form object is where you can program a new window to control EZReport. You can use these objects:

Besides creating a window to control EZReport. You can create new functions with JavaScript that perform tasks in EZReport. EZReport supports JSDB objects and standard JavaScript, as mentioned above.

<script name=scriptname context="form" menu="1:Function Name">
/* JavaScript code goes here */
</script>

Where scriptname is the name you want to give your script, Function Name is the name of the function as seen in the EZReport menu, and 1 is the number of the menu item where you want to put the Function Name.

File Edit Questions Database Publish Analysis Utilities Help
0 1 2 3 4 5 6 7

Examples:

To create a single choice input field, you would write this, where inputname is the name you want to give the input item:

To create another page, you would write this, where pagetwo is the name of the new page:

This is an example of how to call the form resource in the .js file. Where resourcename is the name of the resource.

See also...