Book a Demo

Author Topic: Is a combination of list macro and calling templates with parameters possible?  (Read 3610 times)

Tschana

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Dear Community,

calling user defined templates is possible with the list macro or simply by calling a template.

With the list macro it is possible “to loop or iterate through a set of Objects that are contained within or are under the current object” (quote from software-models.pdf).
Code: [Select]
%list=”Class__MyTemplate” %
If I simply call a template it is possible to add parameters to it (but EA isn’t looping through the child elements):
Code: [Select]
%Class__MyTemplate ($className)%In Class__ MyTemplate I can use e.g.
Code: [Select]
$example=$parameter1 which I would need for doing some if-else queries.

Is there any opportunity to combine these two methods so that I can loop through objects and also pass a parameter to it?

Best regards and thanks in advance,
Tschana

ea1020

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Thank you for the sample code