We have an existing canvas app that we're excited to move to using the new Relational Data, option sets, and other new features for CDS functionality.
We have a number of cascading dropdowns and comboboxes in our app. By cascading, I mean that you first choose the top level dropdown, then the items in the next dropdown are filtered by that selection. Then a choice is selected in that dropdown, and the next dropdown is filtered by those choices. As we've got some proprietary stuff in the data types, I'll use Country, State, City, Street, Street Number as an example.
Data source is CDS, with the following relationships built in Dynamics/Powerapps
Country is 1:N to State
State is 1:N to City
City is 1:N to Street
Street is 1:N to Street Number
First you select the Country, then the next dropdown shows a lists of states in that country, then a state is selected, and the next dropdown shows the list of cities in that state, one is selected, and so on. At the bottom level, we have 10,000 - 100,000 records, so the hierarchical dropdowns are super important to getting to the proper record quickly.
Currently, the app is written using Filter commands for the items in each combobox/dropdown and works very well. I'll use ComboBoxes for the example, but we have a mixture of comboboxes and dropdowns
Items are defined as such:
StateComboBox: Filter(States,CountryText=CountryCombobox.Selected.'Primary Name')
CityComboBox: Filter(Citys,StateText=StateCombobox.Selected.'Primary Name')
StreetComboBox: Filter(Streets,CityText=CityCombobox.Selected.'Primary Name')
StreetNumberComboBox: (StreetNumbers,StreetText=StreetCombobox.Selected.'Primary Name')
The workaround we've had to use (that we're very excited about getting away from) is that for each Entity, when we add records, we copy over the Looked up Field for each relationship from the GUID into a Text field, which we then use for the filtering. For example, when we add a new State, we associate it to a Country in our model-driven app to link the GUID, but then we have to copy over the Country Look up field into the CountryText field (this is a clunky workaround to the non-delegable Filter onto a Look up field, since you can delegate a filter onto a text field in CDS)
Based on the new guidance, it seems that the new items for the dropdowns should look much simpler, and avoid the workaround for filtering based on text fields copied over from lookup fields. From what we can gather, the items lists should look like this for the comboboxes with the new functionality
This follows the formula as I understand it - the items for a Second Control based on selected value from a First Control should be FirstControl.Selected.'Related Entity Name'
The problem is that while those functions do not throw errors, they return no records. Each dropdown/combobox shows no items (aside from Country).
What am I doing wrong? I've tried everything I can think of over the past couple days and can't get it to work.
We've looked through these posts to no avail