Skip to main content
October 19, 2024
Question

Multiple drop-down selection error

  • October 19, 2024
  • 12 replies
  • 0 views

I have inactive some value from table because of that this error is showing i want only active data in choicevalue i don't want inactive value. inactive value is showing because some inactive data is already save in somewhere so how we can handle this error i have already query data with isActive true.because i want only isActive data not inactive

    12 replies

    kumara0180
    October 19, 2024

    you have duplicate choice values , one of them is 78. Try to run the rule independetly which is fetching the values for drop down and check what could be reason for getting duplicate values.

    Or share the code for local values which you have created for us to help you further

    October 19, 2024

    The value is coming correct through a rule which are using for dropdown

    kumara0180
    October 20, 2024

    Is your first component multiselect ? Are there two values in first component which could bring the same value for 2nd component. 

    try running your rule with that values as parameters for 2nd component values. If that is what happening, you would need to pass unique parameters as input for rule. Use union function to remove duplicate values 

    somasundaram.d
    October 20, 2024

    Drop down expects unique values as choiceValues. In your case 78 is repeated twice.

    Please check if by any chance count(local!getRegion) = 77. If it is so, the choice value array will have 78 inserted which is already present as part of choice value.

    Also, I suggest to use 0 or any other uncommon number to be inserted for "Select All" logic. Because, some times the result of count(local!getRegion) can be same as the id value in choice values.

    October 23, 2024

    yes it is write it has behaving same count(local!getRegion) fetch another 78 Id. so i have inserted a uniques value for select all in the DB and on the basis of regionid i get all list so Select all value is also coming on the list and i have removed this logic count(local!getRegion) only passing the list in choicevalue now the problem is showing when i clicked on select All it has selcted all value from dropdown but select All is also come up. that select All i don't want to selected 

    October 23, 2024

    please suggest me some approach that how can we remove select all from the selected dropdown value

    prasantap0900
    October 21, 2024

    choiceValue 78 is duplicating.