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 the selected item...
Power Apps
Unanswered

edit the selected item of the gallery ?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a gallery which are from a table called projects, the gallery only shows the projects of the current user because i use the filter function for it. 

When i click on the item then a Display Form appears on the right where i can see more information about this project item. What i want is to edit the information and save it ? I tried it with patch function but he shows me some bugs 😞

Patch(Projekte; ThisItem ;{Rolle: DataCardValue32.Text; Skills: DataCardValue33.Selected})

 

It says the function patch has invalid arguments 😞

Categories:
  • WarrenBelz Profile Picture
    156,570 Most Valuable Professional on at

    Hi @Anonymous ,

    I suspect it is this line

    Skills: DataCardValue33.Selected

    What type of field is Skills and what is the Items of DataCardValue33 ?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    it compiles but what is the next step to edit the consisting form of the item ? my code looks like 

    Patch(Projekte; Gallery1.Selected; Defaults(Projekte); {Rolle: DataCardValue32.Text; Unternehmen: DataCardValue3.Text; Branche: DataCardValue4.Text; 'Aufgaben / Technologien': DataCardValue11.Text; Kundenerfolg: DataCardValue28.Text; Skills:DataCardValue33.SelectedItems
    })
     
    
     
  • WarrenBelz Profile Picture
    156,570 Most Valuable Professional on at

    @Anonymous 

    You need either Defaults() for a new record or Gallery1.Selected to update the existing record, but not both.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    i did but what is the next step, i want to work like here in this video: https://www.youtube.com/watch?v=gX5q_V3U8-s&t=6s but he uses textinputs and dropdowns but i use DataCardValue ? What can i do ?

  • WarrenBelz Profile Picture
    156,570 Most Valuable Professional on at

    @Anonymous ,

    That is a 25 minute video on the Patch function (which is what you are doing), if you are editing the item, you do not need Defaults(Projekte)

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 381 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard