Method Exec

The method exec widget is used to execute a method for a specified thing.

Field

Description

Name

The name of the widget, shown at the top of the widget.

Thing def key (mandatory)

The thing definition that has the method to be executed.

Thing key

You may optionally specify the thing key of the thing that owns the method that will be executed. If specified here, it cannot be overridden or inherited from the dashboard.

Method

The method to execute.

Text

The text to display on the button.

Fire and forget

This option allows you to prefill the button parameters to pass to the method. Selecting this option runs the method without a pop-up. Any response from the method is ignored.

Font size

The size of the text on the button.

Background color

The background color of the button.

Border color

The border color of the button.

Text color

The color of the text on the button.

Button width

The width of the button.

  • Normal  displays a button that scales to the size of the text.

  • Fill widget causes the button to be as wide as the widget.

Show border

If the widget should have a border around it.

  • Clicking the button does one of two things: 
    • executes the method with the parameters preset with the Fire and forget option.

    • displays a window to specify parameters to pass to the method

  • The parameters shown in the window depend on the method chosen.

  • Clicking Execute executes the method with the specified parameters.

  • The results of the method execution appear in the Output text box.