cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mikemaccarthy
Frequent Visitor

Gallery

Using Gallery to be able to Search a list of customers. Want to Select a customer.. and populate relevant fields. I THINK I have done this side correctly. But also want the Gallery to hide or disappear (after selecting a customer) to allow me progress down the phone to populate the rest of the App. Please.

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @mikemaccarthy,

 

As discussed, the previous post does what you were trying to achieve. If so, can you please select the Accept as solution for the previous message? This will help others find the solution easily. Also, if any or all of my replies helped, please consider giving kudos (thumbs up). 

 

Thanks,

Hardit 

View solution in original post

9 REPLIES 9
PowerAddict
Super User
Super User

@mikemaccarthy 
On the OnSelect of your gallery, set a variable to false. 

Set(varGalleryVisible, false)

Set the Visible property of the gallery to this variable. 

Then, on the OnSelect of a button or icon that you might have to close the details view of the selected record, use this:

Set(varGalleryVisible, true)

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

Hardit,

Thanks for replying.

you suggest 3 stages -

1 OnSelect - Gallery  --  Set(varGalleryVisible, false)

2 Visible - Gallery  --  Set(varGalleryVisible, false)

3 OnSelect - Icon within the gallery  -- Set(varGalleryVisible,true)

 

Once i do option 2.... the whole gallery hides... so can't process 3.

 

Then do - 1,3,2 and Gallery is Blank.

Run the App... and Gallery still Blank.

 

Thoughts.

 

PowerAddict
Super User
Super User

@mikemaccarthy here are the 3 steps:

1 OnSelect - Gallery  --  Set(varGalleryVisible, false)

2 Visible - Gallery  --  varGalleryVisible

3 OnSelect of a button to close the details of the selected record  -- Set(varGalleryVisible,true) This is so the gallery can be made visible again

Sugar. I must not be intelligent enough! Not working for me. I have tried doing for the whole gallery and a record within the gallery.

Start with a list of 100 customers. Search box (via filter formula on the gallery) reduces to one customer. select an icon on this record  (within the Gallery) which then populates some other fields. But I am stuck with the Gallery still displaying when there is now no need to see same.

Apologies and thanks for any help you can offer.

PowerAddict
Super User
Super User

Can you please tell me what you mean by "which then populates some other fields"? Where are you showing details of the selected record? 

---
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

Hardit, you will regret getting involved with me. Sorry.

Does the attached make more sense.

M

PowerAddict
Super User
Super User

Haha no, its all good! It does make sense and what I suggested should work. Is it possible for you to get on a call? hardit.bhatia@thepoweraddict.com

 

1 OnSelect - Gallery  --  Set(varGalleryVisible, false)

2 Visible property of Gallery & Search Box --  varGalleryVisible

3 OnSelect of X icon in your screenshot  -- Set(varGalleryVisible,true) This is so the gallery can be made visible again

 

---
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

Hi @mikemaccarthy,

 

As discussed, the previous post does what you were trying to achieve. If so, can you please select the Accept as solution for the previous message? This will help others find the solution easily. Also, if any or all of my replies helped, please consider giving kudos (thumbs up). 

 

Thanks,

Hardit 

View solution in original post

Thanks for your excellent help. Much appreciated.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

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