19 Map navigation tree

Description

These parameters and the possible property values for the respective dashboard widget field objects allow to configure the Map navigation tree widget in dashboard.create and dashboard.update methods.

Widget fields properties are not validated during the creation or update of a dashboard. This allows users to modify built-in widgets and create custom widgets, but also introduces the risk of creating or updating widgets incorrectly. To ensure the successful creation or update of the Map navigation tree widget, please refer to the parameter behavior outlined in the tables below.

Parameters

The following parameters are supported for the Map navigation tree widget.

Parameter type name value
Refresh interval 0 rf_rate 0 - No refresh;
10 - 10 seconds;
30 - 30 seconds;
60 - 1 minute;
120 - 2 minutes;
600 - 10 minutes;
900 - (default) 15 minutes.
Show unavailable maps 1 show_unavailable 0 - (default) Disabled;
1 - Enabled.
Reference 1 reference Any string value consisting of 5 characters (e.g., ABCDE or JBPNL). This value must be unique within the dashboard to which the widget belongs.

Parameter behavior:
- required

The following parameters are supported for configuring map navigation tree elements.

Parameter type name value
Name 1 navtree.1.name Any string value.

Note: The number in the property name sets the element number.
Linked map 8 navtree.1.sysmapid Map ID.

Note: The number in the property name references the element to which the map is linked.
Parameters for creating element hierarchy 0 navtree.1.parent Parent element number.

Note: The number in the property name references the child element. The property value references the parent element.
0 navtree.1.order Element position in the map navigation tree.

Note: The number in the property name references the element number. The property value references the element position in the map navigation tree. Parent element position is determined within the whole map navigation tree. Child element position is determined within the parent element.

Examples

The following examples aim to only describe the configuration of the dashboard widget field objects for the Map navigation tree widget. For more information on configuring a dashboard, see dashboard.create.

Configuring a Map navigation tree widget

Configure a Map navigation tree widget that displays the following map navigation tree:

  • Element A
    • Element A1
    • Element A2
  • Element B
    • Element B1 (contains linked map "1" that can be displayed in a linked Map widget)
    • Element B2
  • Element C

Request:

{
           "jsonrpc": "2.0",
           "method": "dashboard.create",
           "params": {
               "name": "My dashboard",
               "display_period": 30,
               "auto_start": 1,
               "pages": [
                   {
                       "widgets": [
                           {
                               "type": "navtree",
                               "name": "Map navigation tree",
                               "x": 0,
                               "y": 0,
                               "width": 18,
                               "height": 5,
                               "view_mode": 0,
                               "fields": [
                                   {
                                       "type": 1,
                                       "name": "navtree.1.name",
                                       "value": "Element A"
                                   },
                                   {
                                       "type": 1,
                                       "name": "navtree.2.name",
                                       "value": "Element B"
                                   },
                                   {
                                       "type": 1,
                                       "name": "navtree.3.name",
                                       "value": "Element C"
                                   },
                                   {
                                       "type": 1,
                                       "name": "navtree.4.name",
                                       "value": "Element A1"
                                   },
                                   {
                                       "type": 1,
                                       "name": "navtree.5.name",
                                       "value": "Element A2"
                                   },
                                   {
                                       "type": 1,
                                       "name": "navtree.6.name",
                                       "value": "Element B1"
                                   },
                                   {
                                       "type": 1,
                                       "name": "navtree.7.name",
                                       "value": "Element B2"
                                   },
                                   {
                                       "type": 0,
                                       "name": "navtree.4.parent",
                                       "value": 1
                                   },
                                   {
                                       "type": 0,
                                       "name": "navtree.5.parent",
                                       "value": 1
                                   },
                                   {
                                       "type": 0,
                                       "name": "navtree.6.parent",
                                       "value": 2
                                   },
                                   {
                                       "type": 0,
                                       "name": "navtree.7.parent",
                                       "value": 2
                                   },
                                   {
                                       "type": 0,
                                       "name": "navtree.1.order",
                                       "value": 1
                                   },
                                   {
                                       "type": 0,
                                       "name": "navtree.2.order",
                                       "value": 2
                                   },
                                   {
                                       "type": 0,
                                       "name": "navtree.3.order",
                                       "value": 3
                                   },
                                   {
                                       "type": 0,
                                       "name": "navtree.4.order",
                                       "value": 1
                                   },
                                   {
                                       "type": 0,
                                       "name": "navtree.5.order",
                                       "value": 2
                                   },
                                   {
                                       "type": 0,
                                       "name": "navtree.6.order",
                                       "value": 1
                                   },
                                   {
                                       "type": 0,
                                       "name": "navtree.7.order",
                                       "value": 2
                                   },
                                   {
                                       "type": 8,
                                       "name": "navtree.6.sysmapid",
                                       "value": 1
                                   },
                                   {
                                       "type": 1,
                                       "name": "reference",
                                       "value": "HJQXF"
                                   }
                               ]
                           }
                       ]
                   }
               ],
               "userGroups": [
                   {
                       "usrgrpid": 7,
                       "permission": 2
                   }
               ],
               "users": [
                   {
                       "userid": 1,
                       "permission": 3
                   }
               ]
           },
           "id": 1
       }

Response:

{
           "jsonrpc": "2.0",
           "result": {
               "dashboardids": [
                   "3"
               ]
           },
           "id": 1
       }

See also