template-out-value-type

Marks a content-kind column: each record's value in this column names what the cells written from that record hold:

pebblestream:template-out-value-type

ValueEffect
value (default)The plain value is written.
formulaThe value is written as an Excel formula.
noteThe value becomes a cell note; the cell itself stays empty.

Blank values fall back to value. Number formatting is not a value type — it
resides inside the style applied by
template-out-style, so the two directives never
conflict.

Syntax

pebblestream:template-out-value-type
  • No arguments.
  • Placed on the header cell of the column holding the kind per record — at
    most one column per worksheet.
  • Requires template-name on the same (output) worksheet.
  • Cannot share a column with an anchor (template-out-header/template-out-cell)
    or with template-out-group.

Submitting formula values

Formula values must arrive as text so Excel never evaluates them on the way
in. Either form is accepted and normalized back to =SUM(A:A) before writing:

SUM(A:A)
pebblestream:formula=SUM(A:A)

Example

columnheadercomment
AItempebblestream:template-out-header
BAmountpebblestream:template-out-header
CKindpebblestream:template-out-value-type

A record (Total, =SUM(B2:B9), formula) writes an actual Excel formula into the
template; (Total, see note, note) attaches see note as a cell note instead.

Errors

ErrorCause
dir-too-many-argsArguments were supplied.
dir-appears-multiMore than one column carries the directive.
template-out-conflictThe column also has an anchor or template-out-group.
missing-the-template-name-directiveThe sheet has no template-name.

Related


Did this page help you?