MetaCase Homepage
Forum Home Forum Home > > MetaEdit+
  New Posts New Posts RSS Feed - Attach Collection of Objects to Relationship
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Attach Collection of Objects to Relationship

 Post Reply Post Reply
Author
Message
Vasilis View Drop Down
Member
Member


Joined: 28.Oct.2008
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote Vasilis Quote  Post ReplyReply Direct Link To This Post Topic: Attach Collection of Objects to Relationship
    Posted: 28.Oct.2008 at 02:22
Dear All,

I am trying to achieve attaching a property which is a collection of objects (that have a symbol), to a relationship. Conceptually of course this works and in the Graph, indeed I can edit the relationship and add objects of the specific type to the property. What I really want though, is to also show each object's symbol over and under the relationship line, according to some other property of the object. In other words I would like to do something like in the following image:


O.3, O.4 and O.5 (I would very much want them to be ;) ) the Symbols of the the objects in the property-collection of the realtionship between Object 1 and Object 2. Is this possible at all?

Thank you very much
Back to Top
stevek View Drop Down
MetaCase
MetaCase
Avatar

Joined: 11.Mar.2008
Points: 643
Post Options Post Options   Thanks (0) Thanks(0)   Quote stevek Quote  Post ReplyReply Direct Link To This Post Posted: 28.Oct.2008 at 11:14
Hi Vasilis,
 
You can put a text element in the relationship symbol, and have its content come from a generator. The generator will print each sub-object's number and a character to show the direction. E.g.
 
do :SubObjects
{  if :Direction = 'left' then '<' else '>' endif
   :Value ' '
}
 
Your example picture splits the collection into two sets, one going left and the other right. If you want that, you could have two text elements, either for separate collection properties in the relationship (do :LeftSubObjects and do :RightSubObjects), or only iterating over the desired SubObjects (do :SubObjects where :Direction = 'left').
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.05
Copyright ©2001-2022 Web Wiz Ltd.

This page was generated in 0.023 seconds.