User`s guide

13 Create a Report Program
13-124
Add Holes in an HTML Template
In this section...
“Inline and Block Holes” on page 13-124
“Create an Inline Hole” on page 13-124
“Create a Block Hole” on page 13-125
Template holes are places in a template that a report script fills with generated content,
supporting a forms-based report.
Inline and Block Holes
The DOM API supports two types of holes: inline and block.
An inline hole is for document elements that a paragraph element can contain: Text,
Image, LinkTarget, ExternalLink, InternalLink, CharEntity, AutoNumber.
A block hole can contain a Paragraph, Table, OrderedList, UnorderedList,
DocumentPart, and Group.
Create an Inline Hole
1
Unzip the template using the unzipTemplate command.
2
Open the root.html or report.html document of the template in an HTML or
text editor.
3
Place the insertion point in the paragraph where you want to create a hole.
4
Add code that uses this pattern:
<p>
<span>
<div class="Hole" data-default-hole-style-name="STYLE_NAME"
data-hole-id="HOLEID">
<span class="HoleId">HOLEID</span>
<span class="HoleDesc">HOLE_DESCRIPTION</span>
</div>
</span>
</p>