Skip to content

Application examples on node properties

Some examples have been described below to explain the dashboard node properties.

Message input passes to output

Let us consider a simple example considering the switch node.

To pass the message input to the output using switch node, follow these steps:

  1. From the node palette, drag and drop the following nodes to the working area.

    • Inject node
    • Switch node
    • Debug node
  2. Connect the nodes in a flow as shown below:

    timestamp switch

  3. Double click on the inject node to edit the properties. For more information, refer to Editing nodes.

  4. Double click on the switch node to edit the properties.

    • In the "Group" section, you can select any one of the following options from the dropdown menu. To edit the "Group" section, click dot.
    • Select the image "Size".
    • Enter the "Label" as "Switch".
    • In the "Icon" section, you can select any one of the following options from the dropdown menu.
    • Check the box of "If msg arrives on input, pass through to output".
    • In the "On Payload" and "Off Payload" sections, you can select any one of the following options from the dropdown menu.
    • Click "Done".
  5. Save and execute the flow.

The "If msg arrives on input, pass through to output:" check box is selected: The output will be displayed in the debug tab depending on the toggling of the switch in the dashboard window browser.

Check box is selected

The "If msg arrives on input, pass through to output:" check box is not selected: The output will not be displayed in the debug tab when you toggle the switch in the dashboard window browser.

Check box is not selected

Flows on usage of a single and multiple browsers

A function is defined which generates today's date. To differentiate the single and multiple browser concept, follow these steps:

  1. From the node palette, drag and drop the following nodes to the working area.

    • Button node
    • Function node
    • Text node
  2. Connect the nodes in a flow as shown below:

    Display info

  3. Double click on the text node to edit the properties. Check box of the last node (text node) from the given flow:

    Edit text node

  4. Clear the "only one browser" check box of the last node (text node) from the given flow:

    Edit text node1

  5. Open the dashboard from the menu more-option icon.

  6. Open two dashboard browsers to compare the flows.

The "Only one browser" check box is selected: When you click the button (click to display information) node in the first browser, you get the output only for the clicked respective browser. You have to click the button node of the other browser separately to get its output.

One browser

Note

The date and time display has seconds difference in time because the buttons in both the browsers were clicked individually.

The "Only one browser" check box is not selected: When you click the button (click to display information) node in any browser, output of all the opened browsers will be displayed simultaneously.

One browser1

Here, the date and time display has no time difference because only one button click in any of the browsers displayed the output at the same time.

Configure size

Considering the size of dashboard nodes in "Example 2", by default the button node size is set to "auto". To configure the button node to different size, open properties and select the size to different number, for example "3x2" as shown below:

Configure size

The size of the button will be changed and the button will be displayed with the size set in the properties.

Size button


Last update: August 6, 2024