This version is out of date, covering development from v4.6.0 to v4.7.1. It is maintained here only for inbound reference links from elsewhere. Jump to the current version of aTbRef. |
|
A Tinderbox Reference File : Tutorials and Wizards : Tinderbox Wizards : A 'wizard.twiz' file : Wizard XML Syntax : SetFor | aTbRef Site Map |
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.
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 s written - thus the attribute retains its default or inherited value.
Example:
This set 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>
Up: Wizard XML Syntax | |
Previous: SetExportFolder | Next: SetHomePage |
Licensed under Creative Commons Attribution-Noncommercial-Share Alike 3.0 License
[See aTbRef CC licence Attribution/Waiver info info]