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

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Why doesn't this actually work? Be gentle I'm a noob

(0) ShareShare
ReportReport
Posted on by 363
Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,291 Super User 2024 Season 1 on at
    Re: Why doesn't this actually work? Be gentle I'm a noob

    @colbyturybury 

    In the context of that article, they are navigating to an edit form that is from the exact same data source. They refer to Gallery Sources and not datasources.  This is important as you cannot do that in PowerApps.

    In order to get that to work, the Galleries BOTH need to be from the same datasource that the EditForm is using.

    Of course, my question would be, why have two galleries of the same records (ie. the same datasource)?  Why not just use the one gallery and change the filter based on the condition stated in the article?

     

    Now, that said, what problem in particular are you running into?

  • colbyturybury Profile Picture
    363 on at
    Re: Why doesn't this actually work? Be gentle I'm a noob

    I have a single sharepoint list that I have filters on to display a different "Status." Unclaimed, Claimed, In process, and Active. I want to click each record and be taken to a reports page with info about that specific record. However, everytime I click that record I am taken to the Record's page but I can't get the form to populate with the sharepoint data even though I have a sharepoint CDC connected to it. Note: I haven't done any design to make it look nice.

    colbyturybury_0-1613170308967.png

    colbyturybury_1-1613170605217.png

     

     

  • RandyHayes Profile Picture
    76,291 Super User 2024 Season 1 on at
    Re: Why doesn't this actually work? Be gentle I'm a noob

    @colbyturybury 

    So what are you setting the Item property of the form to?  

    Using some of the context of that article, you are going to be passing the Item from the main gallery page.  So, in your OnSelect from the Gallery (perhaps the expand icon you have) your formula should be:

    EditForm(yourFormName); Navigate(yourRecordPage, None, {SelectedItem: ThisItem})

    And your EditForm should have a Item property of : SelectedItem

     

  • colbyturybury Profile Picture
    363 on at
    Re: Why doesn't this actually work? Be gentle I'm a noob

    My items property is set to: 

     

    Filter(
          SurveyRequest_DB,
          Status.Value = "Unclaimed"
    )

     

    My OnSelect is set to:

    Navigate(
          DetailScreen,
          ScreenTransition.None
    )

  • colbyturybury Profile Picture
    363 on at
    Re: Why doesn't this actually work? Be gentle I'm a noob

    What you have given me worked. Your directions were clear and concise.

  • RandyHayes Profile Picture
    76,291 Super User 2024 Season 1 on at
    Re: Why doesn't this actually work? Be gentle I'm a noob

    @colbyturybury 

    So is everything working now for you as you like?

  • colbyturybury Profile Picture
    363 on at
    Re: Why doesn't this actually work? Be gentle I'm a noob

    I think I got ahead of myself. In Sharepoint you can automatically create a power app from a list. What happens in that app is it takes you to a browse gallery. You can select a record in the browse gallery and then you are taken to a detail form. Then if you want to edit the form it takes you to and edit screen. My issue is that I have multiple galleries. When selecting a record do I need to save the selected item to a variable that is called in the detail form?

  • colbyturybury Profile Picture
    363 on at
    Re: Why doesn't this actually work? Be gentle I'm a noob

    What is not working is when I am viewing the detail form and want to make an entry to one of the fields I have an edit button that I click and I am take to the edit screen. When going to the edit screen no record is loaded and it is blank.

    colbyturybury_0-1613497266090.pngcolbyturybury_1-1613497281345.png

     

  • Verified answer
    RandyHayes Profile Picture
    76,291 Super User 2024 Season 1 on at
    Re: Why doesn't this actually work? Be gentle I'm a noob

    @colbyturybury 

    Yes, so my first question would be...why multiple Galleries?  

    But, be that as it may, the concept is the same.  You just need to pass the record and use it in the Item property of the form.  However, you are dealing with multiple forms on multiple screens, so you would need to pass the record to each screen.  

    The easier method is this.  On your OnSelect in the Gallery, set a global snapshot variable.  

    Set(glbSelectedItem, ThisItem);
    Navigate(DetailScreen, ScreenTransition.None)

    Now, set the Item properties of the forms to glbSelectedItem

    You do not need to pass the item in the Navigate any longer.

     

  • colbyturybury Profile Picture
    363 on at
    Re: Why doesn't this actually work? Be gentle I'm a noob

    That worked. Thankyou VERY much!

    What would be a better system than multiple galleries? I have heard of some people doing a gallery of galleries.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 714 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 419 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 243

Last 30 days Overall leaderboard