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 / Edit a selected item o...
Power Apps
Answered

Edit a selected item of a gallery

(0) ShareShare
ReportReport
Posted on by

When I select an item of a gallery on the left of the screen, I show on the right half of the screen some more parameters of the selected item. I want to make one of this parameter (called "Implemented") editable for the selected item. 

 

I inserted:

  • text input: shows as default the gallery selected parameter (correctly) and the displayMode=If(Gallery.Selected.ID=EditRecord,DisplayMode.Edit,DisplayMode.View)
  • edit icon: with OnSelect=UpdateContext({EditRecord:Gallery.Selected.ID})
  • save icon: with OnSelect=UpdateContext({EditRecord: ""});Patch(Gallery.Selected,{ID:Gallery1.Selected.ID},{Implemented:TextInput.Text})

 

When I edit and then save the value, the value on the gallery and on the connected data is not updated. 

 

FYI I used as guide this video PowerApps Editable Grid - YouTube

 

How can I update the value written in the text input updated in my data?

 

Thanks

Categories:
I have the same question (0)
  • Verified answer
    BCBuizer Profile Picture
    22,720 Super User 2026 Season 1 on at

    Hi @f4810 ,

     

    It seems like you are trying to patch the gallery instead of your data source. Try changing your Patch statement to include the name for the data source:

     

    Patch(DataSourceName,{ID:Gallery1.Selected.ID},{Implemented:TextInput.Text})

     

     

  • f4810 Profile Picture
    on at

    Hi @BCBuizer ,

     

    I receive as error in the save button for the OnSelect "Incompatible type. We can't evaluate your formula because the context variable types are incompatible with the types of values in other places in your app."

     

    The parameter I'm trying to modify ("Implemented") is a text ("yes", "no", "n/a", as you may imagine)

  • BCBuizer Profile Picture
    22,720 Super User 2026 Season 1 on at

    Hi @f4810 ,

     

    Do you mean to say the Implemented column is a Choice type? To confirm, please check in the List Settings:

     

    BCBuizer_0-1660214238287.png

     

  • f4810 Profile Picture
    on at

    Hi @BCBuizer ,

     

    Yes, it was choice type. I converted to single line text and now works! Thanks for the 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

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 846

#2
Valantis Profile Picture

Valantis 532

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard