|
| Examples |
|
|
|
Hello WorldCopy this into the Plugin PHP Script area. echo "Hello world"; Click on the Run/Test button. You should see Hello world displayed in the console area. Now include the plugin::debug() funciton to see debug informaiton and a list of data that is available to use in your plugins.
Click on the Run/Test button. You will now see the debugger pop-up window. The Input section contains values that you can copy and paste into your plugin. Using Supplied ValuesThere is a PHP array , $p, made available to all plugins. This array will contain data and document information that can be used by the plugins. Use the plugin::debug() function to see the $p array contents. Here is an example plugin that uses some of the supplied values from the debugger pop-up and displays them in a pop-up message.
Click on the Run/Test button.
Populate a Pick List
echo "Populating pick list : ".$p['plugin']['params']['selection_code']."\n"; // Array of pick list (selection) contents.
More Examples ....Download and import these into your plugin workbench. There you can modify and experiment with these examples. Hello World PHP Gtk : How to open a window. Message of the Day : Display a message to all users when they first start the RocketDMS program. Simple Form : Pop-up window with a form to get user input. Restrict Folders : Illustrates how to restrict the running of plugins to certain document store folders. Calculator in Toolbar : User selects their own calculator program. Calculator tool added to document list toolbar.
|
| Last Updated on Friday, 11 November 2011 14:29 |