on 01-10-2018 6:08 AM
Hi,
I'd like to know if there is an option to automatically define relationships between entities (CDM) or between tables (PDM) based on common column names (Primary/foreign keys). I have over 65 objects so its a painful task to do it manually.
Thanks,
Asif.
Of course, the same column name in 2 tables dies not necessarily imply a foreign key - primary key relationship. Nor do different column names in 2 tables imply the absence of such ...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Actually, for PDM, there is an option you can select. Go to Tools - Rebuild Objects - Rebuil References... It will automatically create references between PK column(s) in one table and columns with the same code and data type in another table. More details in PD help:
Data Modeling - Building Data Models - Physical Diagrams - References (PDM) - Rebuilding References.
HTH,
Ondrej
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There isn't an option you can select, but you can achieve what you using a simple script, which can be triggered/run in several ways. I suggest the best way to do it is to define a custom check that does the following:
In the script, be careful to avoid duplicate names - will need to check if proposed name already exists, if it does, suffix it with a (number)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.