invantive documentationpart of invantive cloud
Invantive Support ForumsLog In / Sign Up

Editing a Plug-in

Next to every plug-in group and every tile on the Main Window sits an "edit" link. It opens the plug-in or the script for editing, so that a plug-in can be adjusted or built up without leaving the product. Editing writes back to the ipn file described in Plug-ins.

Two windows write the file with their "Save": the window of the plug-in, and the window of a script opened from its tile. The windows opened from the window of the plug-in hand their changes back to it, and nothing reaches the file until the plug-in itself is saved. A window closed in any other way than with "Save", "Close" in the "File" menu and Alt+F4 included, discards its changes.

Editing the Plug-in

The "edit" link next to the name of a group opens the properties of the plug-in as a whole.

The "General" window for editing a plug-in in Invantive Runtime, with fields for name, version, author and support.

The upper fields can be changed: the name, the version, the author and the company, the publication date, the documentation and the instructions, the copyright, the support conditions with an e-mail address and a website, the sort order which decides where the plug-in appears among the others, the compression level and the release notes.

The lower fields are filled in by the product and cannot be typed over: how often the plug-in has been saved, and by whom, on which device and when it was created and last saved.

The ribbon carries, next to "Save", the group "Details" with:

  • "Scripts": the scripts contained in this plug-in.
  • "Requirements": the drivers and the data containers the plug-in needs. They decide on which databases the plug-in appears.

Editing the Scripts

"Scripts" in the window of the plug-in lists its scripts in the order in which their tiles appear on the main window.

The "Scripts" window of a plug-in in Invantive Runtime, listing one script and its parameter count, with "Add" and "Edit".

The list shows the name of every script and the number of its parameters. A name held as a resource marker is shown translated here, as it is on the tile. The group "Scripts" of the ribbon maintains the list:

  • "Add" opens the window of a new script, which is added at the end of the list when that window is saved.
  • "Edit" opens the selected script; a double click on the script does the same.
  • "Delete" removes the selected script.
  • "Move Up" and "Move Down" move the selected script one place, and its tile with it.

"Edit", "Delete", "Move Up" and "Move Down" stay unavailable until a script has been chosen. "Save" hands the list back to the window of the plug-in.

Editing a Script

The "edit" link on a tile opens the script behind that tile. The same window opens from "Add" and "Edit" in the list of scripts; there, its "Save" hands the script back to the list instead of writing the file.

The "Hello world" script window of Invantive Runtime, with the fields "Name", "Statement", "Documentation", "Instructions".

Four fields make up a script:

  • "Name": what the tile reads.
  • "Statement": what is executed, in Invantive Script and Invantive UniversalSQL.
  • "Documentation": the sentence under the name on the tile, and the section "Documentation" in the run window.
  • "Instructions": the section "Instructions" in the run window.

A text may hold a resource marker of the form {res:<code>} instead of the text itself. Such a marker is replaced by the translation for the language of the user wherever the plug-in is presented, so on the tile, in the run window and in the title of the editing window. The fields of the editing windows show the marker itself, since that is the value being edited and typing over it with the translated text would replace a text which follows the language of the reader by one which no longer does.

Editing the Parameters

"Edit Parameters" on a script opens its parameters.

The "Parameters" window of a script in Invantive Runtime, with an empty list of parameters and the "Add" button.

The window is named after what it holds and the script it belongs to, as "Parameters - <script>". The parameters are shown as a list with the columns "Code", "Description", "Data Type", "Default Value" and "Documentation". "Add", "Edit" and "Delete" maintain them; "Edit" and "Delete" stay unavailable until a parameter has been chosen.

A parameter is asked of the person running the plug-in and is available to the statements of the script.

Editing the Requirements

"Requirements" in the window of the plug-in opens the drivers and the data containers which all have to be connected before the plug-in appears on the main window.

The "Requirements" window of a plug-in in Invantive Runtime, with lists of required drivers and required data containers.

There are two lists:

  • "Required Drivers" holds the names of drivers, such as ExactOnlineAll or Xaf32.
  • "Required Data Containers" holds the IDs of data containers.

A value is typed into the field above a list, or chosen there from those of the current connection, and "Add" puts it in the list. "Add" stays unavailable while the field is empty or holds a value which is in the list already. "Delete" removes the selected value. An empty list sets no requirement.

A value is compared exactly, upper and lower case included. "Not Connected" next to a value means that the current connection does not offer it, so that the plug-in is hidden while connected this way. "Save" hands the requirements back to the window of the plug-in.

A hidden plug-in hides its "edit" link as well. "Show Hidden Plug-ins" in the group "Plug-ins" of the Main Window brings it into view again, so that a mistake in its requirements can be corrected. Its scripts are not run while the requirements are not met.

Release Notes