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

Window

The Report Builder window

The window has two sides. The left side holds the list of saved reports and the list of blocks in the open report. The right side shows the result in three tabs: Preview, XSL and CSS. View > Swap Sides puts the lists on the other side. You can drag the splitter bars to change the sizes.

Saved Reports

A list of your saved reports with a toolbar above it.

Button What it does
New Starts an empty report
Open Opens the selected report (double-clicking a report in the list does the same)
Close Closes the open report
Save Saves the open report
Save As Saves it under another name
Copy Makes a copy of the selected saved report.
Rename Renames the selected report
Delete Deletes the selected report (you are asked to confirm)
Import Loads a report file (*.msarb) from anywhere, for example one a friend sent you, and saves it in your list
Export Saves the selected report to a file you choose, to share it

If you try to leave a report with unsaved changes you are asked whether to save them.

Blocks

Below the reports is the blocks list: the report as an outline. The first row is always the Report row, which holds the settings of the whole report. Under it come your blocks in the order they appear in the report. A block that can hold other blocks (Records, Paragraph, Columns, Column, Group) has an arrow to open and close it, and the list remembers which are closed.

Each row shows the block's icon, its type, and a grey summary (for example the heading text, or the source and number of blocks inside a Records block).

Hover over a row and a thin outline appears round the block that holds it (a Group, Records, Paragraph, Columns, If and so on). An If and its Else are outlined together. It is only a visual aid and is hidden while you drag a block. The Add menus now list If and Else; Else is greyed unless the selected block is an If without an Else.

The blocks toolbar

Button What it does
Add after Opens a menu of block types and adds the new block after the selected one
Add inside Adds the new block inside the selected block (only for blocks that can hold others)
Edit Opens the block's editor (double-click or Enter does the same)
Duplicate Makes a copy of the block, with everything inside it
Remove Removes the block, with everything inside it
Up / Down Moves the block up or down among its neighbours
Parameters Opens the report's parameters (the same as View > Parameters...)

Choices that are not allowed at that place are greyed out. For example a Field or Table can only go inside a Records block. The same commands are on the right-click menu and on the ... button that appears on the selected row. The right-click menu also has Add before, Group selected blocks and Ungroup.

Moving blocks

Use Up and Down, or drag a block to a new place. While dragging, a line shows where the block will land: a line above or below a row means before or after it, a frame around a row means inside it. A block that cannot go there gives a message when you let go. Press Esc to cancel a drag.

Selecting several blocks

Click a block, then Shift+click another block with the same parent (or use Shift+Up / Shift+Down) to select a run of blocks. With a run selected, Group selected blocks (right-click menu) puts them into a new Group. Ungroup takes a Group apart again, keeping the blocks that were inside it.

Keys

Key Action
Enter Edit the selected block
Delete Remove the selected block
Alt+Up / Alt+Down Move the block up or down
Left / Right arrow Close or open a block that holds others

The preview tabs

  • Preview shows the finished report. It refreshes by itself every time you change something, and stays at the place you were looking at. Right-click in the preview to print, export to HTML or PDF, or change the PDF settings. F5 refreshes it.
  • XSL shows the XSLT that the builder has written from your blocks. CSS shows the style sheet. You cannot edit them here; they are for the curious and for checking. If you change a block, they change too.

The View menu

  • Swap Sides moves the lists to the other side of the window.
  • Parameters... opens the list of the report's parameters, where you add, change or remove them. See Parameters and placeholders.
  • Parameter Values... asks the questions of a report that has parameters (greyed out when the report has none). See Parameters and placeholders.
  • The remaining items (Word Wrap, Whitespace, End of Line, Indentation Guides, Line Numbers, Fold Margin) change how the XSL and CSS tabs are displayed.

Where reports are kept

Each report is one .msarb file in the Report Builder folder inside MSA's data folder. These files are part of MSA's backups. Two sample reports, Sample - All Blocks and Sample - Home and Away Talks, are installed the first time and are a good way to see what each block does.

Navigation