Properties
Every property the Driver Tree control has, generated from the manifest the control ships with, so the names always match.
All properties
| Property | Type | Kind | What it does |
|---|---|---|---|
| Title | SingleLine.Text | Input | |
| Direction | Enum | Input | Default: lr. |
| Targets | Enum | Input | Default: stored. |
| Levels open at first (default 2) | Whole.None | Input | |
| Open as | Enum | Input | Default: tree. |
| Allow what-if | TwoOptions | Input | Lets users change inputs and see the effect. Saving needs the Scenario value column and write access. Default: true. |
| Start in what-if | TwoOptions | Input | Opens with what-if on, so users can change inputs straight away. Default: false. |
| Period to show (YYYY-MM-DD, empty = latest) | SingleLine.Text | Input | |
| Periods in sparklines (default 12) | Whole.None | Input | |
| Show sparklines (needs the Period column) | TwoOptions | Input | Default: true. |
| Currency (ISO code, e.g. AUD) | SingleLine.Text | Input | |
| Number locale (empty = the user language) | SingleLine.Text | Input | |
| Theme | Enum | Input | Default: light. |
| Accent colour (hex) | SingleLine.Text | Input | |
| Text size (%) | Whole.None | Input | Makes every name, value and label bigger or smaller together: 75 to 200, default 100. Cards grow with the text. Default: 100. |
| Text sizes by role (JSON, optional) | SingleLine.Text | Input | Advanced: sizes in px at 100%, e.g. {"body": 14, "hero": 30}. Roles: caption, body, value, callout, header, title, hero (the big number on each card). Text size still applies. |
| Licence key | SingleLine.Text | Input | Your Ninth Forge Driver Tree licence key. Without one the control works fully and shows a small watermark. |
| Save mode | Enum | Input | Auto saves scenarios directly in model-driven apps and raises OnScenarioSave in canvas apps. Default: auto. |
| Selected node (output) | SingleLine.Text | Output | |
| Scenario (output, JSON) | Multiple | Output | |
| Nodes (required) | Dataset | Bound | |
| Parent (empty = top of a tree) | Lookup.Simple | Column | |
| Name (canvas, text) | SingleLine.Text | Column | Canvas apps: the name column. Model-driven apps use the primary name and can leave it empty. |
| Record ID (canvas, text) | SingleLine.Text | Column | Canvas apps: a text column holding the ID of each row, when Items is not the table itself (AddColumns or a collection). Outputs then carry it. |
| Parent ID (canvas, text) | SingleLine.Text | Column | Canvas apps cannot map a lookup: a text column holding the ID of the parent builds the tree. |
| Operator (sum, product, difference, ratio, avg, wavg, formula, input) | SingleLine.Text / OptionSet / Multiple | Column | |
| Formula (over child keys) | SingleLine.Text / OptionSet / Multiple | Column | |
| Key (short id used in formulas) | SingleLine.Text | Column | |
| Actual | Whole.None / Decimal / FP / Currency | Column | |
| Target | Whole.None / Decimal / FP / Currency | Column | |
| Weight (for a weighted average parent) | Whole.None / Decimal / FP / Currency | Column | |
| Unit ($, %, t, h and so on) | SingleLine.Text | Column | |
| Format (number, currency, percent, compact) | SingleLine.Text / OptionSet / Multiple | Column | |
| Lower is better | TwoOptions | Column | |
| Sort order | Whole.None / Decimal / FP / Currency | Column | |
| Owner | Lookup.Simple / Lookup.Owner / SingleLine.Text | Column | |
| Scenario value (what-if saves here) | Whole.None / Decimal / FP / Currency | Column | |
| Period (Date only; one row per node per period) | DateAndTime.DateOnly | Column | |
| OnScenarioChange | Event | Event | A what-if value changed (edit, undo, redo or reset). Read Self.scenarioJson. |
| OnScenarioSave | Event | Event | The user pressed Save scenario (save mode: event). Patch Self.scenarioJson into your table. |
Last updated