This version is out of date, covering development from v5.0.0 to v5.12.2. It is maintained here only for inbound reference links from elsewhere.

Jump to the current version of aTbRef.

Tinderbox Icon

SetFor

<SetFor name="" attribute=""> variable and/or string </SetFor>

Occurs: Inside finalize

Multiple instances: Yes

Has attributes: Yes - name, attribute

Self-closing: No

Used to set values in the exported version of the wizard package's TBX file.

name. Note (path or) name to be edited.

attribute. Attribute of above-named note to be edited.

It is likely (not documented) that name must have a value (it can be the name of the output TBX without '.tbx' extension to set at the TBX root level. There doesn't appear to be a way to set the document-level default (but see SetDefault).

The variable/string value will often be a variable set as the result of input on a previous panel. If the variable/string value isn't set (i.e. empty) it appears (not documented) that no value is written - thus the attribute retains its default or inherited value.

Example:

This sets the open TBX file's attribute Account of note Amazon, inside top-level note Configuration, to the value of wizard variable $AmazonID.

<SetFor name="/Configuration/amazon" attribute="Account">$AmazonID</SetFor> 


Possible relevant notes (via "Similar Notes" feature):


A Tinderbox Reference File : Syntax Library: Tutorials, Wizards and Timelines : Tinderbox Wizards : A 'wizard.twiz' file : Wizard XML Syntax : SetFor