Hi Everyone,
I have a drop down control on the app that I am currently developing. And my issue with this drop down is that it doesn't seem to get all the values from the SQL server database.
Here is a screenshot of the drop down control:
As you can see, there are only two values present, when it should be 3. What's missing is the "Probationary" value.
My script on the items property is simple, it queries the Employment_type column and I used the Distinct function to filter out duplicates. Here is the screenshot of the Items property:
I only tried refreshing my data source, still no luck.
Hope you can help me solve my problem.
Thanks in advance
Solved! Go to Solution.
Hi @Neil6 ,
I think you need
DataCardValue4_1.Selected.Employment_Type
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
HI @Neil6 ,
The Distinct() Filter is not Delegable, so I would assume that the missing item is not present in the first 500 (your can increase this to 2000 in Advanced Settings) records.
If you only are going to have limited options of values, then hard-code them
["Rsgular","Third Party","Probationary"]
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Hi @WarrenBelz ,
I tried to query the top 500 on my data source and the value "Probationary" is included. Also, which property in the advanced settings should I change?
Best regards
I created a view on SQL which queries the column Employment_type and filters it. It turns out I have 4 distinct values. Though they are now all present in my drop down control. however, i still have an error on the update property.
What should be in the update property of my Drop down control?
Hi @Neil6 ,
What type of field are you writing back to, and what is the Items property of the drop-down and what is the error message?
Hi @WarrenBelz
The data type is varchar.
Here is the Items property. I'm calling a view from SQL database.
Sort('[dbo].[DrpDwn_Emp_Type]', Employment_Type,Ascending)
Here is the error: "Name isn't valid. This identifier isn't recognized"
Hi @Neil6 ,
I think you need
DataCardValue4_1.Selected.Employment_Type
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
User | Count |
---|---|
199 | |
183 | |
70 | |
42 | |
34 |
User | Count |
---|---|
350 | |
273 | |
123 | |
80 | |
64 |