Update: the documentation now states that a report's dictionary is generated when the report is created, not when an existing report is opened. Fixed in
WUIC Framework 1.8.2 .
The original answer below describes versions before 1.8.2.QuestionI added a new column to a route's metadata and reopened the report designer, but the field is not in the Dictionary panel of the report I created last week. The docs say the dictionary is regenerated when the designer opens. What am I missing?
AnswerThe datasource is built from metadata only when the
.mrt file is created. When you open a report that already exists on disk, the designer loads that file as it is, so the dictionary is the one saved inside it and columns added to the metadata later do not appear.
This is how it works:
- A new report (either the empty-bands template or one made with
Report → Create report) is generated from the route's current columns and saved as Reports//Report_YYYYMMDD_HHMMSS.mrt. - Opening a saved report only loads the file. The metadata is not read again to update its dictionary.
- The columns come from the route as the creating user is allowed to see them, so a column hidden for that user is not in the datasource either.
What to do- If the layout is simple, create a new report with
Report → Create report: the new file contains the new column, and you can pick it in the column list of the dialog. - If the layout is already worked out, create the new report as above and copy the bands you need from the old one, or add the field by hand to the datasource in the Dictionary panel of the existing report. In the data band the binding follows the pattern
{route.column}.
Mistake to avoidRenaming a metadata column after reports were built on it. The bindings stored in the
.mrt files keep the old name and the cells stay empty, so rename only after checking which reports use the field.
Documentation: Report Designer Edited by user
9 days ago |
Reason: fixed in 1.8.2