cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AVTS
Helper V
Helper V

Canvas App - Barcode Scanning

My canvas app having Scanner,Inputtext,Dropdown.

 

AVTS_2-1620560869280.png

 

 

AVTS_1-1620560797935.png

Exisiting formulas.

 

Barcode scanner  (Counter 1)

Onscan: Collect(MaterialMasters,{TextInput4:BarcodeScanner1.Value,Dropdown1:BarcodeScanner1.Value})

-------------------------------

Input Text (Counter2)

Default :BarcodeScanner1.Value

------------------------------------

DropDown(Counter3)

Items: If(IsBlank(TextInput4.Text),MaterialMasters,Filter(MaterialMasters,'full cases'=(TextInput4.Text)||'single cases'=(TextInput4.Text) || mm=(TextInput4.Text) || Materialdesc=(TextInput4.Text)))

-------------------------------------------------

With above code barcode scanning is correctly displaying the inputtext code.

 

Additional requirement is to add the below requirement with above.

 

While scanning only 8 digit number(Pointer1) should be displayed in the input text. Similarly last 6 digit should save in the date format in label 8

 

AVTS_0-1620560754068.png

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
JayMagness
Solution Specialist
Solution Specialist

HI,

 

I do this a lot and I use a formula like the one below.

 

Get to know the Last, First, and split Statement. 

 

Also I use an ascii character as a delimiter. it can be anything but in this case I sue a "*" and it will split off the text before the 2nd "*" in the information in textinput7 filed that is where I put the string scanned form the barcode. 

 

Last(FirstN(Split(TextInput7.Text, "*"),3)).Result

 

If you need more help please feel free to write back

View solution in original post

2 REPLIES 2
JayMagness
Solution Specialist
Solution Specialist

HI,

 

I do this a lot and I use a formula like the one below.

 

Get to know the Last, First, and split Statement. 

 

Also I use an ascii character as a delimiter. it can be anything but in this case I sue a "*" and it will split off the text before the 2nd "*" in the information in textinput7 filed that is where I put the string scanned form the barcode. 

 

Last(FirstN(Split(TextInput7.Text, "*"),3)).Result

 

If you need more help please feel free to write back

View solution in original post

AVTS
Helper V
Helper V

Last(FirstN(Split(TextInput4.Text, "000"),1)).Result

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (1,397)