Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Polarsys » M2Doc » M2DOC m:template reverses output sequence
M2DOC m:template reverses output sequence [message #1835220] Fri, 27 November 2020 10:53 Go to next message
ms34449 Mising name is currently offline ms34449 Mising nameFriend
Messages: 2
Registered: July 2009
Junior Member
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 12:07 Go to previous message
Samuel Rochet is currently offline Samuel RochetFriend
Messages: 21
Registered: November 2014
Junior Member
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: Tue Apr 23 07:25:13 GMT 2024

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

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

Back to the top