Multiple drop-down selection error

Certified Associate Developer

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 isA ctive data not inactive

  Discussion posts and replies are publicly visible

Parents
  • 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.

  • 0
    Certified Associate Developer
    in reply to Soma

      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 

Reply
  • 0
    Certified Associate Developer
    in reply to Soma

      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 

Children