cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Aurélien
Level: Powered On

Valeur par défaut d'une liste déroulante

Bonjour,

 

 

Je ne parviens pas à mettre une valeur par défaut (vide), si la colonne de mon sharpoint est vide. Je pense que le filtre est à l'origine de mon probléme, mais j'en ai vraiment besoin.

 

A savoir:

La liste de mon menu déroulant est filtrée sur la colonne d'une liste et la valeur s'enregistre dans une autre liste.

 

voici quelques photos:
PecOnline -National - Enregistrées (non publiées) - PowerApps - Google Chrome.jpg

PecOnline -National - Enregistrées (non publiées) - PowerApps - Google Chrome_2.jpg

 

Merci par avance, cordialement.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support Team
Community Support Team

Re: Valeur par défaut d'une liste déroulante

Hi @Aurélien,

Could you please share a bit more about your issue?

Do you want to set a default empty value within the Drop down box?

If you want to set a default empty value within the Drop down box in your Edit form, I have made a test on my side, please take a try with the following workaround:

Set the OnVisible property of the Edit screen (Which contains your Edit form) to following:

ClearCollect(
DropdownCollection;
{
'{Name}': Blank()
};
SortByColumns(Filter(Observations; site = Gallery1.Selected.Result); "Date"; "Descending")
)

Set the Items property of the Drop down box to following:

DropdownCollection

Then display the {Name} column value within the Drop down box.

 

In addition, you could also consider take a try to replace your Drop down box with a Combo Box control. Please consider take a try to remove the Drop down box from your Edit form, instead, add a Combo Box control within the corresponding Data card of your Edit form.

Then set the Update property of the corresponding Data card which contains the Combo Box to following:

ComboBox1.Selected.Value

 

Best regards,

Kris

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.
2 REPLIES 2
Highlighted
Community Support Team
Community Support Team

Re: Valeur par défaut d'une liste déroulante

Hi @Aurélien,

Could you please share a bit more about your issue?

Do you want to set a default empty value within the Drop down box?

If you want to set a default empty value within the Drop down box in your Edit form, I have made a test on my side, please take a try with the following workaround:

Set the OnVisible property of the Edit screen (Which contains your Edit form) to following:

ClearCollect(
DropdownCollection;
{
'{Name}': Blank()
};
SortByColumns(Filter(Observations; site = Gallery1.Selected.Result); "Date"; "Descending")
)

Set the Items property of the Drop down box to following:

DropdownCollection

Then display the {Name} column value within the Drop down box.

 

In addition, you could also consider take a try to replace your Drop down box with a Combo Box control. Please consider take a try to remove the Drop down box from your Edit form, instead, add a Combo Box control within the corresponding Data card of your Edit form.

Then set the Update property of the corresponding Data card which contains the Combo Box to following:

ComboBox1.Selected.Value

 

Best regards,

Kris

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.
Aurélien
Level: Powered On

Re: Valeur par défaut d'une liste déroulante

Bonjour Kriss,

 

Pour la 2eme fois, merci cela fonctionne super bien. J'ai cherché hier toute la journée.

 

Bonne fêtes de fin d'année Smiley Wink

 

 

 

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, August 21st at 8am PDT

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

SixthImage

Power Summit Australia 2019

August 20-23rd 2019

Users Online
Currently online: 98 members 3,726 guests
Please welcome our newest community members: