This section describes the configuration settings required in order for a field to adopt a particular field type on a generated entity form. For each field type, follow the steps in General Steps for Creating a Field and modify the Fields record as described in each section below.

Standard Text Field

To create a standard text field, configure the following options:

Multi-Line Text Field

To create a multi-line text field, configure the following options:

Check Box

To create a check box, configure the following option:

Date Selection Field

To create a date/time field that includes the calendar icon, configure the following option:

Time Field

To create a time field that does not include a date component, configure the following option:

Link Box

A link box provides a link to another entity, typically to the other entity's ID field. This field creates a foreign key in the database and establishes a one-to-many relationship between the new entity and the related entity. To create a link box, configure the following option:

If you want to support NULL for an optional foreign key, you must also select the Allow Null option on the field's General tab. In this case, Aptify stores NULL in this field if a user does not specify a value. If you do not select Allow Null for an optional foreign key, Aptify stores 0 in this field if a user does not specify a value. 

The example in the figure below illustrates a field that is linked to the Application entity's ID field.

Adding a Link Box Field

Joined Virtual Field

In a view, the value of the field shown in the above figure will be the ID of the Applications record that the user enters into the link box. To display a different field from the Linked Entity in a view (such as the Applications record's Name field), you need to add a virtual field to the entity. Aptify automatically adds virtual field information to an entity's Base View.

Aptify includes a wizard that assists with the creation of joined virtual fields. You can use this wizard or manually create the field yourself.

Using the Wizard to Create a Joined Virtual Field

The Aptify Entity Virtual Fields dialog appears automatically each time you save a new field that has a value selected for the Linked Entity field. You can also launch this dialog at any time by clicking the Add Virtual Fields... icon in the Fields tab's toolbar.

Add Virtual Fields Icon

Follow these steps to create a joined virtual field using the dialog:

  1. Create a Link Box or Data Combo Drop-down List field and click OK to save and close the Fields record.
  2. Click Yes to open the Aptify Entity Virtual Fields dialog.
  3. If the entity's Fields list has more than one linked field, select the linked field for which you want to create a virtual field from the Linked (Foreign Key) Field drop-down list.
  4. Select the Create column for each field for which you want to create a virtual field.
  5. If you do not want the Virtual Field to appear in views by default, clear the Default In View column option.
  6. Enter a name for the field in the Virtual Field field.
  7. Specify the name that you want users to see as this field's column heading in a view in the Display Name field.
  8. Enter a Description for the virtual field (optional).

    Aptify Entity Virtual Fields Dialog
  9. Click OK to create the field.
  10. Add any additional fields and save and close the entity.

When you create a joined virtual field using the wizard, Aptify automatically sets the virtual field's Join Type to Required or Optional depending on whether or not the linked field is required.

Note that if you modify the Is Required option for a linked field at a later date, the system does not automatically update the Join Type for that field's virtual fields. In this case, you need to manually edit the Join Type for each virtual field related to the linked field you modified. See Join Type for more information on this parameter. 

Manually Create a Joined Virtual Field

Open a new Fields record and configure the following fields:

Virtual Field Setup

The above describes how to create a virtual field for a corresponding linked entity (link box) field. Note that the you can also use virtual fields for other purposes, such as creating a calculated field. See Virtual Field Tab for additional options.

Standard Combo Drop-down List

To create a combo drop-down list field, configure the following options:

Drop Down Field Setup

Data Combo Drop-down List

A Data Combo drop-down field displays a list of records from another table in the database. A field of this type may or may not be linked to a field in another entity.

You should use this control if you want to provide users with a drop-down list of pre-populated items from another table or entity. By specifying a SQL statement, you define the drop-down's list contents and you can display more than one column from the corresponding table or entity.

The example in the figure below shows a data combo drop-down field that displays the records from the Applications service. In this example, the Application's ID and Name appear in the drop-down list. When a user selects one of the applications from the list, the system stores the Application's ID as the contents of this field and displays the Application's Name within the field when displayed on the form.

Sample Data Combo Box
Use the following settings to create a data combo drop-down list:

When you save a linked field for the first time, a message box appears asking if you want to create a virtual field for the linked field. See Joined Virtual Field for details. Likewise, when you delete a linked field and one or more virtual fields exist for the linked field, a message box appears asking you if you want to delete the virtual fields as well.

See About the Visual Designer Data Combo Box for more information on Data Combo Box component's Input Properties.

 

Data Combo Box Setup

Extended Attribute Fields

Aptify provides 17 extended field types. You can assign one of these extended types to a field to enable additional functionality for that field on the entity's generated form.

For example, if you mark a field with the WebURL Extended Type, an Internet Explorer icon appears next to the field on the entity's generated form. When a user enters a Web page in this field and clicks the icon, Internet Explorer opens to the page specified in the field.

To add extended functionality to a field, configure all necessary options for the field and then select the desired type from the Extended Type drop-down list.

Specifying an Extended Type for a Field
See Extended Type for the complete list of Extended Types.

Calculated and Computed Virtual Fields 

Calculated and Computed Fields are virtual fields that do not exist as fields in a database table. These fields use a specified transact-SQL expression to derive the value from other fields in Aptify. For Calculated Fields, this expression can include any field in the current entity, as well as subqueries to fields in other entities. For Computed fields, this expression can only reference fields that are in the same Base Table as the Computed field (that is, the entity's primary Base Table).

Aptify dynamically calculates the field's value either at the table level (for Computed fields) or within the Base View (for Calculated fields). Note that since virtual fields are not In Table, these fields are also not Updateable. Therefore, Calculated or Computed fields do not appear on generated forms.

Follow these steps to create a Calculated or Computed field:

  1. Open a new Fields record in the entity.
  2. Enter a name in the Name field.
  3. The Display Name field populates automatically when you click off of the Name field. Modify this name as necessary.
  4. If creating a Computed field, specify the entity's primary base table in the Base Table. Note that the fields that will be referenced in the Computed field's SQL expression must also reside in the primary base table.

    Fields Record Top Area

  5. If you are using localization, specify a the culture string that corresponds to this field's name in the Display Culture String field. This field is optional; see Localization for more information.
  6. Configure a SQL Data Type under the General tab, if desired.
  7. Click the Options tab.
  8. Clear the In Table option to display the Virtual Field tab.
  9. Click the Virtual Field tab.

  10. Select Calculated or Computed from the Virtual Field Type drop-down list.
  11. Enter the SQL expression that defines the value for the virtual field in the Calculated or Computed field.
  12. Click OK to save and close the Fields record.
  13. Save the entity.

Money Fields

In Aptify, a field that uses the money or smallmoney SQL Data Type can be expressed in one or more currencies, if the form also includes a CurrencyTypeID linked field. Then, when a user specifies a value for money field on an entity's record, Aptify automatically expresses that value in the selected Currency Type, using the appropriate currency symbol.

Follow these steps to add a money field that can be expressed in multiple currencies:

  1. If one does not already exist, add a CurrencyTypeID linked field to the entity.
  2. Open a new Fields record in the entity.
  3. Enter a name in the Name field.
  4. The Display Name field populates automatically when you click off of the Name field. Modify this name as necessary.
  5. Select money or smallmoney from the SQLData Type drop-down list.
  6. Select the Supports Multiple Currencies option.
  7. Select a pre-existing CurrencyTypeID linked field from the set of available fields in the Currency Type Field drop-down list.
  8. Continue configuring the field as necessary. See General Steps for Creating a Field for more information.