Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This page is for....TODO

Overview

Intro text to addTODO


Properties

Insert excerpt
_standard_settings
_standard_settings
nopaneltrue

Basic Settings

...

FieldDescription
NameEnter the name for the entity-relationship diagram. When yo press Return or save a new properties tab, PhixFlow opens an empty diagram in the workspace on the left.


Drawing Entity-Relationship Diagrams

To create an ERD, in the application repository, right-click ERD and select 

Insert excerpt
_add
_add
nopaneltrue
. PhixFlow opens the properties for diagram, where you can add the name and a description for it. When you press Return or save a new properties tab, PhixFlow opens an empty diagram in the workspace on the left.

Adding Entities

To open an existing ERD:

  • either, in the Repository, right-click the name and select Display.
  • or, in the properties toolbar, click the ERD icon (TODO add).


Entities are represented by streams and their attributes.

To add an existing stream, from the repository, drag an existing stream into the diagram. PhixFlow adds the stream and all of its attributes.

To add a new stream.

  1. from the toolbar, drag the stream icon (TODO add) into the diagram.
  2. Enter a name for the new stream and click
    Insert excerpt
    _dialog_finish
    _dialog_finish
    nopaneltrue
    . PhixFlow opens a new Stream properties tab.
  3. To add attributes to an entity/stream, in the stream properties → Attributes section toolbar, click 
    Insert excerpt
    _add
    _add
    nopaneltrue
    .
  4. In the new attribute properties, enter details for the Stream Attributes.

As streams can contain many attributes, you can collapse the view to show only primary and foreign keys. TODO ADD screenshot

Adding Relationships

To add a relationship, click on one attribute and drag the mouse pointer to an attribute in another stream. PhixFlow extends a red arrow line. Click on an attribute name to connect the two.

When you create a relationship, PhixFlow:

  • sets the origin attribute to be a Primary Key which must be unique.
  • sets the destination attribute to be a Foreign Key
  • creates a one-to-many relationship

The Primary Key and Foreign Key are properties of the Stream Attributes. (TODO ADD the new properties to attributes)

If neither attribute is a key, or both attributes are primary keys, PhixFlow creates a one-to-one relationship.

If you connect two primary keys, PhixFlow creates a 1 to 1 relationship.


ERDs and Relational Views

TODO - Add how ERDs and Relational vies interact.


TODO - Possibly bugs or possibly me...

  • I ended up with 3 streams that did not appear until the diagram is saved
  • I tried to link 2 non-key attributes. The from point kept going to the primary key attribute. I had to drag the correct attribute from the stream attributes into the relationship.
  • relationship end points can be drawn a long way from the mouse. 


Toolbar

Image Added

TODO Same as Model Window Toolbar Icons

Organise selected objects in a grid.

Align all selected objects left.

Align all selected objects right.

Align all selected objects to top.

Align all selected objects to bottom.

Distribute all selected objects horizontally. Changed ICONICON TODO

Distribute all selected objects vertically. Changed ICONICON TODO


Drag into the diagram to add a stream, or click to open the list of streams in the repository

SaveSave TODO

RefreshRefresh TODO

HelpHelp TODO