moveToNextHole
R2026bClass: mlreportgen.dom.Document
Namespace: mlreportgen.dom
Move document append point to next template hole
Description
copies to the output document any text between the current hole and the next hole in
the document template. DOM creates an holeID = moveToNextHole(docObj)mlreportgen.dom.RawText
object for the text. This method makes the next hole the current hole and returns
the ID of that hole.
If the document also populates the
Holes property, the DOM appends that content to the new
current hole after emitting the intervening RawText. (since R2026b)
Examples
Input Arguments
Output Arguments
Tips
The first time you invoke the moveToNextHole method, the DOM copies
to the output document all of the text up to the first hole in the template. Use
Document.append methods to add content to the output document to
fill the first hole. The next time you invoke moveToNextHole, the DOM
copies to the output document all the text between the first and second hole in the
template. Then use Document.append methods to fill in the second
hole. In this way, you can successively fill all of the holes in a document.
Version History
Introduced in R2014b