Relations

Top  Next

PTSS Company Logo

Relations

 

Relations(1) is a feature available in all our spatial products. It is found in the Data tab(2) of the spatial pane:

 

RELATI~1_img2

 

This tool is used to create master-detail links between layers. It works with top level layers meaning a layer that contains a set of sublayers(1):

 

RELATI~1_img3

 

In this example I will be creating a link between layers: Warehouses and Outlets. I start by having my top level layer called JewleryDelivery highlighted by clicking on it(1). I then click on the tool which brings up the Relations dialogue(2) where I can set up relations for this layer:

 

RELATI~1_img4

 

RELATI~1_img5

 

Start by clicking the Add Relation(1) button to create a new relation:

 

RELATI~1_img6

 

The new relation is shown in the Relations box to the right(1). Put in the relation name by Relation Name(2). Then specify the Parent and Child layer in the relation(3); the Parent being the source layer and the Child being the layer being linked to. Then choose what column/s you will be linking on in the Parent and Child layers(4):

 

RELATI~1_img7

 

Finally click Save(1) and your relation will have been created. If there is any problem in linking and creating the relation you will be told when you click Save:

 

RELATI~1_img8

 

If we now go to view the Layer Data Grid of my Warehouses layer you will see a little plus next to each record(1) which if I open will show the related outlet(2):

 

RELATI~1_img9

 

RELATI~1_img10

 

If I now right click on my Outlets layer and go to text labels you will see I now have more options of labels to put because of this relation that has been created(1). I will choose one of these as a label which will display a label of which warehouse each outlet belongs to in my scene(2):

 

RELATI~1_img11

 

RELATI~1_img12

 

This is just an example of one of the ways in which the relations can be used. You can also take advantage of relations in applying themes to layers as well so that you theme on some related column in a linked layer.

 

You can set up more than one relation for your layer(1), just follow the same steps to create another. To remove a relation click the Remove Relation(2) button:

 

RELATI~1_img13

 

What you can now do is save the layer out as an SVU file with the linked data columns that you would like to have included in the layer. With this tool you are able to create multiple relations between layers which can all then be saved out in one layer. How this is done is shown below:

 

RELATI~1_img14

 

RELATI~1_img15

 

In the Save as Spatial VU Files dialogue that comes up you can choose which linked columns you’d like to export in saving to file. I will choose to keep just

OutletToWarehouse>Warehose out of the linked columns and I will name it Warehouse(1) and delete the rest using the Delete(2) button. Then I will click Save(3):

 

RELATI~1_img16

 

RELATI~1_img17

 

If I bring in this new saved file and view its data you will see the extra linked column I chose to include in it(1):

 

RELATI~1_img18