barcodeFilter¶
barcodeFilter
forces a barcode scan and passes the value in a JavaScript-Function. In the JavaScript-Function filters can be activated. The action values are:
actionValues | |
---|---|
clear |
(optional) clears all filter |
js |
A JavaScript-Function to analyze the value of the scan and set filter. |
The function got the following parameters:
parameter | description |
---|---|
value |
The scanned text |
userData |
The user profile of the logged in user |
Functions to add filters:
function | description |
---|---|
eqFilter(name, value) |
|
notEqFilter(name, value) |
|
likeFilter(name, value) |
|
gtFilter(name, value) |
|
gteFilter(name, value) |
|
ltFilter(name, value) |
|
lteFilter(name, value) |
|
isNotNullFilter(name, value) |
|
isNullFilter(name, value) |
It is possible to define barcode parameters. It is similar to the configuration for the attribute. Add it to the actionValues
. See Barcode/ QR-Code
{
"label": "Scan",
"icon": "icon-barcode",
"action": "barcodeFilter",
"actionValues": [
{
"clear": true,
"js": "eqFilter('WONUM', value.split('|')[0]); eqFilter('WOPRIORITY', value.split('|')[1])"
}
]
}
OR filters¶
Look for Backend search with OR# barcodeDeeplink