Filling Dynamic Documents

Once you have instantiated your dynamic document, you can add display elements to it. There are two kinds of display elements - simple and complex.

A simple display element is one that you can add to your dynamic document by simply calling a method of the document instance. Simple display elements can be:

  • Texts
  • Links
  • Icons and pictures
  • Underlines

A complex display element, such as a form or a table, is a collection of simple display elements. To place a complex element in a dynamic document, you must first create a special area for it by calling the relevant method of the document instance. You then fill the area you have created. When you call the merge_document method of your main document instance, the contents of the special area are bound to your dynamic document.

To use input fields, pushbuttons, and dropdown list boxes in a dynamic document, you must first create a form in the main document, then add the elements to the form.