cancel
Showing results for 
Search instead for 
Did you mean: 

How can I draw separator line in a table object like ERWin?

0 Kudos

Hi,


Can I separate primary keys from the others(not PKs) by separator line like ERWin?

I think this is customizing issue but my question is that is possible draw separator line in the table in PowerDesigner PDM?

Your help will be so much appreciated.

Regards,

Insung Lee

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Insung,

actually this could be done pretty easily. You just have to use combination of PDs great capabilities (and exclude those, which should work, but they don`t:) ). It is combination of Calculated collection (which creates list of non-primary columns) and proper adjustment of Content in Display properties (Display properties - Table - Content - Advanced...). See attached screenshot to make better picture of this ... actually... workaround, because this should be done more straightforward, PD has means for that in the Customize Content window. Hope this helps.

Regards,

Ondrej

GeorgeMcGeachie
Active Contributor
0 Kudos

Nice!

The equivalent script for a LDM is almost the same:

Function %Collection%(obj, coll)

   '  Create a collection of the attributes that are in the entity's primary identifier

      Dim att

      For each att in obj.Attributes

             If att.PrimaryIdentifier = false then

                   coll.Add att

             End If

     Next

  

   %Collection% = True

End Function

Answers (1)

Answers (1)

former_member186838
Active Participant
0 Kudos

Hi Insung,

think this is impossible,

The only way to customize the style of a table is to change the Format.

There you cannot define any separator lines for instance for the shape of the table.

If you like to change the style of PK column you only can change the font of the subobject via the sub-object Format.

Another way to change the style of a symbol is to use "Custom Symbol" in an extension.

It might be possible to create an extension to give a table a "Custom Symbol" that simulates such a separator line but i think this becomes very complex.

BR

Stefan