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

no record selected in the gallery

Hello community,

a question: I have actively marked a record in a gallery. Is it now possible that I unmark this dataset again so that no dataset is marked in the gallery.

Is that possible? And if so, how?

 

Best regards

RoScha

1 ACCEPTED SOLUTION

Accepted Solutions
PowerAddict
Super User
Super User

Hi @RoScha

You can surely do this. Set the Default property of your gallery to {}

Then whenever you want to unselect a record, simply call the Reset(Gallery) function like for example, on the OnVisible of a screen. 

 

Let me know if this helps. 

 

---
If you like this reply, please give kudos (Thumbs Up). And if this solves your problem, please mark this reply as a solution by selecting Accept as Solution. This makes it easier for others to find answers to similar questions. 

 

Thanks!

Hardit Bhatia

Microsoft Business Applications MVP

Microsoft Certified Trainer MCT

Blog | Twitter | LinkedIn | Facebook | YouTube  |  Email

View solution in original post

6 REPLIES 6
FrostedFlake
Resolver I
Resolver I

What do you mean with "marked"?

Hello @FrostedFlake 

first of all: yes you are right. English is not my native language and until today Google has helped me 😉

 

So what I mean now with "marked"?

Well, when I click on a record in the gallery, it is marked. Selected.

But now I want that when I start a new screen, no record in a Gallery is marked. The Gallery is displayed without a record already selected.

 

That is what I want to achieve.

 

Does this make it more understandable for you? I hope so.

I got it, but i can't help you there. Try www.deepl.com to translate into english 🙂

PowerAddict
Super User
Super User

Hi @RoScha

You can surely do this. Set the Default property of your gallery to {}

Then whenever you want to unselect a record, simply call the Reset(Gallery) function like for example, on the OnVisible of a screen. 

 

Let me know if this helps. 

 

---
If you like this reply, please give kudos (Thumbs Up). And if this solves your problem, please mark this reply as a solution by selecting Accept as Solution. This makes it easier for others to find answers to similar questions. 

 

Thanks!

Hardit Bhatia

Microsoft Business Applications MVP

Microsoft Certified Trainer MCT

Blog | Twitter | LinkedIn | Facebook | YouTube  |  Email

View solution in original post

Hello @PowerAddict 

that is exactly the solution. Many many thanks.

 

Best regards

RoScha

Glad I could help! Good luck with the rest of your app! Feel free to reach out in case of any questions!

 

Thanks,
Hardit Bhatia
The Power Addict
https://thepoweraddict.co

Helpful resources

Announcements
User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

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