Cascading drop down in a grid

Hi,

We have an issue with cascading drop downs within a grid. As there are two sets of drop downs which are dynamically updated within the grid. 

However where we have multiple rows, when one drop down is set to the place holder; the related drop down where we set the ri to null will throw the error below

Could not display interface. Please check definition and inputs. Interface Definition: Expression evaluation error at function a!forEach [line 25]: Error in a!forEach() expression during iteration 3: Expression evaluation error at function a!dropdownField [line 71]: A dropdown component [label=“”] has an invalid value for “value”. All selected values must be present in the choiceValues array, but value was 11 and choiceValues was .

 


 

  Discussion posts and replies are publicly visible

Parents Reply Children
  • 0
    Certified Lead Developer
    in reply to jansenn
    Have you double-checked that you're setting the value of the correct variable to null? Also, have you double-checked that the dropdown field in question has a placeholder defined, as the error would also happen if there's no placeholder?

    Various possibilities include:
    1) setting the value of the variable in question to null() in your saveInto
    2) simply not showing the dropdown field in question when the value of the next-higher-up dropdown is not set
    3) probably some others that i'm not thinking of at the moment and/or depend on the exact scenario

    As the earlier comments mentioned, we can help you a lot better if you provide the code section you're working with - otherwise there's no real way to help check for errors etc.
  • Thanks Mike. Just as you and Ramanjaneyulut suggested, I've included the code snippet. Just as you were replying :-)
    I've tried solution 1 and that's how it was setup originally. My colleague has tried solution 2 and it has the same issue. I'm going to try a variation of 2 and see how I go