About    Download    Order    Support


InnPlanner Reservation Software Videos

About
Download
Order/Prices
Support/Contact
Partner Program
Press Room
Online Help


Recent News

InnPlanner 2010 Released
New faster database engine, more customization features, weekly tariffs, full multi-user work support and much more...

2010 Feb 10

InnPlanner 2010 RC1
InnPlanner 2010 Release Candidate 1 is ready for downloading and testing. You can download it from the "Downloads" section.

2010 Jan 14


Hotel Software Documentation

Script Designer

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. 

DescriptionHot Key
Get helpF1
Save changes and quitCtrl+S
Exit without savingCtrl+F4
Switch to one actionCtrl+F5
Hide/Show block of scriptF2
Add actionCtrl+A
Add variableCtrl+B
Add commentCtrl+T
Add if rule...Ctrl+I
Add else...Ctrl+E
Add else if rule...Ctrl+Y
Add if confirm(...)Ctrl+R
Edit current lineEnter*
Delete current lineDel*
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?

You have already take part in this poll.

Results:

Do not use: 27%

Access, Excel: 22%

Inn Planner: 18%

Other: 8%

Easy Inn Keeping: 5%

Auberge: 5%

ASSD: 3%

GuestMaster: 3%

iMagic HR: 3%

Smart FX: 1%

Excel: 1%

: 1%

EnSuite HR: 1%

Digitalrez: 1%

A1Res: 1%