Skip to main content
Skip table of contents

Command executor

The command executor lets you analyze the result of a certain command that is executed within a request from the web client.

Target groups

  • Solution developers
  • Solution administrators

Prerequisites

Permission to start the censhare Web developer mode.

Introduction

Click here to watch a demonstration ...

Usage

  1. To start the Command executor open the developer menu in censhare Web and select Toggle channel sniffer.
  2. Open the web browser developer console.
  3. In censhare Web, execute the action that contains the command that you want to analyze.
  4. In the web browser console, look for the command. For example, a query.LiveQuery command.
  5. Expand the payload data of the command.
  6. Right-click on the data JSON object and select Store object as global variable.
  7. In the browser console, add a new line and add the following line to format the copied command as JSON object:

    JAVA
    JSON.stringify([command_variable], null, 1)

    Replace the [command_variable] string with the variable of the copied command. You can find the variable name in the browser console. Usually, variables are called temp + an integer.

  8. Copy the JSON object that displays in the browser console.
  9. At the bottom of the side navigation in censhare Web, click Execute custom command option to open the dialog.
  10. Paste the JSON object in the dialog field.
  11. Click Execute to run command in censhare Web.

Result

The Execute custom command dialog shows the responses from the censhare Server. You can edit the command in the dialog and execute it again to see the result.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.