Adding a database tree control
The database tree control has the following attributes:
Attribute name | Description |
|---|---|
name | Name of the database tree control |
control.style | Width and height, in pixels |
type | Type of control |
connection | Name of the database connection that is defined in the Connection Manager; if empty, the control is empty. |
noexpandbuttons | When this attribute is specified, the tree control does not draw the expand Plus (+) or collapse Minus (-) indicators or the associated arrows on the iOS. This attribute is useful for drawing multicolumn list controls. |
showheaders | When this attribute is specified, the tree control displays a header at the top that lists the name of each column. |
Any option tags that are placed inside the select tag are ignored.
To add a database tree control to a dialog box, you can use the following sample code with appropriate substitutions for quoted variables:
<select name="DBTree" style="width:400px;height:110px" ¬type="mmdatabasetree" connection="connectionName" noexpandbuttons showHeaders></select>You can change the connection attribute to retrieve selected data and display it in the tree. You can use the DBTreeControl attribute as a JavaScript wrapper object for the new tag. For more examples, see the DBTreeControlClass.js file in the Configuration/Shared/Common/Scripts folder.