Previous Topic: Custom Operations

Next Topic: How to Modify Attribute Descriptions

Operation Element

The Operation element defines a SQL statement that executes a custom query or calls a stored procedure to create, retrieve, modify, or delete an attribute. It is a subelement of the IMSManagedObjectAttr element, as shown in the following example:

<ImsManagedObjectAttr physicalname="tblUsers.id" displayname="User Internal ID" description="User Internal ID" valuetype="Number" required="false" multivalued="false" maxlength="0" hidden="false" permission="READONLY">
  <Operation name="GetDb" value="select @@identity" />

Operation element parameters are as follows:

name

Specifies a pre-defined name for an operation. The valid operations are as follows:

value

Defines the SQL statement or stored procedure to execute. The valid values are as follows:

Note: The parameters are optional unless otherwise specified.

The Operation element can contain one or more Parameter elements.