cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Josephine1
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
iAm_ManCat
Super User II
Super User II

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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (29,016)