Attaching objects to XML data
After having defined an XML data source you can attach object properties to the data elements within the XML data file. The steps for doing this are similar to defining attachments to scenario data.
1. If you have not yet done so, define the XML data source xml data as detailed in the previous section.
2. Open the file tutorial-xml-data.rtv by selecting XML Data on the tutorial main page. The table object in this dashboard is attached to the production_table data element in the file tutorial-xml-data.xml.
3. Open the file tutorial-xml-data.xml in a text editor and examine it to see that there is a column in the table for each column defined for production_table and that there is a row in the table for each row defined.
4. Select the table object and double click on the valueTable property in the Object Properties panel. Here the property is attached to the production_table data element for the XML data source named xml data. The Columns and Filter fields can be used to select a subset of columns or rows as is done for scenario data attachments.
5. With the table object still selected, right click the label property and select XML from the Attach to Data menu. 6. If label is a scalar property, it must be attached to a scalar data element. Attach it to the data element string_element as shown in the following: Do not use the Data Server field of the Attach to XML Data dialog.
The label of the table will change.
Copyright © 2013
Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel and/or their licensors.