I'm trying to source from two arrays at once to provide the list values based on the selection in another cell in the table.
My two array sources with a global variables (window.SQL_TermSize1 & window.SQL_TermSize2) to compare to the selected table values (e.g. 20 & 23):
{{(table1.data[table1.selectedDataIndex].ConnPinTermSize == window.SQL_TermSize1 ? WireGauge1.value : WireGauge2.value) || (table1.data[table1.selectedDataIndex].ConnPinTermSize == window.SQL_TermSize2 ? WireGauge2.value : WireGauge1.value)}}
The value and label is set to {{item}}:
The drop down list selection values adjust as expected based on the selection in the other cell value (e.g. terminal size 20 -> sees 20,22,24 & terminal size 23 -> sees 22,24,26,28). All the cells populate as expected from the selections:
The issue I'm having is that some of the cell values (wire gauge) disappear when selecting some rows:
I tried everything I could to no avail.
Clarification:
WireGauge1.value contains values (20,22,24) for window.SQL_TermSize1 (value 20)
WireGauge2value contains values (22,24,26,28) for window.SQL_TermSize2 (value 23)
What am I missing to get that value to remain visible?
If the source value changes for one terminal value (e.g. 20), terminal size of 23 wire gauge values disappears.
At this stage, the table hasn't been written to SQL database yet, so it has a mixture of table1.data & table1.changesetObject values.
How can I get both sets of wire gauge values to show once set to its terminal size?
Or can someone help me with a nested array with a list per terminal size:
Terminal size 20 (value in one drop down) -> dynamically provides a drop down list of 20,22,24
Terminal size 23 (value in one drop down) -> dynamically provides a drop down list of 22,24,26,28
In other words.
I need to have a dynamic drop down per TABLE ROW that keeps their values visible.
Since I can only provide a dynamic drop down list by COLUMN, Providing a hint of choice (20 : 23) and filtering wrong selections, this is the only solution I can come up with.
And help with this problem would be greatly appreciated.