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.
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.

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, September 18th at 8am PDT

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 200 members 2,323 guests
Please welcome our newest community members: