Copy the PharmaMeInviteeEvent EntityList from the contactmededfilter.xml file and paste it as one of the nodes into the contactfilter.xml child entity.
- Select Entity - PharmaMeInviteeEvent and in Property Inspector, set the value of the ChildKey attribute to ContactId, as shown in the following example.
- Find and select the ContactId field under Entity - PharmaMeInviteeEvent and set the ForeignKeyTo attribute to Contact, as shown in the following example.
In the following example, the ChildKey is CondactId and the ParentKey is Contact.ContactId. For more information about creating a filter, see Creating a Filter Definition File Using the Filter Functionality.
<EntityList Type="ListOfMedEd_Events" NoSync="N" Inactive="N" Associate="N"
CascadeDelete="N" Insert="N">
<Entity Type="PharmaMeInviteeEvent" Entity="PharmaMeInviteeEvent"
CascadeDelete="N" Childkey="ContactId" Parentkey="Contact.ContactId">
<Field Type="Id" Datatype="DTYPE_TEXT" Entity="PharmaMeInviteeEvent" Attribute="Id" RowId="Y" UserKey="0" Filterable="Y" Required="N" ReadOnly="Y" NoSync="N" SystemField="Y" Inactive="N"> <Constraint Id="UNIQUE"/> <Constraint Id="NOT NULL"/> </Field>
<Field Type="Created" Datatype="DTYPE_UTCDATETIME" Entity="PharmaMeInviteeEvent" Attribute="CreatedDate" SystemField="Y"
DefaultValue="" RowId="" Required="N" NoSync="N" Filterable="Y"/>
<Field Type="CreatedBy" Datatype="DTYPE_TEXT" Entity="PharmaMeInviteeEvent" Attribute="CreatedById" RowId="N" UserKey="" Filterable="Y" Required="N" ReadOnly="Y" NoSync="N" SystemField="Y" NoColumn="N"
ForeignKeyTo="SYS_CurrentUser"/>
<Field Type="Updated" Datatype="DTYPE_UTCDATETIME" Entity="PharmaMeInviteeEvent" Attribute="ModifiedDate" RowId="N" UserKey="" Filterable="Y" Required="N" ReadOnly="Y" NoSync="N" SystemField="Y"
NoColumn="N" Inactive="N"/>
<Field Type="UpdatedBy" Datatype="DTYPE_TEXT" Entity="PharmaMeInviteeEvent" Attribute="ModifiedById" RowId="N" UserKey="" Filterable="Y" Required="N" ReadOnly="Y" NoSync="N" SystemField="Y" ForeignKeyTo="SYS_CurrentUser"/>
<Field Type="ContactId" Datatype="DTYPE_TEXT" Entity="PharmaMeInviteeEvent" Attribute="ContactId" RowId="N" UserKey="" Filterable="Y" Required="Y" ReadOnly="N" NoSync="N" SystemField="N" Inactive="N" ForeignKeyTo="Contact"/>
<Field Type="EventId" Datatype="DTYPE_TEXT" Entity="PharmaMeInviteeEvent" Attribute="EventId" RowId="N" UserKey="" Filterable="Y" Required="N" ReadOnly="Y" NoSync="N" SystemField="Y" NoColumn="N" Inactive="N" />
<Field Type="EventName" Datatype="DTYPE_TEXT" Entity="PharmaMeInviteeEvent" Attribute="EventName" RowId="N" UserKey="" Filterable="Y" Required="N" ReadOnly="N" NoSync="N" SystemField="N" NoColumn="N" Inactive="N"/>
<Field Type="Objective" Datatype="DTYPE_TEXT" Entity="PharmaMeInviteeEvent" Attribute="Objective" RowId="N" UserKey="" Filterable="N" Required="N" ReadOnly="N" NoSync="N" SystemField="Y" NoColumn="N" Inactive="N"/>
</Entity>
</EntityList>