If you have a comment on this topic, contact Aptify Documentation. If you want to return to the Aptify Community Site, please click here.

Adding Links to a Pivot Table View in the Desktop Client

A pivot table can display information from multiple entities. For example, you can create a pivot table of the Companies service that displays person, order, or contact log data.

Follow these steps to add a linked entity to a pivot table:

See Example Linked Entity Records for some sample Linked Entities records.

 

  1. If not already opened, click the Pivot Table > Links tab in the pivot table view's properties dialog.
  2. Click the New icon to open a new Linked Entities record.
  3. Select the linked entity in the Linked Entity drop-down list.
    • Select an entity that has a link to the entity to which you are adding the pivot table. The drop-down also displays sub-type entities.

  4. Select the field in the linked entity that links to the current entity in the Linked Entity Field drop-down list.
    • The drop-down list displays all of the fields from the entity you selected in the Linked Entity field.

  5. Enter a View Alias for the related entity.
    • Aptify uses the view alias to qualify fields in the SQL statement. Aptify recommends that you use the initials of the linked entity as the view alias.
    • Note that each linked entity must have its own view alias. In other words, you cannot assign two linked entities the same view alias.
    • This is not a required field; Aptify will automatically generate a View Alias if you do not provide one.

      Specify Linked Entity
  6. Specify the Join Type between the linked entity and the current entity: Optional or Required.
    • Optional: Select this option if the relationship between the current entity and the linked entity is optional. For example, a Persons record does not need a company assignment. Therefore, you should select Optional if adding Persons data to a Companies pivot table.
      • For advanced users: The Optional setting create a Left Outer Join in the SQL statement that defines the pivot table's available data.

    • Required: Select this option if the relationship between the current entity and the linked entity is required. For example, an Order must have a Ship To Person (which corresponds to the ShipToID field). Therefore, you should select Required if adding Orders data to a Persons pivot table.
      • For advanced users: The Required setting creates an Inner Join in the SQL statement that defines the pivot table's available data. It prevent all records that do not have corresponding records in the current entity from being included in the dataset.

  7. If the linked entity is associated directly with the current entity, leave the Join View field blank.
    • This is the setting for most Linked Entities records.
    • Advanced users who are linking in data across multiple relationships may have to select a Join View from another linked entity. In this case, the Join View drop down list populates automatically with the list of available view aliases already defined as Linked Entities records.
    • See Linked Entity With a Non Blank Join Table for an example of a Linked Entities record that does not have a blank Join View.

  8. Select the Join Field from the drop down list.
    • This drop down list displays the list of fields from the selected Join View. If the Join View is blank, the drop down list displays the list of fields from the current entity.
    • In the example below, The Linked Entity will add Persons data to the Companies service's pivot table based a relationship where the Person's Company ID equals a Company's ID (in SQL format, vwPersons.CompanyID = vwCompanies.ID).

      Specify Join Field
  9. If the linked entity relationship requires an additional constraint or filter, click the Result Constraint tab and enter the constraint.
  10. Click the Fields tab to display the list of fields from the selected Linked Entity.
  11. Select a field from the Available Fields column (on the left) and press the right arrow buttons (>>) to move it to the Selected Fields column (on the right).
    • The fields that appear in the Selected Fields column will appear in the Pivot Table's Field List and can be added to the pivot table as needed.
    • You can also double click a field to move it between the columns.
    • To select multiple fields, hold down the Ctrl or Shift key and select the fields. (Holding the Ctrl key while clicking fields highlights only those fields that you select. Holding the Shift key while clicking two fields highlights all of the fields between the two selected fields.)

      Selecting Fields from Linked Entity to Include in the Pivot Table
  12. Modify the Description (that is, the Display Name) for each field in the Selected Fields column, as necessary. Follow these steps:
    1. Select a field in the Selected Fields column.
    2. Right click within the field to display the Display Name Setup dialog.
    3. Enter the new display name for the field.
    4. In the figure below, the display name for the FirstLast field has been changed to "Full Name" and the display name for the Persons entity's ID field has been changed to "PersonID".
    5. The viewing system will use the specified display name as the alias for the field within the pivot table. This is particularly important if you plan to use a non default Detail Navigation (see Specifying Detail Navigation Settings for a Pivot Table).

      Modify Field's Display Name
    6. Click OK to close the dialog and apply the new display name.
    7. If needed, click the Comments tab and enter any additional information about this Linked Entities record.
    8. Click OK to save and close the Linked Entities record.

  13. Add additional Linked Entities records as needed.

Pivot Table with Multiple Linked Entities

 

Copyright © 2014-2019 Aptify - Confidential and Proprietary