report builder blocks - ajtruckle/meeting-schedule-assistant-support GitHub Wiki

Blocks

Blocks

A report is a list of blocks, shown from top to bottom. Add blocks with Add after / Add inside (see The Report Builder window). Double-click a block, or press Enter, to open its editor. Every editor has the same OK / Cancel buttons; Cancel on a block you have just added removes it again.

Block Use it for Can hold other blocks?
Report Settings for the whole report (always the first row) No
Heading A title (three levels) No
Text A line or paragraph of your own text, today's date, or the date range No
Separator A horizontal line No
Image A picture from a file or a web address No
Records Chooses which information is used and repeats its blocks for each record Yes
Table A ready-made table of the records No (goes inside Records)
Field One value from the current record No (goes inside Records)
Paragraph Several pieces (text and fields) on one line Yes (Text and Field only)
Columns / Column Side-by-side columns Yes
Group Gathers blocks so they share one look Yes
If Shows its blocks only when a test passes (first or last record, odd or even, or a condition) Yes
Else Shows its blocks when the If before it did not pass Yes (only inside an If)
Comment A note to yourself about the report; it prints nothing No

Where each block can go

  • Field and Table only make sense for a record, so they can only go inside a Records block (directly, or inside a Paragraph, Columns or Group that is inside Records). Table must sit directly inside Records.
  • A Paragraph holds only Text and Field blocks, so an Image cannot go inside one.
  • Columns holds only Column blocks. A Column cannot hold a Table.
  • A Group can hold anything except a Table or a Column.
  • Blocks can be nested only a limited number of levels deep. If you try to go deeper you get a message.
  • An If can go anywhere a Group can. A Table or Column cannot go inside an If or an Else.
  • An Else can only go inside an If, and an If can have only one. The Else is always the last block in its If.
  • A Comment can go anywhere except inside a Paragraph.

When a choice is not allowed at the selected place it is greyed out in the Add menu.

Report

The first row of the blocks list. It cannot be moved, removed or copied. Open it to set the look of the whole report.

  • Page: Portrait or Landscape, and the page margin in millimetres (0 to 50).
  • Table: three switches for every table in the report: Striped rows, Compact (tighter rows), Borders.
  • Appearance: the report's font, size, bold / italic / underline, alignment, line spacing and colours. Every block starts from these and can override them. See Appearance .
  • Parameters...: questions the report asks when it is run. See Parameters and placeholders.

The row's grey summary shows the font and size (and, when there are parameters, the number of them, for example {2}).

Heading

A title in three levels (1 is the largest, 3 the smallest). Type the text, choose the level, and use the { } button to insert a placeholder such as {today} (see Parameters and placeholders). The Appearance part below lets you give it its own font, colours, a coloured banner background, and so on.

Text

Choose what to Show:

  • Text: your own words. The { } button inserts placeholders such as {today}.
  • Date range: the report's date range, written out.
  • Today: today's date.

Use {today} inside ordinary text when you want the date in the middle of a sentence, for example Printed on {today}.

Separator

A horizontal line. Choose its width (% of the page), thickness (thin, medium, thick) and line style (solid, dashed, dotted, double). You can give the line and an optional background a colour for light and dark appearance. A colour left on (Default) uses the report's text colour.

Image

Shows a picture. In the editor:

  • File: browse for the picture (PNG, JPG, GIF, BMP, SVG, WebP, AVIF or ICO). You can also type a web address. TIFF pictures cannot be shown.
  • Alternative text: a short description, shown if the picture cannot be loaded.
  • Width (%): how much of the available space the picture uses, from 1 to 100. Leave it empty to show the picture at its actual size. A picture is never wider than the space it sits in.

On the Appearance part of the editor you can set the alignment (left, centre or right), a background colour for light and dark appearance, and the spacing. The font settings have no effect on a picture.

The report only links to the picture; it does not keep a copy. If you move, rename or delete the file, the picture no longer appears. Pictures are not included in MSA backups. A block with no file shows nothing.

An Image can go inside Columns, Records, Group and If blocks.

Records

The most important block. It decides which information the report uses and then repeats the blocks inside it once for every record it finds. Everything that shows data (Field, Table, Paragraph) goes inside a Records block. See Records, sorting and filtering.

Table

