Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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:
  • f4810 Profile Picture
    on at
    Re: Edit a selected item of a gallery

    Hi @BCBuizer ,

     

    Yes, it was choice type. I converted to single line text and now works! Thanks for the help!

  • BCBuizer Profile Picture
    21,991 Super User 2025 Season 1 on at
    Re: Edit a selected item of a gallery

    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
    Re: Edit a selected item of a gallery

    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)

  • Verified answer
    BCBuizer Profile Picture
    21,991 Super User 2025 Season 1 on at
    Re: Edit a selected item of a gallery

    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})

     

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard