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 / Default item in Galler...
Power Apps
Unanswered

Default item in Gallery and Edit form - Getting your data

(0) ShareShare
ReportReport
Posted on by 119

Hi Community,

 

I have an app with a Gallery connected to SharePoint list and next to it is an Edit Form that shows details to selected gallery item.

The form works when clicking through the items, but the problem is when the app starts. 

 

After launching the application the gallery loads and show all items, but in my Edit Form there is a message: "Getting your data...".

I want to have the default mode of the form "View".

And I would like the form to show me the last submitted item in View mode when the app launches and afterwards I want it to show me the selected item.

 

Could you please advise?

Thanks a lot.

Categories:
I have the same question (0)
  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    In the Item property of the form you need to say the item that you want to show.

     

    If it is the last created you can do this:

     

    First(Sort(YourDataSource; Created; Descending))

     

    For example

     

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,

    Gonçalo Nogueira

    Check my LinkedIn!

    My website!

    My blog!

  • Eeyore2005 Profile Picture
    119 on at

    Thanks @Nogueira1306 . 

    In Item property of my form I have following:

    LookUp('source list',ID=SelectedItemID)

     

    That is why I think the problem is that there is no item in the gallery selected by default when the app starts. Si I would like to have the first (last submitted item) selected on start. Is it possible?

     

    Thank you.

  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    Yes. Instead of that have this:

     

    First(Sort(YourDataSource; Created; Descending))

     

    You are sorting your data from recent to old and getting the first item.

     

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,

    Gonçalo Nogueira

    Check my LinkedIn!

    My website!

    My blog!

  • Eeyore2005 Profile Picture
    119 on at

    Hi @Nogueira1306 ,

    This has not solved my issue, because with this formula I am not able to review gallery items in my edit form by clicking on the arrow. The edit form always shows the last created item.

  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    If you want to show a form on App On Start, you need to have that formula...

    I think that you should have 2 different screens.

     

    1 for App On Start that would only show the last created item and another one to show the gallery with the Gallery Selected item.

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 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard