How do I assign a property to a topic via Macro?

  • 1
  • Question
  • Updated 6 years ago
  • Answered
Hello

I'm digging through here and can't find it: How do I set a property for a topic via Macro?

Something like "Creation date: 1.1.2013"
(It does *not* need to auto-update, refresh, talk to a plugin or anything, like in a Map Part).

I tried arcane things like pull out the Datacontainer XML, find the URN of a custom property and use that - but that only works when the property is already set and can only change its value.

There's also a ridiculously long and complicated code on http://tech.groups.yahoo.com/group/Mi... etc., but there must be a simpler way, mustn't it?

Can I just have some sample code, please?
Thank you very much in advance.
Photo of Wolfgang

Wolfgang

  • 1 Post
  • 0 Reply Likes
  • frustrated

Posted 6 years ago

  • 1
Photo of aHa!Coaching

aHa!Coaching, Champion

  • 1192 Posts
  • 117 Reply Likes
Actually you've already given the biggest part of the answer yourself: you need to define Custom Properties before you can assign a value. This is also why "that only works when the property is already set and can only change its value."

Maybe you could use Text Markers instead of Custom Properties?

This conversation is no longer open for comments or replies.