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 / Updating items which a...
Power Apps
Unanswered

Updating items which are based on other elements in gallery,

(0) ShareShare
ReportReport
Posted on by 23

Hello, have a gallery which has elements, that I'd like to allow edit. The problem is that some of them are based on other and they are not updating in sharepoint list. 1.png2.PNG3.PNG4.PNG5.PNG6.PNG

I need Rate per KM and VALUE/Total in PLN elements updated based when other values (Type of Car and No. of KM). I've edited OnChange value so it would update in a way that I'd like that to happen but nothing's changing. Any idea how to fix that?

Categories:
I have the same question (0)
  • Loose Chippings Profile Picture
    185 on at

    Hi @Draqon 

     

    This may be very simple.  Try changing the semicolons in your Patch() statement to commas:

    Patch('mileage-report', This.Item, {'Rate per KM': Value(TextInput1_3.Text}))

     

    I can't tell if your 'Total in PLN' is a number field or calculated column in SharePoint.  Instead of patching Value(TextInput1_3.Text) try patching the value of the Dropdown.Selected instead:

     

    Patch('mileage-report', This.Item, {'Rate per KM': Dropdown3.Selected.Value})

     

  • v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @Draqon ï¼Œ

    Do you want to update  Rate per KM and VALUE/Total in PLN when Type of Car and No. of KM change?

    If so, you should set controls for  Type of Car and No. of KM's OnChange about formula to update Rate per KM and VALUE/Total in PLN.

    For example,

    set drop down for Type of Car's OnChange:

    Patch(...,.....,{'Rate per KM':....})

     set textinput for No. of KM 's OnChange:

    Patch(...,.....,{'VALUE/Total in PLN':....})

     

     

    Best regards,

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 477

#2
WarrenBelz Profile Picture

WarrenBelz 341 Most Valuable Professional

#3
11manish Profile Picture

11manish 317

Last 30 days Overall leaderboard