invantive documentationpart of invantive cloud
Invantive Support ForumsLog In / Sign Up

Model

The model is what the template knows: where its data comes from, what it asks of the user and what it may be used for. It lives inside the document, so a template is one file rather than a file plus a definition next to it.

Identification

  • "Code" and "Name": how the model is identified and what it is called.
  • "Description" and "Comment": what it produces, and what whoever maintains it later needs to know.
  • "Version": which revision of the model this is.
  • "Author", "Company" and "Copyright": who made it and under whose name it is published. These are also what the ribbon shows under "Model information".

Behaviour

  • "Central model": whether the model is held centrally instead of only in this document, so that several templates share one definition.
  • "Access control": who may do what with this model.
  • "Revision mode": how revisions of the model are kept.
  • "Statistics": what is recorded about the use of the model.
  • "Instructions": what the person using the template is told before composing a document.

Passwords

Four passwords each protect something different, and each may be left empty:

  • "Password to edit the model": without it the model may be looked at but not changed.
  • "Password to edit the template": without it the text of the template may not be changed.
  • "Password for inherited definitions": what a model which builds on this one needs.
  • "Password of the published document": what the composed document is protected with.

This is what makes a template distributable: it can be handed out to be used without being altered, and the composed document can be handed on without being edited further.

Contents

Besides these properties, a model holds:

  • blocks: the sequences of data;
  • parameters: what is asked of the user;
  • resources: texts held once, per language; see Resource value;
  • properties: named expressions, so that a calculation used in several places is written once;
  • extensions: code for what the template alone cannot do;
  • revisions: the earlier states of the model.