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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Drill down into galler...
Power Apps
Unanswered

Drill down into gallery item details (Canvas App)

(0) ShareShare
ReportReport
Posted on by 581

Hi

 

I've got a Canvas app gallery with a list of items.

 

I want to be able to drill down into each item and display or edit them on a separate screen.

 

Could someone point me in the right direction of how to do this?


Thanks

Categories:
I have the same question (0)
  • Verified answer
    Gerard Simpson Profile Picture
    2,987 Moderator on at

    Hi @lee-martin 

     

    Follow these steps:

     

    1. Add an Icon into the template (top) row of your gallery
    2. Add a new screen for your form (say it's called 'Screen2')
    3. Go back to the icon you added to your gallery and in the 'Onselect' property of the icon add the following Power Fx code:
      1. Navigate(Screen2, ScreenTransition.None, {varRecord: ThisItem})
    4. Insert an EditForm control on your new screen (Screen2) and in the properties pane on the right, select yourlist as the 'Data source' - make sure the Default mode is set to 'Edit'
    5. Now, with the form selected, go to the Items property and add the following:
      1. varRecord
    6. Now add two buttons and change the text in each to 'Cancel' and 'Submit'
    7. In the Cancel Button, add the following:
      1. ResetForm(Form1) ; Navigate(Screen1)
    8. In the submit button add the following:
      1. SubmitForm(Form1)
    9. Select the form, go to the properties drop down on the top left and choose the 'OnSuccess' property. Then add the following code:
      1.  ResetForm(Form1) ; Navigate(Screen1)

    You should now be able to try this out and achieve the desired effect.

     

    Note: if you want the form to initially be in view only mode, you just need to change the Default mode of the form to 'View' - then add another button on your form screen (Screen2) with the text 'Edit' and add the following code to the OnSelect of that button: EditForm(Form1)

     

    Hope this helps

  • Lee-Martin Profile Picture
    581 on at

    Thanks, I've done this, but not managed to get the form items in the edit page populated. 

     

    Where am I likely to have messed up?

     

    Thanks

  • Gerard Simpson Profile Picture
    2,987 Moderator on at

    @lee-martin - can you paste in details of what code you have added and where you have added it? - Screenshots would be best

  • Lee-Martin Profile Picture
    581 on at

    Button in Gallery

    leemartin_0-1645616859339.png

     

    Edit Form

    leemartin_1-1645616887536.png

     

    On the form

     

    leemartin_2-1645616917763.png

     

     

  • Gerard Simpson Profile Picture
    2,987 Moderator on at

    Thanks - that all looks fine - can you send a larger screenshot showing the entire form screen (remainder of the form properties, the form on the canvas and the tree view on the left?)

     

  • Lee-Martin Profile Picture
    581 on at

    Will try and sanitise the form a bit as I don't want to share too much company data.

     

    Just  thought, is the fact I'm using the dataverse likely to be causing this issue?

  • Lee-Martin Profile Picture
    581 on at

    Sorry, my fault, had the form set to new by mistake.

     

    Thanks for your help

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard