Element Replacement

Tool Search: Element Replacement

The Element Replacement tool allows users to replace deactivated Ad hoc fields with the current field equivalent within Ad hoc filters, Ad hoc Letter templates, Behavior Letter templates, Attendance Messenger, Attendance Letters and Messenger templates. This tool also allows users to modify existing filters and templates containing deactivated Ad hoc fields without having to navigate away from the tool or replace the element with its current field equivalent. Additionally, replacing a field with the Element Replacement tool will replace the field and the operator's value if the replaced field was being used as the value.

This article includes the following topics:

Screenshot of the Element Replacement tool

Image 1: Element Replacement Tool

Users must have at least R(ead) tool rights for this tool in order to replace deactivated Ad hoc elements.

For more information about Tool Rights and how they function, see the Tool Rights article.

Replacing Deactivated Ad Hoc Fields

User can replace deactivated Ad hoc fields with the current field equivalent within Ad hoc filters and letter templates by using the Element Replacement tool.

Screenshot of a deactivated element selected and a list of filters containing the element with the option to replace the element with the suggested replacement field

Image 2: Replacing Deactivated Elements

To replace deactivated elements:

  1. Select the Object containing the deactivated element.
  2. Select the Deactivated Element to be replaced. In the example above, the field activeEnrollment.mealStatus is going to be replaced.
  3. Once an Object and Deactivated Element value is selected, additional informational fields will appear.
    • Deactivated Field - This indicates the deactivated field that is going to be replaced.
    • Replacement Field - This indicates the field that is going to replace the deactivated field.
    • Safe to Replace?
      • Yes - Indicates conversion between the deactivated field and the replacement field can occur without issue. Users are safe to replace elements with this value.
      • No - Indicates the replacement field does not correctly match the deactivated field and conversion issues may occur. Often this message occurs when the replacement field is a different data type than the deactivated field (i.e., a Date field is being replaced with a checkbox). Users should view each filter/template and determine if conversion should occur prior to replacing fields. See the Editing Ad Hoc Filters/Templates section below for information on viewing and modifying each filter.
    • Suggestion - Additional suggestions about the field conversion.
  4.  Review each filter/template impacted by the element replacement.
    • Name - The name of the filter/letter template.
    • User Last Name - The last name of the user who created and owns the filter/template.
    • User First Name - The first name of the user who created and owns the filter/template. This user will receive a message in their Process Inbox, indicating the element and filter/template changed.
    • Group Name - The User Group assigned to the filter/letter/template.
    • Type - The type of item being changed: Ad hoc filter, Ad hoc Letter Template, Behavior Letter Template, Messenger Template
  5. To view and modify the filter/template, select the View button. See the Editing Ad Hoc Filters/Templates section below for more information.
  6. Mark the Replace checkbox for each filter/template to have the element replaced.
  7. Select the Start Replacement button. The Element Replacement Test Mode editor will appear (see image 3).

The Element Replacement Test Mode editor will display a summary of all filters/templates that will have the field replaced. Verify the summary is correct and select the Continue with the Replacement button. The Element Replacement Result editor will appear (see Image 4).

Screenshot of a report indicating the filters that will be replaced with the recommended replacement element and the option to proceed to replacing them

Image 3: Element Replacement Test Mode

The Element Replacement Result editor summarizes which filters/templates were modified and allows you to print these results. To generate these results in PDF or DOCX format, click the Generate Report button, select a print format and click Generate Report (see image below). To continue without printing this report, click the OK button. 

Screenshot of the report indicating the filters which successfully had elements replaced and an accompanying screenshot of the format options available for generating the report

Image 4: Element Replacement Result

The user and/or members of the user group assigned to the filter(s) updated will receive notification of these changes within their Process Inbox (see Image 5).

Screenshot of the process inbox message users assigned an updated filter will receive once a filter is updated

Image 5: Message Indicating Filter/Template Change

The Element Replacement tool will also display an updated list of filters impacted by the Object and Deactivated Element values selected (compare Image 2 to Image 6 for an example).

Screenshot of the Element Replacement tool showing an updated list of impacted filters

Image 6: Updated List of Impacted Filters/Templates

Editing Ad Hoc Filters and Templates

Users can identify which filters/templates are impacted by the Object and Deactivated Element selected and modify the filter/template within the Element Replacement tool. This allows users to remove a deactivated field instead of replacing it.

Screenshot of viewing a list of impacted filters with the View button highlighted, showing the ability to view each filter individually

Image 7: Viewing an Impacted Filter/Template

To view the current setup of a filter/template, select the corresponding View button. The Filter/Letter Viewer or Message Designer Wizard will appear (see Image 8).

Screenshot of selecting the View button and viewing a filter containing an element highlighted in red font, indicating it is a deprecated field

Image 8: Modifying a Filter/Template

For the Filter/Letter Viewer, the deactivated field will appear in red. From here, users can modify and re-save the filter as necessary. 

Deactivated fields will not appear in red within WYSIWYG editors due to the fact that users can modify font colors.

For the Message Designer Wizard, the deactivated field within the letter will match the field listed in the Deactivated Field on the Element Replacement editor. Users can modify and re-save the template as necessary.

Removing the deactivated field and re-saving a filter/template will remove the filter/template from appearing on the Element Replacement tool as it no longer requires element replacement.

Screenshot of the impacted filter list no longer including a filter where the deactivated element was removed

Image 9: Element Replacement Tool

For example, the filter viewed in Image 7 and 8 was modified and had the deactivated element activeEnrollment.mealStatus removed. Because this filter no longer requires the element to be replaced, the filter no longer reports on the Element Replacement tool (see Image 9).