web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Spinner buttons to cha...
Power Apps
Answered

Spinner buttons to change data

(0) ShareShare
ReportReport
Posted on by 7

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.

 

Categories:
I have the same question (0)
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    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-controls/

    You could also consider check the following video:

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

     

    Best regards,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 181 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 112 Super User 2026 Season 2

Last 30 days Overall leaderboard