VectorLabel is in beta. These pages describe the current beta builds, which are pre-release software: what they say may change before the first production release, and parts marked Beta are new or still being tested. Downloading the beta needs an account with VectorLabel beta access (ask for it here). Tell us if something here is wrong.
In both designers, the fields in a formula show as chips rather than raw names. You still type functions, & and quoted text yourself, and the formula is saved as plain text, as before. The language itself is on The formula language.
Field chips are new in 1.20.0-beta.7. They haven't been tried with every keyboard layout and input method yet; if anything types oddly, tell us.
Where chips appear
In every formula box: the text and barcode panels with Formula chosen, the table-cell panel, and the formula editor window that Editor ⤢ opens. A chip shows the field's display name; hover over it to see the column it reads.
A formula in a panel applies as you type, and the preview follows. Return finishes, and Esc puts the formula back as it was when you clicked into it. After you leave the box, one ⌘Z undoes the whole edit. The formula editor window works on a copy until you click Apply (⌘↩) or Cancel (Esc). On Windows, use Ctrl for ⌘.
Putting a field in
Click Fields ▾ under a panel's formula box to show the field buttons (the formula editor window always shows them), then click a field. It goes in at the cursor:
- In an empty formula, or the
=""a new formula starts with, you get=Field. - Next to another value, it is joined on with
&, so the formula still gives one value. - Inside quoted text, the text is split around it: with the cursor between
bandcin"abc", you get"ab"&Field&"c".
You can also drag a column header from the Records panel (Template Designer) or the Database pane (Custom Designer) onto a formula box; the field goes in where you drop it. Formula text you paste outside quoted text gets its chips straight away; field names you type become chips when you leave the box.
Replacing or removing a field
Right-click a chip for Replace field… or Remove. Replace field… opens a list of the label's fields: type to search, then click one or press Return. Double-clicking a chip opens the same list.
Click a chip to select it: Delete removes it, and typing replaces it. The left and right arrow keys step over a chip in one press.
Amber chips and the hint line
- Amber: the label has no field by that name. The preview shows the name itself; when printing, a value appears only if the data has a column with that name.
- Dashed outline: the Custom Designer has no data bound, so the field can't be checked yet.
- Faded: the field is inside quotes, so it prints its name instead of its value; move it out of the quotes. Chips are also faded when the formula doesn't start with
=.
A short line under the formula names any problem it finds: an unknown field, a field inside quotes, a quote or [ that is never closed, a formula that doesn't start with = (so it prints as plain text), or a curly quote that ends quoted text.
Quotes and smart quotes
Smart quotes, smart dashes, text replacements and autocorrect are off in both designers and the print window, because on a cable label a " is usually an inch mark. Other apps keep your system setting.
In a formula box, a curly quote you type or paste becomes a straight " only where it opens or closes quoted text. One typed inside quoted text, like an inch mark (⌥⇧[ on a Mac), stays as typed. When an opened template has a curly quote that ends quoted text, the hint line says "A curly quote ends the quoted text here", so you can retype it as ", or as "" if you meant a quote mark. The rule for curly quotes is on Quote marks in text.
Renaming a column in the Custom Designer updates the formulas that use it, including those in table cells, and leaves words inside quoted text alone.
Keys
- ⇧F10 opens the menu for the selected chip, or the chip beside the cursor. In the formula editor window, Return on a selected chip does the same.
- In that menu and in the field list: ↑ ↓ to move, Return to choose, Esc to close.
- In the formula editor window, Return starts a new line and ⌘↩ applies.
- ⌘Z and ⇧⌘Z undo and redo inside a formula box.