Hello all
I am learning to use Power Apps mostly via Power Apps for Teams and I am encountering "faulty-like" behaviour from the combo box control.
I intend working with a column(s) that will contain duplicate values and I would like to get the distinct values for the column(s).
Since we don't have the dropdown control with Power Apps for Teams I am learning/testing by using the combo box.
The combo box is being used within an edit form set to New mode. This is to simulate the business table/workflow I am thinking of setting up for colleagues to work with.
When a table containing duplicates is connected to the combo box (Image 1) it works/displays values as expected.
When the distinct function is used, the weirdness begins. As shown in Image 2, the results from the function are returned but are not displayed/not visible by/in combo box.
In image 3, I successfully use the label control, that comes with the datacard, to visualise the selection made in the combo box to prove that it is there.
I then thought to try the same code but with the combo box outside of the data card. This time the combo box visualises its results, but not in the text format of the datasource, but rather using "random" numeric values, as shown in image 4.
So I tried a test, by using a hardcoded text array as the item property for the combo box, without the distinc function, to check what options I would be able to select, and again the combo box displays numeric values. See images 5 & 6.
The datasources I have tested and experienced issues with are dataverse for teams and also SharePoint. The behaviour of the combo box is consistent for both.
This is quite frustrating for this beginner to understand.
Can someone suggest if there is some learning/code adding that needs adding somewhere.
Specifically, why is the combo box not displaying the values when embedded in the data card and Distinct is used. Is there a substitute function to Distinct that I can try?
And why is the combo box returning numbers for text values.
Would be much appreciated.
Combo box + Distinct hassles