LINKS
LINKS
How to create the javascript code for the data editing function of Newland PDA
Announcer: Alan Time: 3rd Aug 2025
Share to :
2 views 0 comments

How to edit script file

What you need to do is create a js script file and overwrite the JSDataFormat method.

The JSDataFormat method contains the following five parameters and you can use these parameters to program .Notice that you should not change the method name.

 

【Pramaters】

 

Name

Type

Description

codeType

Int

Barcode type’s digital code. The corresponding bar code name can refer to the CodeTypeMap in the picture.

aimid

Hexadecimal value array

Aimid can be used to indicate the type of the current barcode

aimidLength

Int

The length of aimid.

decodeResult

Hexadecimal value array

The scanned barcode

ResultLength

Int

The scanned barcode length

 

【Return value】

You need to return an Hexadecimal value array as return value.

 

Code Example:

Here is an example for display the Code Name:Code:Code Aimid

If you execute the above script and scan the following code128 then you will get output

Code 128:123:]C0

All comments (0)
POPULAR TAGS