cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
tbelvin
Frequent Visitor

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
v-xida-msft
Community Support
Community Support

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
v-xida-msft
Community Support
Community Support

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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (52,151)