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 / FormViewer- No Item to...
Power Apps
Unanswered

FormViewer- No Item to Display

(0) ShareShare
ReportReport
Posted on by 118
Hello All, 

This is a SP integrated app. I have a home screen where users select the item they want to deliver from a gallery. From the gallery, it brings them to a new screen with a form viewer of the item information, then a separate form where the delivery information is entered. The OnSave is: Patch('Transfer Sheet & Product Availability',First(Filter('Transfer Sheet & Product Availability',ID=Gallery1.Selected.ID)),Form1.Updates)          (which works great because no duplicates- just updates)

 

However, OnSave the FormViewer then disappears and says "no item to display"

The Item property for the FormViewer is : LookUp('Transfer Sheet & Product Availability',ID = Gallery1.Selected.ID)

Does anyone know why this is happening?

Categories:
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi @ebraga 

    I suspect the problem is the Gallery1.Selected.ID is reset by saving the data.  To test this, instead try putting

     

    LookUp(
     'Transfer Sheet & Product Availability', Coalesce(
     Gallery1.Selected.ID,Form1.LastSubmit.ID
     )
    )

     

     as the Item property of the form.  That way if Gallery1.Selected.ID is null, then the last submitted ID from your edit form will be used in the Lookup.

    Another approach would be to collect the selected ID when the record is chosen in the gallery as a global variable, using the Set() function. Set(recordID,ThisItem.ID). Then use that variable in your LookUp() for the FormViewer.

    LookUp('Transfer Sheet & Product Availability',ID = recordID)

     

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 394 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 324 Most Valuable Professional

Last 30 days Overall leaderboard