cancel
Showing results for 
Search instead for 
Did you mean: 

Get Limited Screen While Scanning Bar Code

S_K1
Discoverer

Hello MDK Experts,

Can we truncate the string while scanning bar code in Std functionality and get the string in search bar.

I have requirements to scan bar code and search material from list but it should get specific position of string from bar code in search bar, not full string. Can we modify Std ?

Or do i have to develop logic by adding camera in action bar ?

View Entire Topic
bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

Yes, you can assign a rule to the Query Options of your target.  In the rule you can access the searchString value which will be the value from the barcode.  You can then trim it as needed and create a data query builder object to return using the truncated string.  If you also want to display it you can also set the trimmed value back to the display.  You will just need to be careful to make sure your rule can detect that it doesn't need to trim / update the displayed value to avoid an infinite loop scenario.

S_K1
Discoverer
0 Kudos
Thanks Bill, we are able to achieve material using data query builder. Same time we need to scan bar code and get the material which is having the scanned serial number. But in the list data entity is MaterialSLoc, and there's navigation property for Materials entity, and another navigation from materials to MyEquipSerialNum for serial number. Can we achieve this also without adding custom property in Materials entity ?
bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos
You will need to construct your filter to expand the levels and use any to find where the serial numbers match the scanned value
S_K1
Discoverer
0 Kudos
Great Thanks Bill, We have achieved it. Can we do same thing in form cell simple property, As there are no query in that it's manual entry or option to scan the value.
bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos
You can use the OnValueChange event on the simple property form cell to get the value and adjust as needed.