So I'm having difficulties with multi-level cascading dropdowns. I use these all the time but can't figure this one out at all.. I keep getting circular reference areas but can't figure out where they are and I must be missing something obvious !
Here's the setup
DD1 -datasource is a sharepoint list with one column BU. It's actually in a collection called CollBU the ID for this list is renamed BUID. I need this ID for the next dropdown so I have a text box TxtBUID.txt which pulls it out like this..
First(Distinct(Filter(CollBU,Title=DD1.Selected.Title),ID)).Result
that works fine.
I then want to use that ID for the next dropdown DD2 which comes from a collection called CollSpoc the sharepoint data source of this dropdown has 3 columns BSUID (which is the BUID number from list 1), Area, SPOC I want this dropdown to only show the relevant Area's for whatever is chosen in DD1 Here's what I put
Distinct(Filter(CollSpoc,BSUID=TxtBUID.Text),Area)
and I immediately get a circular reference error. Not only that but the next level down, which works normally if I haven't filtered DD2 also gives a circular reference error.
Here's what it contains and it works fine if I just leave DD2 with the full unfiltered list but the error carries down if I try to filter DD2.
First(Distinct(Filter(CollSpoc,Area=DD2.SelectedText.Area),SPOC.DisplayName)).Result
No clue !
Any ideas? what am I doing wrong?
Thanks