cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

Navigation

Hi 

 

I'm using a Gallery Control to filter and display the content from a SharePoint List, based on the selected heading in the app. What I'm trying to do is to set up an anchored tag "Reference" in the SharePoint list content, so that when the user clicked on it, the app will then either refresh and filter the SharePoint list based on the anchored text, or navigate to a separate screen set up in the app. 

 

Any one has any idea how I can do that / suggest a workaround it?

 

Thank you very much.

 

 

1 REPLY 1
Highlighted
Super User
Super User

Re: Navigation

Hi @Josephine1 

 

I would have a text column (ie ReferenceTag) in your SharePoint List, wherein the reference tags are set, then in your gallery I would have a button or highlighted label with that text value.

 

You could then have your OnSelect set a variable for filtering the list:
Set(ChosenRefTag, ThisItem.ReferenceTag)

 

and your Gallery's Items property would then have something like this:

//If a tag is chosen, ie its not blank

If(!IsBlank(ChosenRefTag),
   Filter(DataSource,

                               ReferenceTag = ChosenRefTag
   ),
   //Otherwise just have the normal Gallery items conditions

   DataSource
)

 

Then don't forget to have some way to clear the tag by setting the ChosenRefTag to Blank()

 

Please could you give something like this a try and let me know if it helped 🙂

 

Cheers,

ManCat


@iAm_ManCat

Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you!


Thanks!
You and everyone else in the community make it the awesome and welcoming place it is, keep your questions coming and make sure to 'like' anything that makes you 'Appy
Sancho Harker, MVP


Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (6,205)