Actions

Commands

From VersaVision Support


Commands-Home-Btn.png

OVERVIEW

Commands are where customized items can be added that add functionality to the system.
Commands will differ by system. The command can be as simple as adding a value to a table to calculating OEE.
This page will concentrate on Viewing, Editing, Adding, Duplicating and Deleting a Command.
No coding will be discussed/explained, contact VersaCall Support for assistance.


NAVIGATION

Commands can be accessed via the Home page menu or the Commands icon under Applications.
Commands-Home.png


  Edit  |  Delete  |  Duplicate  |  Run  |  Export  

                    Return to Advanced                    


EDIT A COMMAND

On the Commands page there will be a list of all the Commands setup in the system.
Click on the 3 dot ellipsis in-line with the Command that needs to be Edited.
Commands-1.png

Select Edit from the pop-up menu.
Commands-2.png

The Edit (SQL or JavaScript) Command window will load.
The Command (SQL or JavaScript) will show in the black screen.
Commands-3.png
Commands-4.png

Select the Properties button to change the Name, Type and Description.
Commands-5.png

A Table Command will have a Timeout section in addition to the Name, Type and Description.
A JavaScript Command will only have the Name, Type and Description.
Commands-6.png
Commands-7.png

Close the Properties window by clicking on the "X" in the top right corner of the window.
Commands-8.png

Select the Parameters button to change the Name, Type and Description.
Commands-9.png

Parameter Properties will be the same for a Table Command or JavaScript Command.
Click in the Name or Description fields to edit.
Click on the down arrow in the Type field to change.
Commands-10.png

To remove a Parameter, click on the 3 dot menu.
Select Delete from the pop-up menu.
Commands-11.png
Commands-12.png

Click on the Add Parameter button to add a Parameter to the command.
Commands-13.png

Close the Parameters window by clicking on the "X" in the top right corner of the window.
Commands-14.png

To edit the code for a Command, click in any line or highlight a line. Change, Add or Remove code from the Command.
Please ensure important Commands that are operating correctly are not edited as it can cause issues.
Commands-15.png

Once all of the Edits have been made click on the Save button in the top right corner of the window.
Commands-16.png

To Close the Edit Command window click on the "X" next to the Save button.
Commands-17.png

If the Name, Command Type or Description was changed, the changes will be reflected in the Command List.
Commands-18.png


  Edit  |  Delete  |  Duplicate  |  Run  |  Export  

                    Return to Advanced                    


DELETE A COMMAND

Click on the 3 dot ellipsis in-line with the Command that needs to be removed.
Commands-1.png

Select Delete from the pop-up menu.
Commands-19.png

The Command will be removed from the system, there will not be any warning.
Commands-20.png


  Edit  |  Delete  |  Duplicate  |  Run  |  Export  

                    Return to Advanced                    


COPY A COMMAND

Click on the 3 dot ellipsis in-line with the Command that needs to be copied.
Commands-1.png

Select Duplicate from the pop-up menu.
Commands-21.png

The Properties window will load.
Change the Name of the Command.
Commands-22.png

Click on the "X" in the right corner of the Properties window.
Commands-23.png

Make any changes any other components of the Command.
When all changes have been made, click on the Save button.
Commands-24.png

Click on the "X" next to the Save button to close the New Command window.
Commands-25.png

The duplicated Command will show in the Commands list.
Commands-26.png


  Edit  |  Delete  |  Duplicate  |  Run  |  Export  

                    Return to Advanced                    


RUN A COMMAND

Click on the Run button in-line with the Command name.
Commands-27.png

A Run window will load requesting any Parameters that were setup for the Command.
Enter the appropriate information into the Parameter(s) field(s).
Commands-28.png

Once all Parameters have been addressed, click on the Run button in the bottom right corner of the window.
Commands-29.png

A Result field will show below the the Parameter field(s).
Depending on the type of Command being run, there may not be any result.
The total run time will show next to the Run button.
If there are errors in the SQL or JavaScript Code, an Error message will appear in the Result field.
Commands-30.png

Re-Run the Command by clicking the the Run button a second time.
To Close the window click on the "X" in the top right corner of the window.
Commands-31.png


  Edit  |  Delete  |  Duplicate  |  Run  |  Export  

                    Return to Advanced                    


EXPORT A SINGLE COMMAND

Click on the 3 dot ellipsis in-line with the Command that needs to be exported.
Commands-1.png

Select Export from the menu.
Commands-40.png

In most browsers, the user will see a Download pop-up in the top right corner of the window.
The name of the downloaded file (Command Name.json) will display.
Commands-41.png

File will be available in the location that has been setup to receive Downloaded files from the Web Browser.
For our example, the file was downloaded to the Downloads folder.
Commands-42.png


  Edit  |  Delete  |  Duplicate  |  Run  |  Export  

                    Return to Advanced                    


VC Footer.png
Follow Us On LinkedIn View our Blog