issue with multipleDropdownField while deselecting all selected value using cross button

Hi, 

I am using multipleDropdownField as filter for Grid data to populate. When I select one or more value, it is working as expected.

But when I remove or de-select all selected values using the cross button visible in multipleDropdownField, it should make the underlying rule input or local variable as null but it is not doing that.

Expectation is, whenever user de-select everything, grid should show all the details. 

As a work around, I have added an IF condition, to check if count of local!selected variable is 0, save null to local!selected for grid to show all the details.

  Discussion posts and replies are publicly visible

Parents
  • 0
    A Score Level 2
    5 months ago

    So, when you click the cross button, the value of the local variables retains itself ?

     

    Generally when you work with multiple dataset, you get an empty list (i.e., {}) and not a NULL exactly

    It depends how you are checking this local variable, are you using local!variable = null, as it might return false when its an empty set
    but, try something like a!isNullOrEmpty(local!varible) which would give you true in both cases, when your value is null or its empty set

    can you share code of how you have configured the dropdown / grid data set on this local variable?

Reply
  • 0
    A Score Level 2
    5 months ago

    So, when you click the cross button, the value of the local variables retains itself ?

     

    Generally when you work with multiple dataset, you get an empty list (i.e., {}) and not a NULL exactly

    It depends how you are checking this local variable, are you using local!variable = null, as it might return false when its an empty set
    but, try something like a!isNullOrEmpty(local!varible) which would give you true in both cases, when your value is null or its empty set

    can you share code of how you have configured the dropdown / grid data set on this local variable?

Children
No Data