Using a Web Manipulator via Explicit Parameters

This topic describes how to call a REST API on demand using a web manipulator via explicit parameters.

To call a REST API on demand using a web manipulator via explicit parameters:

  1. Open GraphWorX in the configuration mode (default).

  2. On the Dynamics ribbon, select Data Entry, and then drag the mouse diagonally across the canvas to make a rectangle for inserting the control. The data entry is added to the screen and in the Dynamics pane on the right, a property grid with a preselected DataSource box is displayed.

  3. In Data Source, click to open Data Browser.
  4. Go to Data Connectivity > Web Services, expand the desired web method (JsonPlaceholder) and web manipulator (CreatePost), select the desired tag (@@Execute), and then click OK.

  5. Add other data entry controls for parameters of the web manipulator.

    1. Add a new data entry to the canvas, and then click in the Data Source box in the right pane.
    2. In the Data Browser dialog, go to Data Connectivity > Web Services, expand the desired web method (JsonPlaceholder) and web manipulator (CreatePost).
    3. Expand the Parameters folder, select the desired parameter (@title), and then click OK.
    4. Repeat to add multiple parameters.
  6. In the upper right corner of the GraphWorX screen, click , or press CTRL+M. GraphWorX switches to the runtime mode. The data entry for the @@Execute tag displays 0.00. The other data entries display the parameters' default values.
  7. Select each parameter's data entry, write the desired parameter value, and press Enter. Then select the data entry for the @@Execute tag, write 1, and press Enter. The web manipulator is executed with the parameter values specified in the data entries. A success message is displayed in the status bar, and the data entry automatically reverts to its value of 0.00.

    The parameter values that you enter in the data entry controls override the values specified in the @@Execute tag. If there is no data entry for a parameter, the value specified in the @@Execute tag is used.