Author Topic: Label Expression  (Read 191 times)

JoCriSem

  • Member
  • **
  • Posts: 15
Label Expression
« on: July 23, 2021, 13:16:20 PM »
Hi, I have multiple properties which I would like to show on a relationship using label expression when I run a script.

eg.

prop1 = 123
prop2 = 234
prop3 =345

I know I can do one of them by using element.setLabelExpression("${property:prop1}") in my script but would like to add the others too.
Any idea?

Phil Beauvoir

  • Administrator
  • Hero Member
  • *****
  • Posts: 1639
  • Code Punk
    • Archi
Re: Label Expression
« Reply #1 on: July 23, 2021, 13:19:56 PM »
element.setLabelExpression("${property:prop1} ${property:prop2} ${property:prop3}")
If you value and use Archi please consider making a donation! https://www.archimatetool.com/donate

JoCriSem

  • Member
  • **
  • Posts: 15
Re: Label Expression
« Reply #2 on: July 23, 2021, 13:34:58 PM »
 :-[ :-[

should have tried without , between the expressions.

 :-[ :-[

Thanks