Table View

From Planimate Knowledge Base
Jump to navigation Jump to search

Planimate tables can appear directly on panels along with objects in the model and paint buttons, making it possible to build comprehensive data input and display panels.

A number of types of table views exist, the most common being a grid of cells like the table editor. This view is described on this page. Other table view types include:

  • Cell Views for displaying/editing individual cells
  • Column Overlay Views which can graph multiple columns as multiple plots on one graph
  • Log Driven Views which create complex graphs using a number of pre-defined columns to control plotting position, colour, which overlay plot and other styles.
  • Gantt Views, optimised for drawing gantt charts including labels and linking lines
  • Train Graph Views, optimised for drawing line charts often used to visualise train motion between locations over time
  • Grid Views, a visualisation of a table as an array of icons or coloured pixels.

Basic Editing

A view of a table can be added to the current panel by selecting one of the options at the top of the View menubar in the Table Editor Window.

Multiple views of a given type can appear on a given panel so take care not to have a view covering another. They can be repositioned by dragging their title area or from the context menu.

Editing data in a table view is similar to editing in the table editor, however you can control which features are available using the Table View's Options and can take extreme control of the view's behaviour using click broadcasts. There are also additional graphics options for customising many colours in the view.

You can quickly access the original table for a view by double clicking on it.

Broadcasts

Certain interactions with Table Views can have Broadcasts associated with them, enabling the modeller to customise how the view responds when cells are clicked.

All View broadcasts are transmitted from the Scope of the Table, rather than the scope of the View itself.

Broadcast Name Description of Event

Cell Click Broadcast Transmitted when the user clicks on a cell to edit it, or after the user has edited a cell (with appropriate option set for the view).
After Sort Broadcast Transmitted when the user performs a sort of the Table (with appropriate option set in the Table Editor).
Scroll Broadcast Transmitted when the user scrolls the View of the Table.

Row Filters

Customised Column Views

Model Changes To Views

Customising

Selecting

Copy/Paste

Filtering

Properties

The Properties Flyout provides access to a number of aspects of the View,.

Property Description

  • Graphics Displays the Graphics Configuration Dialog which enables you to Set Border Style; Border Colour; Background Colour; Text Colour.
  • Position Use this option to reposition the View. Alternatively just drag it around.
  • Override Row Label Width This option enables the space reserved for row labels to be fixed at a constant value. If the value is set non zero, then space for "n" characters is always used.This overrides the Table Editor’s Row parameter which enables the "Minimum Row Label Width" space to be specified. Unlike this option, the view specific parameter will always be used even if the labels are longer than the space allowed for.


Visibility Control

The Run-Time visibility of a table view can be managed by setting up conditions in the condition editor.

You can make references to the values of a range of other attributes.

Generally, you will need to enforce a refresh of the Screen display via a “Force Repaint” routine operation in a change object before a hidden attribute view that should now become visible will be seen.