cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TristanKayser
Level: Power Up

Dropdown defalt emty

Hi

 

I have the following problem

 

Data from a onprem SQL.

 

For the Items i filter a table for entrys from a spesific costumer

ITEMS: 

 

ShowColumns(Filter('[dbo].[tbl_Mitarbeiter]',Kunden_ID = Liste_Firmenkunden.Selected.Kunden_ID),"Vorname","ID") 

 Now i want a emty default value any idea how, without adding a blank entry for every costumer? 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Dropdown defalt emty

Hi @TristanKayser ,

Do you want to set a Blank value as Default value within the the Dropdown box?

Could you please share a bit more about the "Liste_Firmenkunden" mentioned in your formula? Is it another Dropdown box or a Gallery control?

 

Based on the needs that you mentioned, I have made a test on my side, please take a try with the following workaround:

1. If the "Liste_Firmenkunden" represens another Dropdown box:

Set the OnChange property of the "Liste_Firmenkunden" Dropdown box to following:

ClearCollect(
              EmployeeCollection,
              {Vorname: Blank(), ID: Blank()},
              ShowColumns(Filter('[dbo].[tbl_Mitarbeiter]', Kunden_ID = Liste_Firmenkunden.Selected.Kunden_ID), "Vorname", "ID") 
)

then set the Items property of the EmployeeDropdownbox to following:

EmployeeCollection

Note: The EmployeeDropdownbox represents the Dropdown box where you want to blank as the Default value.

 

2. If the"Liste_Firmenkunden" represens a Gallery control:

Set the OnSelect property of the Gallery to following:

ClearCollect(
              EmployeeCollection,
              {Vorname: Blank(), ID: Blank()},
              ShowColumns(Filter('[dbo].[tbl_Mitarbeiter]', Kunden_ID = Liste_Firmenkunden.Selected.Kunden_ID), "Vorname", "ID") 
)

 then set the Items property of the EmployeeDropdownbox to following:

EmployeeCollection

 

Please consider take a try with above solution, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Community Support Team
Community Support Team

Re: Dropdown defalt emty

Hi @TristanKayser ,

Do you want to set a Blank value as Default value within the the Dropdown box?

Could you please share a bit more about the "Liste_Firmenkunden" mentioned in your formula? Is it another Dropdown box or a Gallery control?

 

Based on the needs that you mentioned, I have made a test on my side, please take a try with the following workaround:

1. If the "Liste_Firmenkunden" represens another Dropdown box:

Set the OnChange property of the "Liste_Firmenkunden" Dropdown box to following:

ClearCollect(
              EmployeeCollection,
              {Vorname: Blank(), ID: Blank()},
              ShowColumns(Filter('[dbo].[tbl_Mitarbeiter]', Kunden_ID = Liste_Firmenkunden.Selected.Kunden_ID), "Vorname", "ID") 
)

then set the Items property of the EmployeeDropdownbox to following:

EmployeeCollection

Note: The EmployeeDropdownbox represents the Dropdown box where you want to blank as the Default value.

 

2. If the"Liste_Firmenkunden" represens a Gallery control:

Set the OnSelect property of the Gallery to following:

ClearCollect(
              EmployeeCollection,
              {Vorname: Blank(), ID: Blank()},
              ShowColumns(Filter('[dbo].[tbl_Mitarbeiter]', Kunden_ID = Liste_Firmenkunden.Selected.Kunden_ID), "Vorname", "ID") 
)

 then set the Items property of the EmployeeDropdownbox to following:

EmployeeCollection

 

Please consider take a try with above solution, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,346)