cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper I
Helper I

Incomplete dropdown values

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:

Neil6_0-1594724347279.png

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:

Neil6_1-1594724479229.png

 

I only tried refreshing my data source, still no luck.

 

Hope you can help me solve my problem.

 

Thanks in advance

1 ACCEPTED SOLUTION

Accepted Solutions

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.

View solution in original post

6 REPLIES 6
Super User III
Super User III

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

Helper I
Helper I

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.

 

Neil6_0-1594728546424.png

 

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"

Neil6_0-1594775549461.png

 

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.

View solution in original post

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (4,361)