Advanced Options for Generic Devices
If the Family selected is Family Driver and the Model selected is Generic, then the Advanced tab displays the following options. Some options may not be relevant to some device models. For more information about drivers and Loftware Enterprise™ SP, see Managing Devices.
Advanced Options
Option | Description | Values |
---|---|---|
Zip Print Stream |
Whether the print stream will be zipped with GZIP compression. |
|
Output as JSON |
Whether to output the print stream as JSON data rather than XML data. |
![]()
|
Transform XML with XSLT |
Whether the user will specify an XSL file that will be used to transform the XML output into user-formatted output.
|
|
Path to XSL File |
The specified path to an XSL file. Tested URL formats are file and http. Note: This option is available only if the Transform XML with XSLT option is selected. |
|
Schema Version |
The version of the schema. |
1.0 |
Print Job Mode |
Whether to allow Loftware Enterprise SP to automatically select the print job mode, to always use native mode, or to always use extended mode. When using extended mode, Loftware Enterprise SP analyzes the content of each field in a label template separately. Also, if the quantity is greater than 1, the label is sent to the device each time. |
Automatic: Use native device commands if possible; otherwise, use extended mode (Default) Native: Always use native mode Extended: Always use extended mode |
Advanced Troubleshooting
Option | Description | Values |
---|---|---|
Advanced Troubleshooting |
Whether to display advanced troubleshooting options, including options for print stream scripting. |
Disabled: Do not display advanced troubleshooting options, and do not run a print stream script for this device connection. (Default) Enabled: Display advanced troubleshooting options. |
Print Stream Scripting
This section is displayed only if the Advanced Troubleshooting option is enabled.
Tip: For assistance with print stream scripting, contact Loftware's Professional Services Group.
Option | Description | Values |
---|---|---|
Script Name |
The name of the print stream script. Tip: This name may be included in log files, which may assist you if troubleshooting problems with the script. |
|
Apply Script |
Whether to run the print stream script. A print stream script is run just prior to sending data to a device. The effects of print stream scripting are reflected only in the print stream, not in the data map. Note: Regardless of whether Apply Script was selected, if the Advanced Troubleshooting option is disabled then the script is not run. |
|
Script |
A print stream script written in JavaScript. Loftware Enterprise™ SP uses the Rhino JavaScript engine for Script data sources and supports both the Rhino and Nashorn JavaScript engines for use in scripts in business rules. Rhino is an open source JavaScript engine maintained by the Mozilla Foundation, and Nashorn is an open source JavaScript engine maintained by Oracle. These engines enable you to parse, compile, and run JavaScript statements. Note: JavaScript versions 1.3 and later conform to the Standard ECMA-262 ECMAScript Language Specification. For more about this specification, see "Scripting, Java, and XML" in External Links. |