How to Retain Approved Items in Matrix LPG When Still Matched by Dynamic Filter

The feature involves the addition of the advanced property keepApprovedUnmatchedXPGI. When set to true, this property ensures that, for the XPGIs (LPG Matrix Type Items) with a Dynamic Filter in the Add Only mode, approved XPGIs will remain in the grid even if the secondary logic does not return those keys in subsequent recalculations.

Functionality Overview

LPG (MATRIX Type) with the Dynamic item filter

  • SKUs matched in the Dynamic item filter will be added or recalculated.

  • When using the Add Only mode no SKUs deletion occurs.

  • When using the Add & Remove mode, all the LPG (Matrix Type) items will be deleted for the particular SKU.

Default Behavior

  • SKUs from the Dynamic item filter are processed by the logic for secondary keys.

  • LPG items corresponding to SKUs not returned by the logic for secondary keys will be deleted, even if those items are already approved.

Altered Behavior

To prevent the deletion of the LPG items that are not returned by the logic for secondary keys, follow these steps:

  1. Go to Configuration > Advanced Configuration Options.

  2. Click Add.

  3. In the Add Option window, insert the following values:

    • Name keepApprovedUnmatchedXPGI

    • Value true

This enhanced behavior allows for improved management of the approved items within the LPG, ensuring that important data remains intact despite changes in the dynamic filter.