Skip to main content



      Home
Home » Polarsys » M2Doc » M2DOC m:template reverses output sequence
M2DOC m:template reverses output sequence [message #1835220] Fri, 27 November 2020 05:53 Go to next message
Eclipse UserFriend
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?
Re: M2DOC m:template reverses output sequence [message #1835226 is a reply to message #1835220] Fri, 27 November 2020 07:07 Go to previous message
Eclipse UserFriend
Hi, we have a new Capella forum: https://forum.mbse-capella.org/

Thanks for forwarding your posts here
Previous Topic:M2DOC: How to access features of DRepresentationDescriptor?
Next Topic:M2Doc export add multiple carriage returns to capella element description
Goto Forum:
  


Current Time: Fri Jul 04 13:51:33 EDT 2025

Powered by FUDForum. Page generated in 0.05652 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top