cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Komal1
Microsoft
Microsoft

Combobox defaultselectedItems from collection is not working first time but works second time onwards

I am trying to have a combobox with multi select . The DefaultSelectedItems come from a collection. But this is not working on the first click, I get only one of the multiple selections first time and it works fine from second time onwards.

I have a combobox named Rating. Its Items are [1,2,3,4,5]

DefaultSelectedItems : 

ForAll(
       RatingSelected,
       {
           Value: Value
       }
)

 

This is working fine from second time(i.e First time when u open the app it doecnt work, but when u navigate to other pages and come back it works) but doesnt work the first time. 

4 REPLIES 4
Bilakanti
Impactful Individual
Impactful Individual

@Komal1 I think the first time your "RatingSelected" table might be empty that's the reason where your Defaultselected items must not be loaded.

Komal1
Microsoft
Microsoft

Collection has data. Since it is added on onVisible property of the page.

Bilakanti
Impactful Individual
Impactful Individual

@Komal1 can you try adding just the collection rather than forall function.

Komal1
Microsoft
Microsoft

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,932)