I know there's a trick. Can I drag a table from the browser onto a new
diagram and have it bring connected objects as well?
As a corollary, can I drag two tables which have a link onto the
diagram and get the link to show up without having to select the link
out of the browser?
--
Paul Horan[Sybase]
http://blogs.sybase.com/phoran/
"Mark Brady" <fod...@gmail.com> wrote in message
news:f4da6a7c-2408-4594...@p23g2000vbl.googlegroups.com...
> Memory is a little fuzzy on this, but isn't there a
> "Complete References" option? So you drag the tables you
> want (which come over without references), then you
> "Complete References" and it creates them in the new
> diagram.
>
> --
> Paul Horan[Sybase]
> http://blogs.sybase.com/phoran/
>
> "Mark Brady" <fod...@gmail.com> wrote in message
> news:f4da6a7c-2408-4594...@p23g2000vbl.goog
> > legroups.com... Ok,
-Matt C.
Matt Creason
Principal System Consultant, PowerDesigner
Yeh but that requires that I have the references named, if I've just
reversed something I have a huge list of numbered references.
The second is yes. After adding the two tables, go to Tools, Complete
Links.
I'm not sure you can do this with drag & drop but you can create a
context menu to get all the associated objects and add the
relationships.
Not my code originally, but I don't recall where I found it:
1. Create a custom method on the Table metaclass and paste this code
in:
Sub %Method%(obj)
Dim References
Dim Reference
Dim simple
set References=obj.OutReferences
for each Reference in References
set simple = activediagram.AttachLinkObject(Reference)
next
End Sub
2. Create a custom menu and place this method in it (we called it Get
Parent Tables).
Then you can create your first table on an empty diagram, right click
and get all it's parents.
Here's the child table code. Using these two methods you can start
with one table and just add child/parent tables until you've got all
the items you want on your diagram.
Sub %Method%(obj)
Dim References
Dim Reference
Dim simple
set References=obj.InReferences
for each Reference in References
set simple = activediagram.AttachLinkObject(Reference)
next
End Sub
Dear rkkier,
You propose perfect solution. Could you tell me how in
detail?
Another way is for you to drag the relationship from the browser to the
diagram. This will bring the attached tables with it.
Chris
"Yongsheng" wrote in message news:4accba67.46d...@sybase.com...