AutoAdd Element (Data)

From HLKitWiki
Revision as of 12:52, 24 November 2008 by Rob (talk | contribs) (New page: {{context|Kit Reference|Structural File Reference}} ==The "autoadd" Element== There will likely be situations where you want to pre-select the contents of a chooser or pre-populate items...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Context: HL Kit … Kit Reference … Structural File Reference 

The "autoadd" Element

There will likely be situations where you want to pre-select the contents of a chooser or pre-populate items into a table for the user. However, you also want the user to able to delete or replace these items. This is one of the various mechanisms for automatically adding picks to actors and it can be utilized via the "autoadd" element. The complete list of attributes for this element is below.

thing Id – Specifies the unique id of the thing that is to be automatically added to the container.
portal Id – Specifies the unique id of the portal into which the thing is to be added.

Example

The following example demonstrates what an "autoadd" element might look like. All default values are assumed for optional attributes.

<autoadd thing="journal" portal="journal"/>