Dynamic building blocks
Dynamic building blocks can be used starting from ITP/MDK Repository 3.2.4 and ITP/Server 3.2.5. Dynamic building blocks are components of an ITP Model that are retrieved from the ITP/MDK Repository when the model is run (runtime).
Changing a dynamic building block does not require recreating the model because dynamic building blocks are only retrieved at the moment the model is run.
ITP knows the following dynamic building blocks:
- Forms
Dynamic forms offer the same functionality as the already existing keyword FORM; the model developer can create QUESTION and ANSWER screens (forms) that are shown when the ITP Model is run with ITP/OnLine Server. The answers provided by the user can be used in the model document.
Dynamic forms are created and maintained with the Form Editor. This is a WYSIWYG editor with which the forms developers can easily create forms without knowing all the ITP keywords.
To insert these dynamic forms in the model document the model developer should use the instruction FORM NAME or FORM VAR. - Text Blocks
Text Blocks are created and maintained with the Text Block editor. This editor allows text editors to create and maintain Text Blocks. These Text Block can use variable fields.
To insert a Text Block in a model document the model developer should use the instruction TEXTBLOCK. - Field Sets
Field Sets are the interface from dynamic form to model document and from Text Block to model document. Field Sets contain fields.
In case of a form fields from a Field Set are used to store the user's answer in. These fields can can then be used in the model document, for example to print the answer the user has given in the result document.
In case of a Text Blocks fields from a Field Set can be used as variable fields. The fields can be used by the text editor to insert variable data in the text. The model developer is responsible for assigning a value to the fields in the Field Set that is used in a Text Block.
The Field Set needs to be declared to use the fields from the Field Set. This is done with the instruction FIELDSET. - Views
Views are used in a form to present the user a question that run the model with a listing of Text Blocks. The user can select one of these Text Blocks to answer the question. Combining the VIEW keyword with the MULTISELECT keyword allows the user to select more than one Text Block. These Text Blocks question can be added to the existing keyword FORM with the keyword VIEW. A View question can also be added with the Form Editor (Text Block question).