SetFor

Tinderbox Icon

<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 

[Last updated: 3 Dec 2008]

Google search aTbRef for:  

Licensed under Creative Commons Attribution-Noncommercial-Share Alike 3.0 License
[See aTbRef CC licence Attribution/Waiver info info]

Creative Commons License

Made with Tinderbox