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 / Gallery that shows ite...
Power Apps
Unanswered

Gallery that shows items with facility name and without facility name

(0) ShareShare
ReportReport
Posted on by 44

I have a gallery that shows records with Facility Name and with Blank Facility Name where the gallery filters based on the dropdown. 

The idea is that the gallery will show all the records of my facility and blank facility BUT if I edit the item, it should create a record with the facility name from the dropdown WHILE having the same record without an assigned facility.

North Carolina

Department Name       Facility Name

Dept 1                           Blank

Dept 2                           Blank

Vancouver

Department Name       Facility Name

Dept 1                           Blank

Dept 2                           Blank

If I edit the record, the end result should be like this:

North Carolina

Department Name       Facility Name

Dept 1                           North Carolina

Dept 2                           Blank

Vancouver

Department Name       Facility Name

Dept 1                           Blank

Dept 2                           Blank

Does that make sense?

helpPowerApps_0-1694830139268.png

 

Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,978 Moderator on at

    Hello,

     

    If I understand correctly it seems you are using the "blank one" as a placeholder for "Add New". It works, but I would recommend that you instead have a + Sign outside the gallery and then display a... (can be a form, or control you create) that is invisible until they click the +. Then they type stuff in. Click Save on that Form, it updates the datasource, which updates the collection (or however you are populating the gallery), you refresh and bingo it displays.

     

    But if you want to do it how you are, you can simply use a Patch statement to do a Create, versus and Update to the blank record so do a Patch(datasource, Defaults(Datasource), versus a Patch(datasource, LookUp(datasource, field=x)

     

    Then when you refresh your new record is there and your original blank one too.

    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,027

#2
Valantis Profile Picture

Valantis 644

#3
11manish Profile Picture

11manish 626

Last 30 days Overall leaderboard