Recent News
|
InnPlanner 2010 Released
New faster database engine, more customization features, weekly tariffs, full multi-user work support and much more...
| |
InnPlanner 2010 RC1
InnPlanner 2010 Release Candidate 1 is ready for downloading and testing. You can download it from the "Downloads" section.
|
|
|
Hotel Software Documentation
Script Designer
Introduction
By using Script Designer you can create a small program that will be
executed in response to certain actions (pressing a button, changing field
value, etc.).
This chapter describes script editor only. To find out which actions can
be used in scripts and the basics of scripting functionality, please see the
chapter on Scripting Basics.
Basic cases of using scripts
To get access to all database scripts, in "Designer" menu choose "Edit Database Scripts" option. A new script is to be assigned at the location it should be used. For example for a toolbar button, the script should be assigned at ToolBar Editor.
Interface
The Script Designer Window:

The window includes the following elements
- Tree-like list at the left part of the screen, which shows:
- The list of global and used in the edited script variables
- The list of database user functions
- If the script editor was opened from the Designer menu, this list allows opening for editing any database script (Browse tab).
- Main menu.
- Buttons for adding/deleting script lines.
- Main window for script editing.
Main Menu
- Menu "Script"
- Save Changes and Close - save the changes made to the script
and close the Script Designer.
- Exit without saving - exit the designer without saving the
changes.
- Close - close the script editor, if it was opened from the Designer menu.
- Menu "Debug" has script debugging instruments. See more details at Script Debugging. This menu option is available only if the script editor is opened from the Designers menu.
- Menu "Edit"
- Edit Line - edit the current line (for example, change the
rule for if, or parameters for action). You can also perform this command by double-clicking the script line.
- Hide/Show Block of Code - hide/show the block of code located between the if and end if statements.
- Cut - Cut selected lines from the script.
- Copy - Copy selected lines.
- Paste - Paste copied lines into the script.
- Delete - Delete selected lines from the script.
- Menu "Add Line" - use this menu as an alternative to buttons for
adding a new line to the script.
- Menu "User Functions"
- Insert... - add a User Function to the script
- Create New... - create a new User Function
- Modify Existed... - modifies an existing User Function
Know more about User Functions...
- Menu "Help" - open the help file that you are currently reading.
Hot Keys
When working with a script it is recommended to use hot keys. Hot key
combinations marked with * work only when the Script Designer window is
selected.
| Description | Hot Key |
| Get help | F1
| | Save changes and quit | Ctrl+S
| | Exit without saving | Ctrl+F4
| | Switch to one action | Ctrl+F5
| | Hide/Show block of script | F2
| | Add action | Ctrl+A
| | Add variable | Ctrl+B
| | Add comment | Ctrl+T
| | Add if rule... | Ctrl+I
| | Add else... | Ctrl+E
| | Add else if rule... | Ctrl+Y
| | Add if confirm(...) | Ctrl+R
| | Edit current line | Enter*
| | Delete current line | Del*
| | Move current line upper | [*
| | Delete current line lower | ]*
|
See Also:
Scripting Basics
Script Debugging
Using Variables
User Functions
Action Editor
List of actions
|
|
|
|
Today"s Poll
What software do use for your inn/b&b/hotel/etc?
|