InterSystems IRIS Data Platform 2019.2  /  Using Studio

Using Studio
Adding XData Blocks to a Class
Previous section           Next section
InterSystems: The power behind what matters   

An XData block is a block of XML code that you can add to your class definition.
You can add an XData block to a class definition in two ways:
To add an XData block using the Class Editor, position the cursor at a blank line and enter an XData declaration such as:
XData ProductionDefinition
Alternatively, you can copy and paste an existing XData block and then edit it.
New XData Wizard
You can invoke the New XData wizard using the Class > Add > XData.
The New XData wizard displays a single page prompting you for a name for the XData block and a description. To end, select Finish. Add XML code into the Class Editor window to complete the XData block.
The New XData wizard prompts you for the following information (you can later modify any of these values):
XData Name
(required) Name of the new XData. This name must be a valid name and must not conflict with the name of a previously defined XData.
See the section “Class Members” in the appendix “Rules and Guidelines for Identifiers” in the Orientation Guide for Server-Side Programming.
(optional) Description of the new XData.
For details, see “XData Definitions” in the Class Definition Reference.

Previous section           Next section
Send us comments on this page
View this book as PDF   |  Download all PDFs
Copyright © 1997-2019 InterSystems Corporation, Cambridge, MA
Content Date/Time: 2019-10-18 05:16:51