Combination View Flat View Tree View
Threads [ Previous | Next ]
RE: Accessing references in INTERREF attributes
toggle
Hi!

I'm having trouble with the INTERREF data type in GraphRep. Given an INTERREF attribute with a list of several references, I want to print the names of the first x references.

Let's assume the attribute is called "consists of". I tried:

ATTR "consists of" format:"%o"

which prints all references as clickalbe links. So I copied the references into a string array using the "strarray" expression. Now I'm able to select which names I want to print by addressing them with SUB. Unfortunately, printing those names using "TEXT" results in plain text instead of a clickable link.

Is there a way to have both: print a subset of a list of references as clickable links?

Thanks,

Stefan Hofer
Flag Flag
RE: Accessing references in INTERREF attributes
4/5/11 8:11 PM as a reply to Stefan Hofer.
Hi Stefan

I can think of two possibilities.
The first would be to use a HOTSPOT
It uses the value of an attribute to specify a special location in a graphrep where a link (following a reference/INTERREF or a programcall) should be. So you could create a HOTSPOT over the list of INTERREFS, however I have no idea how a HOTSPOT behaves if there is more than one reference.

An alternative could be to use CLIP_RECT, which specifies a region where only inside of it elements are drawn and not drawing anything outside of it. So after setting the CLIP_RECT you should be able to simply output the INTERREF attributes using ATTR. However you would have to know how big it needs to be to show exactly x INTERREFS, but you should be able to determine this using your current list of x elements and TEXTBOX to determine its size.

I hope this helps you more than it confuses anybody emoticon

Best regards,
Patrik
Flag Flag
RE: Accessing references in INTERREF attributes
4/6/11 11:18 AM as a reply to Stefan Hofer.
You might also try to set width & height to restrict the references to be shown, e.g. like here:

ATTR "Referenced IT system elements" format:"%o" x:abs: (cmX) y: (cmY) w:l: (cmDisplayWidth) h:t: (cmDisplayHeight) line-break:rigorous

(Please note: there should not be a blank after x:abs: and y: and w:l: and h:t: --- but I don't know how to disable the "automatic smilie converter" that makes ": + (" to :( even when I use the code tag)

Cheers,
Sandra
Flag Flag
RE: Accessing references in INTERREF attributes
4/8/11 5:57 PM as a reply to Stefan Hofer.
Thanks for your help, Sandra & Patrik!

I had already tried using hotspots before I posted my problem here and considered them merely a workaround. I have yet to try clipping/restricting the drawing area, but that looks promising.

Regards,

Stefan
Flag Flag