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
- To start the Command executor open the developer menu in censhare Web and select Toggle channel sniffer.
- Open the web browser developer console.
- In censhare Web, execute the action that contains the command that you want to analyze.
- In the web browser console, look for the command. For example, a query.LiveQuery command.
- Expand the payload data of the command.
- Right-click on the data JSON object and select Store object as global variable.
In the browser console, add a new line and add the following line to format the copied command as JSON object:
JAVAJSON.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.
- Copy the JSON object that displays in the browser console.
- At the bottom of the side navigation in censhare Web, click Execute custom command option to open the dialog.
- Paste the JSON object in the dialog field.
- 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.