Skip to main content
November 13, 2025
Question

Issue with record user filter when duplicate names are present

  • November 13, 2025
  • 10 replies
  • 0 views

 I have a user filter with multiple dropdown and the drop down contains duplicate names of amendment but their application type and Line of business is different so there are duplicate names . As this is multiple dropdown if we select one duplicate name another duplicate name is also getting selected thats fine , but when I deselect one its not deselecting both, aby idea how to handle this


In the above picture I selected blood , but if I deselect one blood , its not getting deselecting unless I click on "cross" button in dropdown

a!localVariables(
  local!i18nInterfaceData: rule!INZ_I18N_loadBundlesFromFolder(
    bundleFolder: cons!INZ_CONS_INTERFACE_COMPONENT_INTERNATIONALIZATION_FILES
  ),
  a!recordFilterList(
    name: rule!INZ_I18N_displayLabel(
      i18nData: local!i18nInterfaceData,
      bundleKey: cons!INZ_CONS_TXT_INTERFACE_COMPONENT_INTERNATIONALIZATION & ".amendment"
    ),
    options: a!localVariables(
      local!fieldValues: rule!UWG_QR_fetchAmendmentMaster(
        fields: {
          'recordType!{d03af89a-4736-443f-aeec-958be8783ddf}UWG Amendment Reference Master.fields.{e9e1cb2d-be01-4514-96e3-48a7a00bc1c7}amendmentMasterId',
          'recordType!{d03af89a-4736-443f-aeec-958be8783ddf}UWG Amendment Reference Master.fields.{550a0445-1938-4c98-99e8-2e5387fbebd2}nameEnglish',
          'recordType!{d03af89a-4736-443f-aeec-958be8783ddf}UWG Amendment Reference Master.fields.{f239d136-06ca-415b-9dba-5b042d950340}nameFrench'
        },
        /*pagingInfo: rule!CL_pagingInfoAllRecordType(),*/
        pagingInfo: a!pagingInfo(
          startIndex: 1,
          batchSize: 5000,
          sort: a!sortInfo(
            field: if(
              userlocale(loggedInUser()) = cons!CL_CONS_TXT_LOCALE_EN_US,
              'recordType!{d03af89a-4736-443f-aeec-958be8783ddf}UWG Amendment Reference Master.fields.{550a0445-1938-4c98-99e8-2e5387fbebd2}nameEnglish',
              'recordType!{d03af89a-4736-443f-aeec-958be8783ddf}UWG Amendment Reference Master.fields.{f239d136-06ca-415b-9dba-5b042d950340}nameFrench'
            ),
            ascending: true()
          )
        ),
        returnRecordType: true,
        returnOnlyActiveData: true
      ),
      a!forEach(
        items: local!fieldValues,
        expression: a!recordFilterListOption(
          id:fv!index,
          name: if(
            userlocale(loggedInUser()) = cons!CL_CONS_TXT_LOCALE_EN_US,
            fv!item['recordType!{d03af89a-4736-443f-aeec-958be8783ddf}UWG Amendment Reference Master.fields.{550a0445-1938-4c98-99e8-2e5387fbebd2}nameEnglish'],
            fv!item['recordType!{d03af89a-4736-443f-aeec-958be8783ddf}UWG Amendment Reference Master.fields.{f239d136-06ca-415b-9dba-5b042d950340}nameFrench']
          ),
          filter: a!queryFilter(
            field: 'recordType!{bf842322-0f8a-429a-873a-f0d69ec9d438}UWG Amendment Reference.fields.{903a1a45-08d8-48a9-899c-d6750cd0d8f6}amendmentMasterId',
            operator: "=",
            value: fv!item['recordType!{d03af89a-4736-443f-aeec-958be8783ddf}UWG Amendment Reference Master.fields.{e9e1cb2d-be01-4514-96e3-48a7a00bc1c7}amendmentMasterId']
          )
        )
      )
    ),
    defaultOption: null,
    isVisible: true,
    allowMultipleSelections: true
  )
)

    10 replies

    stefanhelzle0001
    November 13, 2025

    I highly recommend to remove any duplicate options.

    likhithanAuthor
    November 13, 2025

    But the client need them

    shubhama926776
    November 13, 2025

    Do all the Blood entries have the same amendmentMasterId or different amendmentMasterId values?
    If Same Id : Use amendmentMasterId as the id.
    If Different Ids: You need to group by name first, then create one filter option per unique name with an array of Ids.

    likhithanAuthor
    November 13, 2025

    Its different Ids

    sujam912
    November 19, 2025

    Is this issue resolved? We are also facing the same issue

    peter.lewis
    Employee
    November 21, 2025

    I would strongly recommend creating something that has a unique value - for example, in the screenshot above it shows "Blood" and "Blood", but maybe it should be "Blood (Basic)" and "Blood (Advanced)" or something that probably makes more sense for the scenario.

    Having duplicates of either the value or the label will just lead to confusion, and it isn't clear to my why a user would prefer to have duplicates without any additional context.

    November 26, 2025

    In addition to this comment, I also recomment to create a master table to define all the 'Amendment' types as well a brief description for all of them. In the dropdown concatenate the type and the description