cobi.wms:label_templates
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
cobi.wms:label_templates [2022/11/25 16:55] – [File 2] tkammer | cobi.wms:label_templates [2023/06/19 13:59] (current) – tkammer | ||
---|---|---|---|
Line 90: | Line 90: | ||
| '' | | '' | ||
| '' | | '' | ||
+ | ^ Warehouse-level ^^ | ||
+ | | '' | ||
+ | | '' | ||
^ Bin location-level ^^ | ^ Bin location-level ^^ | ||
| '' | | '' | ||
Line 174: | Line 177: | ||
</ | </ | ||
- | In this example, the first GS1 barcode field is '' | + | In this example, the first GS1 barcode field is '' |
- | The next field is '' | + | The next field is '' |
Here's a list of commonly used GS1 field identifiers: | Here's a list of commonly used GS1 field identifiers: | ||
Line 188: | Line 191: | ||
=== Better control of generated HTML === | === Better control of generated HTML === | ||
- | The '' | + | The '' |
+ | |||
+ | The '' | ||
+ | |||
+ | < | ||
+ | <img id=' | ||
+ | </ | ||
+ | |||
+ | The '' | ||
< | < | ||
- | <img id=' | + | <img id=' |
</ | </ | ||
- | The parameters of the '' | + | The parameters of the '' |
==== User-input values ==== | ==== User-input values ==== | ||
Line 275: | Line 286: | ||
</ | </ | ||
- | **NOTE:** Don't put any spaces before or after the parentheses or the separating | + | **NOTE:** Don't put any spaces before or after the parentheses or the separating |
- | This placeholder uses the pipe symbol instead of commas to separate its parameters, because the parameters themselves may contain commas. | + | This placeholder uses the vertical bar symbol instead of commas to separate its parameters, because the parameters themselves may contain commas. |
The mechanism is as follows: the text found within the '' | The mechanism is as follows: the text found within the '' | ||
Line 325: | Line 336: | ||
</ | </ | ||
- | ====== Example template files ====== | + | ===== Example template files ===== |
The following example files serve to demonstrate the syntax and some of the features. | The following example files serve to demonstrate the syntax and some of the features. | ||
- | ===== File 1 ===== | + | ==== File 1 ==== |
This is a very simple template demonstrating the use of placeholders to print the item code and name, price, and a timestamp. | This is a very simple template demonstrating the use of placeholders to print the item code and name, price, and a timestamp. | ||
Line 357: | Line 368: | ||
sure the HTML renderer doesn' | sure the HTML renderer doesn' | ||
width: 148mm; | width: 148mm; | ||
- | height: | + | height: |
/* Don't change, use the container below. */ | /* Don't change, use the container below. */ | ||
Line 417: | Line 428: | ||
</ | </ | ||
- | ===== File 2 ===== | + | ==== File 2 ==== |
This file demonstrates the use of user-input values and JavaScript integration. | This file demonstrates the use of user-input values and JavaScript integration. | ||
Line 445: | Line 456: | ||
sure the HTML renderer doesn' | sure the HTML renderer doesn' | ||
width: 148mm; | width: 148mm; | ||
- | height: | + | height: |
/* Don't change, use the container below. */ | /* Don't change, use the container below. */ | ||
Line 470: | Line 481: | ||
} | } | ||
</ | </ | ||
+ | |||
<!-- Input definitions: | <!-- Input definitions: | ||
- | |||
@input(text[Insert value])@ | @input(text[Insert value])@ | ||
@input(selection[Select value]; | @input(selection[Select value]; | ||
@input(codeFormat[Barcode type]; | @input(codeFormat[Barcode type]; | ||
- | |||
--> | --> | ||
- | <!-- @useJavaScript@ --> | ||
< | < | ||
+ | // @useJavaScript@ | ||
window.onload = function() { | window.onload = function() { | ||
var insert = document.getElementById(' | var insert = document.getElementById(' | ||
insert.textContent = "Hello World!" | insert.textContent = "Hello World!" | ||
- | | + | cobiwms.print() |
} | } | ||
</ | </ |
cobi.wms/label_templates.1669391722.txt.gz · Last modified: 2022/11/25 16:55 by tkammer