cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
tbelvin
Level: Powered On

Spinner buttons to change data

I have an app that uses CDS entity and a simple UI for inventory taking. I am struggling with two problems.

 

Problem 1: I am using the barcode control to read the bar code by scanning the UPC/Product Code. When the bar code is recognized, I want to load a detail page. How do I navigate to a detail page using the UPC/Product Code? In my entity, the UPC/Product Code is a key.

 

Problem 2: When the item is found (via scanning or via keying in the upc code) and the edit screen is presented, I want to be able to set the count of the items. I used the wizard to bind the columns and the wizard chose a Text Input control for my Quantity column in my entity. I want to have a "+" and "-" button to simplify modifying the count of items. How do I get the + button to increment the quantity and the - button to decrement the quantiy? When I try to set the Text for the Input Control, it doesn't take the update.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Spinner buttons to change data

Hi @tbelvin,

For your first question, do you want to navigate to a Detail Screen when the bar code is recognized? I assume that you use the New Barcode scanner control to scan the UPC/Product Code on your side, I think the OnScan property of the Barcode scanner control could achieve your needs.

I have made a test on my side, please take a try with the following workaround:

Set the OnScan property of the Barcode scanner control (BarcodeScanner1) to following:

Navigate(Screen2, ScreenTransition.Fade, {CodeValue: BarcodeScanner1.Value})

 

On your side, you should type:

 

Navigate(YourDetailScreen, ScreenTransition.Fade, {CodeValue: BarcodeScanner1.Value})

Within your Detail Screen, add a Display Form control, and connect the Display Form control to your CDS Entity data source (set DataSource property to 'YourCDSEntity'), then set the Item property of the Display Form to following:

LookUp('YourCDSEntity', 'UPC/Product Code' = CodeValue)

Note: The 'UPC/Product Code' represents the column in your CDS Entity, which used to store the UPC/Product Code value.

More details about the New Barcode control in PowerApps to following:

https://powerapps.microsoft.com/en-us/blog/new-barcode-scanner-control/

 

For your second question, do you want to customize the Input Box control as Spinner buttons within your Edit form?

If you want to customize the Input Box control as Spinner buttons within your Edit form, please check and see if the following blog would help in your scenario:

https://powerapps.microsoft.com/en-us/blog/ux-patterns-numericupdown-custom-rating-and-gauge-control...

You could also consider check the following video:

https://www.youtube.com/watch?v=BYFRB4Nh-L0&feature=youtu.be

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Community Support Team
Community Support Team

Re: Spinner buttons to change data

Hi @tbelvin,

For your first question, do you want to navigate to a Detail Screen when the bar code is recognized? I assume that you use the New Barcode scanner control to scan the UPC/Product Code on your side, I think the OnScan property of the Barcode scanner control could achieve your needs.

I have made a test on my side, please take a try with the following workaround:

Set the OnScan property of the Barcode scanner control (BarcodeScanner1) to following:

Navigate(Screen2, ScreenTransition.Fade, {CodeValue: BarcodeScanner1.Value})

 

On your side, you should type:

 

Navigate(YourDetailScreen, ScreenTransition.Fade, {CodeValue: BarcodeScanner1.Value})

Within your Detail Screen, add a Display Form control, and connect the Display Form control to your CDS Entity data source (set DataSource property to 'YourCDSEntity'), then set the Item property of the Display Form to following:

LookUp('YourCDSEntity', 'UPC/Product Code' = CodeValue)

Note: The 'UPC/Product Code' represents the column in your CDS Entity, which used to store the UPC/Product Code value.

More details about the New Barcode control in PowerApps to following:

https://powerapps.microsoft.com/en-us/blog/new-barcode-scanner-control/

 

For your second question, do you want to customize the Input Box control as Spinner buttons within your Edit form?

If you want to customize the Input Box control as Spinner buttons within your Edit form, please check and see if the following blog would help in your scenario:

https://powerapps.microsoft.com/en-us/blog/ux-patterns-numericupdown-custom-rating-and-gauge-control...

You could also consider check the following video:

https://www.youtube.com/watch?v=BYFRB4Nh-L0&feature=youtu.be

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (2,630)