I'm experimenting with a master datalist that has all the data for my dropdowns in different columns so I can dynamically retroactively change that data on the fly now
such that one form can be used to cross-reference across multiple different departments
the master list is 'additional information' and is a SharePoint list
much like a branching decision tree I would like to Change the values of dropdowns further down the chain
something like below, where the default return is the list of departments again 'additional information'.'title'
Switch(
departDROP.SelectedText.Title,
"referancetext1",
'Additional Information'.'column1',
"referancetext2",
'Additional Information'.'column2',
"referanvetext3",
'Additional Information'.'column3',
"referancetext4",
'Additional Information'.'column4',
'Additional Information'.'Title'
)
I have a "department" dropdown -> now based on the department I want to change the options of my sub-department dropdown
for example if I select HR for my department, I would like to only show the relevant sub departments personnel, billing , inquiries
all of those options are stored in additional information in a column labeled 'HR-subdepart' as text
Switch(
departDROP.SelectedText.Title,
"HR",
'Additional Information'.'HR-supdepart',
"referancetext2",
'Additional Information'.'column2',
"referanvetext3",
'Additional Information'.'column3',
"referancetext4",
'Additional Information'.'column4',
'Additional Information'.'Title'
)
this code doesn't error, once completed of course,(just trying to make this as generic as possible)
however is warns
"Warning: the columns produced by this rule are all nested tables and or records, however the property expects at least some columns of simple values (such as text or numbers)."
and my dropdown functions but has nothing in it see image.
I'm attempting to use this one form to handle the data from multiple department by limiting the possible inputs based on the structure of decision trees (hopefully that made sense)
any help would be appreciated