M2DOC m:template reverses output sequence [message #1835220] |
Fri, 27 November 2020 05:53  |
Eclipse User |
|
|
|
Hi,
the following template is used to construct a table (parenthesis are intentionally left out):
m:template createExchangeItemTable(exchangeItem:information::ExchangeItem)
m: testExchangeItem.createHeader()
m:for exchangeItemElement | testExchangeItem.ownedElements
m: 1.createBlockOfRows(exchangeItemElement)
m:endfor
m:endTemplate
m: testExchangeItem.createExchangeItemTable()
The issue is that the rows are reversed (LIFO) in the generated document, when the above template is used:
... as opposed to simply using the exactly same code not wrapped in a template:
m: testExchangeItem.createHeader()
m:for exchangeItemElement | testExchangeItem.ownedElements
m: 1.createBlockOfRows(exchangeItemElement)
m:endfor
which generates the correct table:
We are using m2doc 3.0.0. Is this issue known and corrected in a newer version of m2doc?
|
|
|
|
Powered by
FUDForum. Page generated in 0.05652 seconds