![]() |
RTView®
User Guide |
navtree.xml For Navigation Control Objects This section describes how to populate a navigation control object from an XML data source using the navtree.xml format. Using the navtree.xml format enables the XML data source to parse the navtree.xml content and convert it into a table in the row-node format, which is a format accepted by navigation control objects. A navigation control--the tree control (class name: obj_c1tree) or the accordion control (class name: obj_c1accordion)--can then be used on an RTView display. When the XML data source parses the navtree.xml file it creates a table and gives it the data key navtree. When you use the Builder Attach to XML Data dialog, enter navtree in the Data Key field. The table has one row for each node that is defined in the navtree.xml file. The table contains the following columns:
Typically, you attach the valueTable property of a navigation control object to the navtree table, and the navigation control object's valueTableFormat property is set to Row-Node. Subsequently, the column names listed above are specified as values for other properties on the navigation control as follows:
To see an example of an accordion control configured in this manner, use the
Builder to examine the display named accordcon.rtv, located in the RTV_HOME/demos/features
directory.
The XML file used by the example is demos/features/navtree.xml. To see the working example, type the following commands in an RTView command
prompt:
This tells RTView to parse the string found in the Subs column for the node
selected in the navigation control, which is expected to contain one or more sub:value pairs, separated
by spaces. For example, if the Subs column contains this string:
|
|
|
|