report builder parameters - ajtruckle/meeting-schedule-assistant-support GitHub Wiki
Parameters
Parameters and placeholders
Placeholders put changing values into your text: today's date, the number of the current record, or an answer to a question the report asks. Parameters are those questions.
Placeholders
A placeholder is a word in curly brackets, typed in a Heading, a Text block or a Field's Before / After text. When the report is made, MSA replaces it with its value.
Instead of typing it, click the { } button next to the text box and choose from the list; the placeholder goes in at the cursor (or replaces the selected text).
| Placeholder | Shows | Where it works |
|---|---|---|
| {today} | Today's date | Anywhere |
| {start} | The first date of the Records block's date range | Anywhere (see note) |
| {end} | The last date of the date range | Anywhere (see note) |
| {row} | The number of the current record (1, 2, 3...) | Only inside a Records block |
| {rows} | How many records there are | Only inside a Records block |
| {name} | The value of a parameter you declared | Anywhere |
{row} and {rows} count the records after sorting and filtering. Inside a nested Records block they count the records under the current outer record and start again at 1 for each one.
Note on {start} and {end} outside a Records block. Inside a Records block they show that block's real range. Outside one they currently show a sample range (the start of this month to the end of the month three months on). This will change.
Examples
| Type this | Result |
|---|---|
| Printed on {today} | Printed on 24 November 2026 |
| Heading inside Records: Talks from {start} to {end} | Talks from 2 November 2026 to 28 December 2026 |
| Field Before {row}. | 1. 2. 3. ... in front of each record |
| Field Before {row} of {rows}: | 1 of 4: 2 of 4: ... |
Showing curly brackets
To show a real { or }, type it twice: {{ shows { and }} shows }. So {{today}} shows the word {today}.
When a placeholder is not recognised
A placeholder the builder does not know (a typing mistake, or a parameter that has since been deleted), or {row} / {rows} used outside a Records block, is left as typed so you can see and fix it.
The placeholder names are always English ({today}, not a translation), in every language.
Parameters
A parameter is a question the report asks. You declare them with the Parameters button on the blocks toolbar, or View > Parameters.... You can also open the Report row and click Parameters.... You can have up to 8 parameters.
For each parameter you set:
| Setting | Meaning |
|---|---|
| Name | The word used in {name}. Letters, digits and _ only, starting with a letter, and unique. Other characters are not accepted as you type. today, start, end, row and rows are reserved. |
| Label | The question shown to the person running the report |
| Type | Text, Number (whole numbers), Date, Yes / No, or Choice (a list you type, one item per line) |
| Default | The starting answer. A Date can default to Today. |
The order of the list is the order the questions are asked. Use Add, Remove, Move Up and Move Down.
You can use a parameter's value in text with {name}: a Date appears in MSA's date format, Yes / No as Yes or No.
Answering the questions
In the Report Builder, View > Parameter Values... opens a small window that asks the questions (the item is greyed out when the report has no parameters). Click OK and the preview is made again with your answers. The answers are remembered for next time, except a Date whose default is Today, which always starts at today.
The preview refreshes by itself as you edit; it does not stop to ask. It uses the last answers (or the defaults).
Using a parameter as a filter value or a date range
A parameter can also control which records a Records block shows.
As a filter value. On the Records block's Filter tab, click the { } button next to the value and choose a parameter. The value then shows as {name}. Only parameters that suit the field are listed: a Text or Choice parameter for a text field, and a parameter of the same type for a number, date or Yes / No field. Choose the ticked parameter again to go back to typing a value yourself.
As a date range. On the Records block's Records tab, choose Parameters and pick a Date parameter for From and for To. Leave one blank to leave that end open.
An empty parameter means "no limit":
- a filter that refers to an empty parameter is skipped, so a Choice left blank means "everyone",
- an empty From or To leaves that end of the date range open, and with both empty every date is used.
If the From date is after the To date, no records match.
Running a builder report from the meeting editors, with the questions shown beside the report, is planned for later.
Using a parameter in an If
An If block can test a parameter. In its Condition tab, choose the parameter ({name}) in the Field list. For example, a Yes / No parameter showNotes with the test "equals Yes" shows a block only when the person running the report answered Yes. Add an Else to show something when the answer is No. As with filters, a condition on an empty parameter passes.
Navigation
- Parent topic: Report Builder
- Previous topic: Blocks
- Next topic: Records