Bind the body to an expression
In template settings, open the Body tab and add a record (/bulletin-templates/body/new) or open a saved ID. The body defines the table showing student data, assessment factors and calculated results. Name it, for example, “Semester examination — marks and total”. Add translated names and descriptions as needed. Choose regular or individual mode and a root expression. The selector offers published roots of the matching kind. The server requires an existing root with no parent and with the expression blueprint flag off.
Build the node columns
- Select an expression tree node. Inspect its factors in Structure and find additional fields in the other-data library. Drag an item into the builder. The required system sources are row number (
body.row_number) and student full name (students.full_name). - System columns can show the student's examination booklet number or group, lecturer, excused or unexcused absences. Factor columns bind to an assessment factor, total columns to the node result, and scale columns to a fixed scale type or the node's working scale. Enter a label for a custom column. A group column holds child columns and must have at least one child.
- A group may embed a sibling node. A factor, total or scale column may have a separate value source: it appears in one part of the table and reads from another selected node. Check the source before giving columns similar headings. An inherited value from another node is read-only.
- Factors referenced by the formula and its conditions generate required columns. Editing and deletion are restricted, while ordering, print and export settings remain available. On tree changes, synchronization adds missing factor columns and removes unused ones. Submission checks that all factors in the tree are represented and no unrelated factors are present. Factors · Grade scales
Configure the table
Set the heading language order and separator for the body. A column can inherit or override those settings. Review the heading, suffix, fixed or content-based width, minimum and maximum width (40–800), and inclusion in print and export. Coefficient settings include position, parentheses, percent formatting and separate print/export visibility. To number columns, select the first column, starting number (0–9999) and top or bottom number row. The body page settings carry the bulletin watermark. Use preview to check long translated names and nested headings.
For example, on an “Exam” node, keep row number and full name, include the required “Written assessment” factor and add a node total and working-scale column. Group the latter two under “Result” and check the printed width. Save the body and verify approval status. After saving a new working part, the editor separately attempts to start approval. A coverage error can leave a saved body without an approval process. Check the tree and columns, then verify the status. Assign the body to the intended sheet. Assemble and use a sheet
Permissions and effects on existing batches
bulletin-body-templates.show opens the body, .store creates it and .update covers changes, column saving/reordering and submission. Available factors depend on .index, and the system source catalogue uses bulletin-body-column-sources.index. Template management declares no organizational scope. Approval permissions govern edits to locked content. For existing mutable batches the system remaps saved marks to the current columns for their nodes. Removing a factor from the structure may affect existing records, so identify the sheets and batches using a working body before changing it. Template settings
Implementation references
- frontend-edusystems · editors/BodyEditor.tsx
- frontend-edusystems · BodyBuilder/StructureTab.tsx
- frontend-edusystems · BodyBuilder/DataLibraryTab.tsx
- frontend-edusystems · BodyBuilder/helpers.ts
- frontend-edusystems · BodyBuilder/labelSettings.ts
- backend-edusystems · routes/api.php
- backend-edusystems · Requests/StoreBodyTemplateRequest.php
- backend-edusystems · Requests/UpsertBodyColumnsRequest.php
- backend-edusystems · Services/BodyTemplateFactorValidator.php
- backend-edusystems · Services/BodyTemplateFactorColumnReconciler.php
- backend-edusystems · Services/BulletinTemplateReconciliationService.php