
Chapter 9. Domino integration 301
Exit Sub
errorhandler:
Messagebox "Error: " & Err() & " in " & CONSTLIBNAME & "." & Lsi_info(2) & " line " &
Erl()
Messagebox Error$
Exit Sub
End Sub
Now we create the missing sub, createXMLFragment (see Example 9-10). It composes the
XML fragments for one prepopulation tab in the template document and stores the fragment,
database instance ID, and unique ID for the source document in the corresponding fields on
the RenderXFDL form. The unique ID will control the visibility of the lines containing the
prepopulation scripts (see the hide formulas applied in form RenderXFDL).
Example 9-10 Creating the missing sub, cre ...