cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper IV
Helper IV

Using a button to update Date Time

So I want to just add a plus and minus button for the quantity field.  I just can't get it to work and I've been modeling it from this post https://powerusers.microsoft.com/t5/General-Discussion/and-Button-to-add-and-subtract-from-a-Quantit....  No matter how I change the syntax, I just can't figure out what I'm doing wrong. 

Backround on data:

Orignally I had everyting in an SP list.  I ended up fining out I couldn't use the search function with SP lists in order to use the textsearchbox to search more fields.  With SP lists I was only able to get filter to work and at that, filter is only good for searching one column.  At any rate.  I ended up exporting the SP list data to an excel file on my local drive.  From there I used the "excel static data" upload function.  I found out that my lists are still being updated even though I'm using the data pulled from a static excel sheet that's pulling data from the list.  I hope that gives enough information to get this bad boy tackled.  Thanks guys.apps.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

Re: Using a button to update Date Time

@Salamander94 

Moving this discussion over to the other thread...

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.

View solution in original post

4 REPLIES 4
Highlighted
Super User III
Super User III

Re: Using a button to update Date Time

@Salamander94 

Try changing your formula to this:

Patch(inventoryserver, ThisItem, {Quantity : ThisItem.Quantity +1})

 

On your background info - both Filter and Search are perfectly capable of being used on many columns at once.  If you decide to move back to SharePoint and want to resolve that issue, just post a message in this forum.

 

I hope that is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Highlighted
Helper IV
Helper IV

Re: Using a button to update Date Time

Okay I still can't get this to work.  The data is coming from the static excel sheet.  I couldn't get it to work with that hence the reason I was trying the source of that excel's data.  I.E. "inventoryserver"

Patch(inventoryserver, ThisItem, {Quantity: ThisItem.Quantity + 1})
Highlighted
Super User III
Super User III

Re: Using a button to update Date Time

@Salamander94 

Moving this discussion over to the other thread...

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.

View solution in original post

Highlighted
Community Support
Community Support

Re: Using a button to update Date Time

Hi @Salamander94 ,

 

Do you want to use button to control the item's Quantity to add or sub?

Please take a try with the following workaround:

Galley1.Items:'20190523test'   (my SP list name)

NextArrow2.OnSelect:Select(Parent);UpdateContext({QV:Gallery1.Selected.Quantity_Num})

Icon_Add.OnSelect:UpdateContext( { QV: QV+1 } );UpdateIf('20190523test',Title=Gallery1.Selected.Title,{Quantity_Num:QV})

Icon_Sub.OnSelect:UpdateContext({QV:QV-1});UpdateIf('20190523test',Title=Gallery1.Selected.Title,{Quantity_Num:QV})

20190523AddSub1.PNG

 

Check:

20190523AddSub.gif

 

Hope this could be helpful.

 

Best Regards.

Yumia

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (5,070)