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

Using a Number Collected in Collection in Pop Up Message - Shopping Cart App

Hello,

 

I'm needing a bit of assistance in displaying a quantity of an item being ordered for a user when using our App. The app is set up like a "Shopping Cart" experience where the user selects the equipment needed and adds those items to the cart. In doing so, when the user clicks on "Add Items to Order" it clears the Form that is used to collect the information. So the formula that I use in the Pop-Up text message to confirm the number of items being ordered doesn't work since the Form is set to reset after the button is clicked, please see the code below. 

 

drp_NumNeeded.Selected.Value & "of " & glry_Equipment.Selected.Item & " has been added to order!"

 

These items are collected temporarily in a Collection, (please see the picture below) until they navigate to the "View Items" screen where they finalize the purchase and then ultimately submits the order that then clears the collection. So In my mind, I thought that there would be a way to pull the EquipQtyNeeded into the pop-up message by looking up the item up by the EquipmentID.

 

Any assistance would greatly be appreciated!

 

2020-08-21_7-14-09.jpg

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: Using a Number Collected in Collection in Pop Up Message - Shopping Cart App

You could just collect the relevant data in another collection for temporary use. On the "Add Items to Order" Click property, add this before you clear the selections:

 

ClearCollect(NotificationData,{Item:glry_Equipment.Selected.Item,Qty:drp_NumNeeded.Selected.Value})

 

Then you can do your popup like this:

Notify(First(NotificationData).Qty & " of " & First(NotificationData).Item & " added to cart.")


---
If this answered your question, please click "Accept Solution". If this helped, please Thumbs Up.

View solution in original post

1 REPLY 1
Highlighted
Super User
Super User

Re: Using a Number Collected in Collection in Pop Up Message - Shopping Cart App

You could just collect the relevant data in another collection for temporary use. On the "Add Items to Order" Click property, add this before you clear the selections:

 

ClearCollect(NotificationData,{Item:glry_Equipment.Selected.Item,Qty:drp_NumNeeded.Selected.Value})

 

Then you can do your popup like this:

Notify(First(NotificationData).Qty & " of " & First(NotificationData).Item & " added to cart.")


---
If this answered your question, please click "Accept Solution". If this helped, please Thumbs Up.

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

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

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (7,422)