Skip to content

createSerializedGRAI

Implementations

Microsoft Excel: AIDCT.GS1.createSerializedGRAI(prefixDefinition, value, serialComponent, sparse)

Google Sheets: Google Sheets: aidctGS1CreateSerializedGRAI(prefixDefinition, value, serialComponent, sparse)

Create a serialized GRAI.

This function returns a matrix of values of the same shape and size as the serialComponent parameter.

Parameters

NameTypeDescription
prefixDefinition*AnyPrefix definition, either a simple GS1 Company Prefix (as a string) or the result of a call to definePrefix. Only prefix types 0 (GS1 Company Prefix) and 1 (U.P.C. Company Prefix) are supported.
valueNumberValue to transform.
serialComponent**StringSerial component.
sparseBooleanIf true, value is mapped to a sparse sequence resistant to discovery.

Parameters in italics are optional.

* This parameter accepts a single value or an array of values.

** This parameter accepts a single value, an array of values, or a matrix of values.