cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
luvagoldenk9
Helper II
Helper II

Gallery on Left; Detail DisplayForm on Right not showing First Gallery Item on StartUp

Hello!

 

I have a PowerApp screen that shows a summary gallery (share point list) on left side that shows Status/Ticket Description. On the right-hand side of the screen is a detail display form which shows the additional 15 fields. On the startup of the app, no data displays on detail display form (on the right-hand side) as nothing was selected from the gallery.

 

On start up of app, how can the detail display form be set to show the details for the first gallery item displayed even though it is not selected? The DataSource for the detail display form is the share point list. 

 

Thank you in advance!

1 ACCEPTED SOLUTION

Accepted Solutions
Drrickryp
Super User
Super User

@luvagoldenk9 

Try setting the Item property of the form to

 

 

Coalesce(
         GalleryLead2.Selected, First(
                                       GalleryLead2.AllItems
                                 )
)

 

 

View solution in original post

5 REPLIES 5
Jeff_Thorpe
Super User
Super User

What is the item property of the detail display form?



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.
luvagoldenk9
Helper II
Helper II

Hi Jeff!

 

At first it was blank.

 

Next I tried using an initializing variable (varFirstTime set to true onStart) but trying to figure out how to display the first record of the gallery without it being selected - this would go in the XXX part. The gallery Items is the share point list:

 

If(!varFirstTime,galleryLead2.Selected, XXX)

 

Thoughts?

Drrickryp
Super User
Super User

@luvagoldenk9 

Try setting the Item property of the form to

 

 

Coalesce(
         GalleryLead2.Selected, First(
                                       GalleryLead2.AllItems
                                 )
)

 

 

luvagoldenk9
Helper II
Helper II

@Drrickryp that worked! Learned about Coalesce functionality too so thank you!!

You're welcome!You're welcome!

 

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (1,286)