Skip to main content
scottwillmona0001
July 30, 2023
Question

Local variable items

  • July 30, 2023
  • 5 replies
  • 0 views

My local variable is showing 1 item, but it should show 6 items. That is referring to only one value from the referenced table.
The dropdown using this local variable shows only 1 item in it. I need to make it show 6 items.

I have used the referenced table({}) this function also.

    5 replies

    mathieud0001
    July 30, 2023

    Can you expand both variables to see what they contain?

    My guess that you have a list of 1 item that contains 6 items. You would need to grab the first item of the list or just use a!flatten to fix the issue.

    scottwillmona0001
    July 30, 2023

    Thank you Mathieu, I tried removing the local variables and added it again, this time when declaring the value itself I used the {} array inside the parameter of the referred table in rule!. That worked.

    I'll try a!flatten also. Thanks.

    stefanhelzle0001
    Brainy
    July 31, 2023

    You said you removed and added that local variable again. Can you share the code that you use to declare that and how you load data from that reference table into it?