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

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,505 Super User 2025 Season 2 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,505 Super User 2025 Season 2 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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard