Versions Compared

Key

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

An organization can configure an entity to use a specially designed form or specialized functionality. To implement this specialized behavior, a developer creates a .NET assembly that defines the entity's extended functionality. These assemblies are then stored in the Object Repository and are added to the entity on the Plug-Ins tab using the Plug Ins record. The entity uses the plugins specified on this tab to override standard functionality with the functionality specified in one or more plug-ins.

Plug In Types

The Entity Plug In Types service stores the list of available plug-in types. Plug-in types may be global or entity-specific. A developer can create additional Plug In Types as necessary. See Entity Plug In Types Form for information on this form.

The standard Aptify installation includes seven global types as well as a number of entity-specific types. This section describes the global types.

  • Viewer (1): This plug-in type corresponds to an alternate data form for the entity. In Aptify, entities with specialized viewer forms include Views, Entities, Archive Runs, Scheduled Tasks, and Base Fields.
  • Entity (2): This plug-in type indicates that the object implements specialized business logic for the entity. Typically, this plug applies to entities that require additional functionality beyond the standard implementation. For example, the Views, Entities, Archive Runs, Scheduled Tasks, and Base Fields entities all have an Entity plug-in.
  • Duplicate Check (3): This plug-in type corresponds to an object that implements entity-specific duplicate checking behavior.
  • Extension (4): This plug-in type corresponds to an object that implements an entity-specific right-click context menu.
  • Verification (5): This plug-in type corresponds to an object that implements entity-specific record verification behavior.
  • Find (6): This plug-in type corresponds to an object that implements an -entity-specific Find dialog.
  • Merge (7): This plug-in type corresponds to an object that implements -entity-specific record merging behavior.
  • Excel Integration (37): This plug-in type defines the Excel Export wizard for the entity and overrides the default Excel Integration logic specified in the Views entity (or the core Excel Integration component if a default integration plug-in is not specified in the Views entity). You can also define a default configuration for all views within Aptify using the Excel Integration Default plug-in type o f the Views entity. See the Excel Integration WizardExcel Integration Wizard section of the ReportingReporting Reporting chapter in the Aptify User Guide for more information.
  • Data Pack: This plug-in defines the Data Pack Wizard for the entity and overrides the default packing logic.
  • Data Unpack: This plug-in defines the data unpack Wizard and overrides the default unpacking logic.

...

Once a developer has created the plug in, follow these steps to add the new plug-in to an entity:

Note

These steps describe how to add a plug-in to an entity after a developer has created the .NET assembly; these steps do not describe how to write a plug-in. Aptify provides information on creating entity plug-ins in the Developers training course. Students in this course gain first-hand experience creating entity plug-ins in a test environment. Contact Aptify for more information. Additional developer information is also available in

...

the Aptify Software Development Kit (SDK).

  1. Add the plug-in's object file to the Object Repository.
    • See Creating Object Repository Objects for more information on adding new items to the repository.

  2. If the plug-in provides functionality that is not already described by an existing plug-in type, create a new record in the Entity Plug In Types service as directed by the plug-in's developer.
    • In general, any new Entity Plug In Types records you create should be specific to a particular entity.

  3. Open the entity's record in the Entities service.
  4. Click the Plug-Ins tab.
  5. Open a new Plug Ins sub-type record.
  6. Select the Plug In Type from the drop-down list.
    • See Plug In Types for the list of global types.

  7. Enter the Object Repository location of the plug-in's object in the Object Name field.
    • Alternatively, you can click the plus (plus) icon to the right of the field to open the Select Object Repository Object dialog. You can use this dialog to browse for an existing object or to add a new object to the repository (if you have not done so already). See Creating Object Repository Objects for details.

  8. Enter the plug-in's .NET assembly name in the Assembly Name field.
  9. Enter the class within the .NET assembly that implements the plug-in's functionality in the Class Name field.

...


  1. Plug Ins RecordImage Added
  2. Click OK.
  3. Save and Close the Entities record.
  4. Close and reopen the Aptify client.
  5. Use the records in the entity to preform a test to confirm that the system successfully uses the functionality defined by the plug-in you added.

...

Sample Duplicate Check Objects

Aptify provides the compiled object and source code for two sample duplicate check objects: one for Persons and one for Companies. A developer can use these samples as a basis for writing his or her own duplicate check object for an entity. Note that these objects are provided as samples only since what may be considered a duplicate will vary from entity-to-entity and from organization-to-organization. Additional sample duplicate check objects are included with the sample application. See the Aptify Developer Guide for details.

The sample objects use the following logic to identify duplicates:

...

  1. Open the Entities record for Persons or Companies and click the Plug-Ins tab. 

...


  1. Entities RecordImage Added

  2. Click the New icon in the sub-type toolbar to open a new Plug-Ins record.
  3. Select Duplicate Check from the Plug In Type drop-down menu.

  4. Enter the Object Repository location for the sample duplicate check object in the Object field.
    • For the Persons duplicate check object, enter CRM.AptifyPersonDupeCheck.
    • For the Companies duplicate check object, enter CRM.AptifyCompanyDupeCheck.

  5. Enter the object's Assembly Name in the field provided.
    • For the Persons duplicate check object, enter AptifyPersonDupeCheck.
    • For the Companies duplicate check object, enter AptifyCompanyDupeCheck.

  6. Enter the applicable Class Name in the field provided.
    • For the Persons duplicate check object, enter Aptify.Applications.CRM.PersonDupeCheck.
    • For the Companies duplicate check object, enter Aptify.Applications.CRM.CompanyDupeCheck.

...


    • Plug-Ins Record Image Added
  1. Click OK to save and close the Plug-Ins record.
  2. Save and close the Entities record.
  3. Close and reopen Aptify.
  4. Test the duplicate check object by attempting to save a new Persons or Companies record that has the same name as an existing record.

Duplicate Check -Message Image RemovedDuplicate Check -MessageImage Added