# Command reference

Overview of commands and main functionality

# Understanding commands

Commands are specified in the **command** parameter when calling the **main** servlet

```
https://acme.com/TempusServa/main?command=index
```

The core commands are

- index
- many (list)
- item (edit)
- new

View commands can also be used in [Integration/Content\_source](https://wiki.tsnocode.com/index.php?title=Integration/Content_source "Integration/Content source")

# Command reference

ARTICLE IS DRAFT / UNDER DEVELOPMENT

### <span class="mw-headline" id="bkmrk-navigation-1">Navigation</span>

<table id="bkmrk-command-function-req"><tbody><tr><th>command</th><th>function</th><th>required</th><th>optional</th></tr><tr><td>&lt;none&gt;</td><td>Default command</td><td> </td><td> </td></tr><tr><td>index</td><td>Nested accordion list of all solutions</td><td> </td><td> </td></tr><tr><td>board</td><td>Display default dashboard</td><td> </td><td>Dashboard</td></tr></tbody></table>

### <span class="mw-headline" id="bkmrk-single-item-1">Single item</span>

<table id="bkmrk-command-function-req-1"><tbody><tr><th>command</th><th>function</th><th>required</th><th>optional</th></tr><tr><td>show</td><td>Open record in display mode</td><td>SagID DataID</td><td> </td></tr><tr><td>edit</td><td>Open record in edit mode</td><td>SagID DataID</td><td> </td></tr><tr><td>new</td><td>Create new record in edit mode</td><td>SagID DataID</td><td> </td></tr><tr><td>save</td><td>Post changes to data</td><td>SagID DataID</td><td> </td></tr><tr><td>export</td><td>Display default dashboard</td><td>SagID DataID</td><td> </td></tr></tbody></table>

### <span class="mw-headline" id="bkmrk-single-item-related--1">Single item related data</span>

<table id="bkmrk-command-function-req-2"><tbody><tr><th>command</th><th>function</th><th>required</th><th>optional</th></tr><tr><td>measure</td><td>Summary of time usage on this item</td><td>SagID DataID</td><td> </td></tr><tr><td>status</td><td>Timeline of status changes</td><td>SagID DataID</td><td> </td></tr><tr><td>access</td><td>List of access to this item</td><td>SagID DataID</td><td> </td></tr><tr><td>revision</td><td>List of all data revisions</td><td>SagID DataID</td><td> </td></tr><tr><td>timeline</td><td>Summary changes, status &amp; actions</td><td>SagID DataID</td><td> </td></tr></tbody></table>

### <span class="mw-headline" id="bkmrk-items-list-nested-da-1">Items list nested data</span>

<table id="bkmrk-command-function-req-3"><tbody><tr><th>command</th><th>function</th><th>required</th><th>optional</th></tr><tr><td>task</td><td>List of all tasks</td><td>SagID</td><td>QUERY\_PageOffset</td></tr><tr><td>file</td><td>List of all files</td><td>SagID</td><td>QUERY\_PageOffset</td></tr><tr><td>name</td><td>List of all contacts</td><td>SagID</td><td>QUERY\_PageOffset</td></tr><tr><td>mail</td><td>List of all emails</td><td>SagID</td><td>QUERY\_PageOffset</td></tr></tbody></table>

### <span id="bkmrk-"></span><span class="mw-headline" id="bkmrk-lists-%2F-reports-1">Lists / reports</span>

<table id="bkmrk-command-function-req-4"><tbody><tr><th>command</th><th>function</th><th>required</th><th>optional</th></tr><tr><td>list</td><td>List records</td><td>SagID</td><td>QUERY\_PageOffset</td></tr><tr><td>xtab</td><td>Pivot table</td><td>SagID</td><td> </td></tr><tr><td>grid</td><td>Two dimensional grid</td><td>SagID</td><td> </td></tr><tr><td>dist</td><td>Distributions of all categories</td><td>SagID</td><td> </td></tr><tr><td>calm</td><td>Month calendar view</td><td>SagID</td><td> </td></tr><tr><td>gant</td><td>GANT chart</td><td>SagID</td><td> </td></tr><tr><td>maps</td><td>Large map of all positions</td><td>SagID</td><td> </td></tr><tr><td>heat</td><td>Columnar heatmap</td><td>SagID</td><td> </td></tr><tr><td>sums</td><td> </td><td>SagID</td><td> </td></tr></tbody></table>

### <span class="mw-headline" id="bkmrk-statistics-1">Statistics</span>

<table id="bkmrk-command-function-req-5"><tbody><tr><th>command</th><th>function</th><th>required</th><th>optional</th></tr><tr><td>stav</td><td>Analyze variable (count/sum)</td><td>SagID</td><td> </td></tr><tr><td>stat</td><td>Chi or T2 test of groups</td><td>SagID</td><td> </td></tr><tr><td>stas</td><td>Regression analysis</td><td>SagID</td><td> </td></tr><tr><td>staa</td><td>Anova test of 1 or 2 groups</td><td>SagID</td><td> </td></tr><tr><td>stap</td><td>Pareto diagram from variable</td><td>SagID</td><td> </td></tr><tr><td>star</td><td>Interactive runchart</td><td>SagID</td><td> </td></tr><tr><td>stac</td><td>Interval grouping</td><td>SagID</td><td> </td></tr><tr><td>staf</td><td>Fisher exact tests</td><td>SagID</td><td> </td></tr></tbody></table>

### <span class="mw-headline" id="bkmrk-system-1">System</span>

<table id="bkmrk-command-function-req-6"><tbody><tr><th>command</th><th>function</th><th>required</th><th>optional</th></tr><tr><td>sync</td><td>Synchronizes DB tables with model</td><td>SagID</td><td>  
</td></tr></tbody></table>

# Other services

### <span class="mw-headline" id="bkmrk-scan-1">scan</span>

The scan servlet will take input from HTTP calls, usually triggered from an QR or NFC scan.

The use is either

1. Make an Object call, then an Action call (within 1 minute).
2. Make an Action call, then an Object call (within 1 minute).
3. Make a combined call with both Object and Action.

Required parameters is a Object, Action or both.

Object

- entity \[string\] (Entity system name)
- object \[int\] (DataID)

Action

- field \[string\]
- value \[string\]

Options

- result

### <span class="mw-headline" id="bkmrk-barcode-1">barcode</span>

Required

- data

Optional

- type
- appid
- width
- height
- resolution