This second tutorial further describes some of the things that can be accomplished using Kaholo’s code environment and revisions feature.
By the end of this tutorial you will be able to develop dynamic maps, and either branch or roll back with map versioning.
This tutorial is a continuation of the previous tutorial “hello world” and builds off of the maps previously made.
Adding to the Hello World Map
- Access the Maps section of your dashboard and open the Hello World map.
- Select the Plugins pane from the task ribbon, then drag and drop a Command Line plugin onto the map.
- Click on the command line plugin, select the Details tab on the right action pane, and change the plugin name to Hello Code.
- Drag a line from the Hello Code plugin to the Start icon. This will enable the process to be executed in parallel to Hello World.
Adding a new action
- Click on the Add an Action tab from the right action pane, and click on “Add action.”
- Enter a name for the designated action, and then select the action method. For this example, the appropriate method is “execute command.”
- The following text fields will populate the action pane:
- Tick the checkbox for command and enter in the desired function.
- Implement the function in the code environment: function HelloCode() }
The return value from the code will be executed by the command line.
- Save and execute the map.
- View the execution results to review output.