Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You can use these existing blocks as template for your own blocks. Just insert them on an empty visualization page, modify them to your needs and create a new template.

Variables used in templates

There are predefined variable names that are replaced automatically when inserting a template. These variable names can be used as block variables and group variables – the values are exchanged for both variable types:

  • GATEWAY: the full item ID of the gateway. E.g.: NETx\Module\LaMPS\DALI\Demo_Wall\Floor1\Cor1\1.1.6 KNX DALI-Gateway

  • GATEWAY_NAME: the name of the gateway. E.g.: 1.1.6 KNX DALI-Gateway

  • GATEWAY_LOCATION: the location of the gateway in the item tree with gateway name. E.g.: Demo_Wall\Floor1\Cor1\1.1.6 KNX DALI-Gateway

  • LOCATION: the location of the gateway in the item tree without gateway name. E.g.: Demo_Wall\Floor1\Cor1

  • DEVICE_ID: the DALI device address. E.g: 2

  • DEVICE: the full item ID of the device. E.g.: NETx\Module\LaMPS\DALI\Demo_Wall\Floor1\Cor1\1.1.6 KNX DALI-Gateway\Device2

  • COLUMN_NR: the column number of the cell block

  • ROW_NR: the row number of the cell block

Array template

An array template may consist of the following block:

...

For each block, you can choose the following options:

  • not user used / remove: select this option if you do not need the block in your template.

  • no changes: if you modify an existing template, you can select this option is when you do not want to change this block.

  • new block: with this option you can select the elements of the block. This is done by clicking at the button Select the elements that you want to use in the block and do a right-click to change back to the template assistant dialog. The number of selected elements are shown in parenthesis.

After selecting all blocks, you can press the Ok button to save the changes. If existing blocks are overwritten, you must confirm that.

Variables used in array templates

There are predefined variable names that are replaced automatically when inserting a device template. These variable names can be used as block variables and group variables – the values are exchanged for both variable types:

  • GATEWAY: the full item ID of the gateway. E.g.: NETx\Module\LaMPS\DALI\Demo_Wall\Floor1\Cor1\1.1.6 KNX DALI-Gateway

  • GATEWAY_NAME: the name of the gateway. E.g.: 1.1.6 KNX DALI-Gateway

  • GATEWAY_LOCATION: the location of the gateway in the item tree with gateway name. E.g.: Demo_Wall\Floor1\Cor1\1.1.6 KNX DALI-Gateway

  • LOCATION: the location of the gateway in the item tree without gateway name. E.g.: Demo_Wall\Floor1\Cor1

  • DEVICE_ID: the DALI device address. E.g: 2

  • DEVICE: the full item ID of the device. E.g.: NETx\Module\LaMPS\DALI\Demo_Wall\Floor1\Cor1\1.1.6 KNX DALI-Gateway\Device2

  • COLUMN_NR: the column number of the cell block

  • ROW_NR: the row number of the cell block

...

Creating a new array template by using a NETx template

As an example, we will create a new device template that is based on the template NETx1. For that create a new visualization page and insert the blocks DEVICES_ARRAY_NETx1_CELL, DEVICES_ARRAY_NETx1_HEADER and DEVICES_ARRAY_NETx1_POPUP into the page. Important is that you always select “Leave variables in block”:

...

Afterwards, modify your elements that you would like to change. Use the predefined variable names are described above in Variables used in templates.

Then you have to create a new template. Open the template assistant, enter your new template name and set the option “Not used / remove” for the block FOOTER, POPUP2 and POPUP3:

...

Afterwards, click at the … button in the cell block row. Select the control elements and do a right-click:

...

Repeat this for the header block and the pop-up block. You will see the number of selected elements in the parenthesis.

...

Press Ok to save the template and close the template assistant.

Table template

A table template may consist of the following block:

  • Row: this block represents a single raw in the table. Each row represents a single element i.e. a single DALI device or DALI gateway. For each element, 1 row will be inserted in the table. This block is mandatory.

  • Header: this block is used as header of the table. It is inserted only once – independent of the amount of elements.

  • Footer: this block is used as footer for the table. It is inserted only once – independent of the amount of elements.

  • Popup: this is the main pop-up block that will be shown when the user clicks on the details button of the row. The block itself can contain multiple pop-up groups if you would like to use cascading pop-up groups. However, at least the group with name MAIN_POPUP must exist in this block.

  • Popup2: an optional second pop-up block

  • Popup3: an optional third pop-up block

Create a new template or to use an existing one, select the template assistant from the corresponding category.

...

Afterwards, the template assistant is started.

...

If you want to modify an existing template, you can select the template in the drop-down list. If you want to create a new one, just enter a name in the list.

Note

Please keep in mind that the existing templates NETx1, NETx2, … may be overwritten after a server update. If you want to change such a template, create a new one and use the existing elements from the library.

For each block, you can choose the following options:

  • not used / remove: select this option if you do not need the block in your template.

  • no changes: if you modify an existing template, you can select this option is when you do not want to change this block.

  • new block: with this option you can select the elements of the block. This is done by clicking at the button Select the elements that you want to use in the block and do a right-click to change back to the template assistant dialog. The number of selected elements are shown in parenthesis.

After selecting all blocks, you can press the Ok button to save the changes. If existing blocks are overwritten, you must confirm that.

Creating a new table template by using a NETx template

As an example, we will create a new device table template that is based on the template NETx1. For that create a new visualization page and insert the blocks DEVICES_ARRAYTABLE_NETx1_CELL, DEVICES_ARRAYTABLE_NETx1_HEADER and DEVICES_ARRAYTABLE_NETx1_POPUP into the page. Important is that you always select “Leave variables in block”:

...

Afterwards, modify your elements that you would like to change. Use the predefined variable names are described above in Variables used in array templates.

Then you have to create a new template. Open the template assistant, enter your new template name and set the option “Not used / remove” for the block POPUP2 and POPUP3:

...

Afterwards, click at the … button in the cell block row. Select the control elements and do a right-click:

...

Repeat this for the header block and the pop-up block. You will see the number of selected elements in the parenthesis.

...

Press Ok to save the template and close the template assistant.