.. include:: /Includes.rst.txt .. _feature-1791405298: ======================== Feature: Pivot templates ======================== Description =========== A pivot can be saved under a name as a template: privately for its owner, or, by HR and admins, shared with everybody who may use its dataset. Every dataset also ships standard templates, named in the reader's language, which cannot be changed but can be saved under a new name as an editable copy. A template holds the configuration only, never data. When a reader applies a template with a field they may not see, the pivot runs without it and names it in `omittedFields`. `runPivotQuery` takes a `templateId` for this. Sharing a template is recorded in the audit log. Impact ====== The new table `pivot_template` is created by the database migrations. .. index:: API, Database, package:adsum-core, package:adsum-reporting