A one-step table. Inside a Records block, Add inside > Table and choose the columns. The table shows one row for each of the records.

For each column you choose:

  • Field: which value to show (see Sources and Fields),
  • Title: the heading above the column,
  • Width (%): 0 means automatic,
  • Alignment: left, centre or right,
  • for date fields, Use Custom Date and a Format (see below).

Use Add, Remove, Move Up and Move Down to build the list. Add All adds every field of the source. A table needs at least one column. The table's own Appearance tab styles the table.

Field

One value from the current record, for example the chairman or the meeting date. Choose the Name (the field), and optionally:

  • Before and After: text shown before and after the value, for example Chairman: . They only appear when the field has a value. The { } button inserts placeholders (it goes into whichever of the two boxes you used last).
  • Use Custom Date (date fields only): choose how the date is written. Type a format such as %a, %b %d, or pick one from the list. The sample line shows the result.

A Field is drawn as its own line. To put several values on one line, use a Paragraph.

Custom date formats

Date fields (such as Week and Meeting date) normally follow MSA's date format. With Use Custom Date you can choose another, using these codes:

Code Meaning Example
%d Day of the month, two digits 07
%#d Day of the month, no leading zero 7
%a / %A Weekday, short / full Mon / Monday
%b / %B Month, short / full Nov / November
%m Month number 11
%y / %Y Year, two / four digits 26 / 2026

Anything else you type (commas, spaces, words) is shown as typed.

Paragraph

Puts several pieces on one line, for example Smith, John: Bible reading (4 min). Inside a Paragraph you add Text blocks (for the wording) and Field blocks (for the values). In the Paragraph's editor, Between pieces is the text put between neighbouring pieces. The default is a single space; you can type any text, or leave it empty for none.

Inside a Records block a Paragraph is repeated for each record, so it is the usual way to build a one-line-per-record list.

Columns and Column

A Columns block lays out its Column blocks side by side, like columns in a magazine. When you add a Columns block it starts with two columns. In its editor, Number of columns (1 to 6) adds or removes columns; you are asked first if a column you are removing has blocks in it.

Each Column has a Width (%) (0 or empty means the columns share the remaining space equally) and can hold other blocks: Heading, Text, Field, Paragraph, Records, Group and so on. The widths of all columns should add up to 100 or less.

Example: a line of away talks in aligned columns for date, time, speaker, congregation and theme.

Group

A Group simply holds other blocks so they can share one look (font, colours and so on, see Appearance). It adds no extra space of its own.

The quickest way to make one: select a run of blocks, right-click and choose Group selected blocks. Ungroup undoes it.

If and Else

An If shows the blocks inside it only when its test passes. Use it for things like "a line between records, but not after the last one", "bold only on odd rows", or "show this note only when the report was asked to".

The If editor has a Row list and a Condition tab. Both must pass.

  • Row (only when the If is inside a Records block): Any, First, Last, Not first, Not last, Odd or Even. The count is of the records after sorting and filtering, and inside a nested Records block it starts again for each outer record. Outside a Records block only Any is offered.
  • Condition: works like a Records filter, with a Field, a Test and a Value, joined by and / or (and is stronger). The Field list holds the fields of the surrounding Records block's source (not offered outside a Records block), the report's parameters shown as {name}, and {today}. A parameter is tested as its own type. As in Records filters, a condition that refers to an empty parameter is skipped and passes. A condition on a field the record does not have passes.

To show something else when the test fails, select the If, click Add inside and choose Else. The Else holds its own blocks. It cannot be moved out of its If, cannot be duplicated, and always stays last. Duplicating an If copies its Else too.

In the blocks list an If shows its row test and the number of conditions (for example Not last ยท 2), and the Else sits at the same indent as its If.

Example: Records, then a Field for the chairman, then an If with Row = Not last containing a Separator. This gives a line between records but none after the last.

Comment
A Comment explains how your report works. It prints nothing and has no appearance settings. Type as many lines as you like. It shows in grey in the blocks list, and you can move, duplicate and delete it like any other block. To put one inside Columns, select the Columns block and choose Add inside.

The Appearance tabs

Most block editors include appearance settings (the Table, Records and Group editors have an Appearance tab; Heading, Text and Field show it on the page). They are the same everywhere and are described in Appearance.

Navigation