web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Passing Form Data as F...
Power Apps
Unanswered

Passing Form Data as Filter Arguments to different Screen

(0) ShareShare
ReportReport
Posted on by 15

Hi All, 

I have a BrowseScreen that pulls data from a Sharepoint list. I've added a filter icon on the BrowseScreen that navigates to FilterScreen. FilterScreen has a form with a textfield, 3 drop downs, and two date fields (Start & End date) and an ApplyBtn. The idea is to have the ApplyBtn pull the screen's form data and apply that as a filter to BrowseScreen.BrowseGallery. Placeholder code for FilterScreen.ApplyBtn OnSelect is below -

 

 

Navigate(BrowseScreen, Fade, {filter BrowseScreen.BrowseGallery here by form data})

 

 

BrowseScreen.BrowseGallery already has a search bar with a filter function for a few of the form's fields. I think I need to add a variable to the BrowseGallery and have the ApplyBtn pass an argument to that variable but I'm not sure how to do that in PowerApps while also keeping the filter function that BrowseGallery already has.

 

I'm very new to powerapps & primarily have a scripting/CLI background so any help is greatly appreciated.

 

Categories:
I have the same question (0)
  • KrishnaV Profile Picture
    5,023 on at

    Hi @p0werSn3k ,

     

    Build a collection with the browse screen results and pass that to the next screen in the form screen you can read through the collection and populate the data on the screen easily.

     

    I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

    Regards,
    Krishna
    If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.

  • p0werSn3k Profile Picture
    15 on at

    Thanks for the tip KrishnaV. I now have the ApplyBtn collect the form data into FilterList & navigate back to BrowseScreen. The BrowseScreen.BrowseGallery currently has this function:

    SortByColumns(Filter([@'Survey Answers'], StartsWith(Title, TextSearchBox.Text)||StartsWith('Key Stakeholder', TextSearchBox.Text)), "Title", If(SortDescending1,Descending,Ascending))

     How would I tie in the collection as a filter? For example, one of the fields in the collection is ITorBU : ITorBUDataCard.Selected.Value which pulls from a drop down. The SharePoint column name is 'IT or Business Project'

  • KrishnaV Profile Picture
    5,023 on at

    Hi @p0werSn3k,

     

     Try this:

    SortByColumns(Search(searchtextbox.Text,Filter([@'Survey Answers'], StartsWith(Title, TextSearchBox.Text)||StartsWith('Key Stakeholder', TextSearchBox.Text))), "Title", If(SortDescending1,Descending,Ascending))

    create a searchtextbox a new textbox to search in the text searchtextbox.Text 


    I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

    Regards,
    Krishna
    If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 483

#2
WarrenBelz Profile Picture

WarrenBelz 399 Most Valuable Professional

#3
11manish Profile Picture

11manish 327

Last 30 days Overall leaderboard