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 / Tuck shop Point of Sal...
Power Apps
Unanswered

Tuck shop Point of Sales System - Editing the values of an item in sharepoint lists

(0) ShareShare
ReportReport
Posted on by 14

Hi, I'm currently working on a tuck shop POS system for a small shop that I help out at, and I have currently run into a problem that I can't yet solve.

 

What I am trying to do, when I press sale, for one to be taken off the 'stock' value for the selected item, and one to be added to the 'sale' value for the selected item.

 

I have linked some reference images below.

 

Thanks Tom

 

TJL550_0-1653301336444.pngTJL550_1-1653301372120.png

 

Categories:
I have the same question (0)
  • Verified answer
    v-yujincui-msft Profile Picture
    on at

    Hi @TJL550 , 

     

    Maybe you could try to use the Patch() function.

    I have made a test for your reference.

     

    1. Here is my SharePoint list.

    vyujincuimsft_1-1653554060819.png

    2. Select the Button and apply the following formula on its OnSelect property as:

    Patch('Tuck Shop - Stock Management',Gallery6.Selected,{Stock:Gallery6.Selected.Stock-1,Sold:Gallery6.Selected.Sold+1})

    vyujincuimsft_0-1653554044503.png

    3. Select the Button and apply the following formula on its DisplayMode property as:

    If(Gallery6.Selected.Stock-1<0, DisplayMode.Disabled, DisplayMode.Edit)

    Result:

    Sale.gif

     

    Best Regards,
    Charlie Choi

  • TJL550 Profile Picture
    14 on at

    Thank you so much!

    This helped a lot!

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard