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 (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):

Up: Wizard XML Syntax
Previous: SetExportFolder  Next: SetHomePage 

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

Quicklinks: Attributes | Action Codes | Export Codes | Designators | Date Formats | aTbRef Site Map

[Last updated: 16 May 2012, using v5.11.1]


Search:

Google search aTbRef for:  


Creative Commons Licence

aTbRef by Mark Anderson is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.

[See aTbRef CC licence Attribution & Waiver info]

Made with Tinderbox