Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
This page is for application designers and data modellers working on an ERD. It explains how to edit the properties of tables and their attributes.
Editing a Table
To change table details:
- In the ERD, to open a table's properties:
- either click on the table header bar
- or in the table header bar, click
and and selectInsert excerpt _more_options_erd _more_options_erd nopanel true
.Insert excerpt _edit _edit nopanel true
- PhixFlow opens the table properties; see Table for details about the options.
Editing Attributes
To change attribute details:
- In an ERD, in a table,:
- in the table, click an attribute listed in the table
- alternatively, open the table properties. In the Attributes section, double-click on an attribute name.
- PhixFlow opens the attribute properties; see Attribute for details about the options.
Things you might want to edit for an attribute:
- Change the attribute name
Update the Basic Settings → Name field and click
to save.Insert excerpt _finish _finish nopanel true Change the data type
You may need to do this if there is a change in the data or the wrong type was initially applied.
Click the Basic Settings → Type field drop-down and select a type from the list; see see Understanding Data Types.Note You can only change the data type for an attribute when it contains no data. If your attribute already contains data, see see Clearing and Loading Data in an ERD.
Adding an expression: Expressions can be added to attributes to apply processing or populate a value. For example, to uppercase the values in the attribute or setting a fixed string value. See Functions for all available options.
In an attribute you can add a script that affects the attribute data using the Basic Settings → Expression field; see Expressions and PhixScripts, Expression Basics and Functions. You can:check data in the attribute, for example to validate a value is present
process data, for example, to convert values to uppercase
populate an attribute with data, for example to set a fixed string value