OperationMetaData Object

Use the OperationMetaData object to manage operation metadata.

Click a method to see more information on its use, syntax, and parameters:

AltDestinations Property

Used to get an AppConnStringList of the alternate destinations of an operation.

Syntax

Set Destinations = object.AltDestinations

Part Description
object An operation metadata object
Destinations An AppConnStringList of alternate destinations

Remarks

Use the AltDestination property to get an AppConnStringList of alternate destinations of an operation.

Example

Dim Verastream_Session As AppConnModel
Dim strModelName, strServerName, strEntityName, strOperationName As String
Dim objMetaData As OperationMetaData
Dim Destinations As AppConnStringList

strModelName = "CCSDemo"
strServerName = "localhost"
Set Verastream_Session = New AppConnModel
Verastream_Session.ConnectToModel strServerName, strModelName

strEntityName = "CustInquiryPanel"
strOperationName = "ToNameSearch"

Set objMetaData = Verastream_Session.GetOperationMetaData(strEntityName, _
        strOperationName)

Set Destinations = objMetaData.AltDestinations
For I = 1 To Destinations.Count
    MsgBox ("Alternate destination: " & Destinations(I))
Next
Set Destinations = Nothing

Verastream_Session.Disconnect
Set Verastream_Session = Nothing

AttributesUsed Property

Used to get an AppConnStringList of the attributes used for an operation.

Syntax

Set Attributes = object.AttributesUsed

Part Description
object An operation metadata object
Attributes An AppConnStringList of attributes used for an operation

Remarks

Use the AttributesUsed property to get an AppConnStringList of attributes used for an operation.

Example

Dim Verastream_Session As AppConnModel
Dim strModelName, strServerName, strEntityName, strOperationName As String
Dim objMetaData As OperationMetaData
Dim AttributesUsed As AppConnStringList

strModelName = "CCSDemo"
strServerName = "localhost"
Set Verastream_Session = New AppConnModel
Verastream_Session.ConnectToModel strServerName, strModelName

strEntityName = "CustInquiryPanel"
strOperationName = "ToNameSearch"

Set objMetaData = Verastream_Session.GetOperationMetaData(strEntityName, _
        strOperationName)
Set AttributesUsed = objMetaData.AttributesUsed
For I = 1 To AttributesUsed.Count
    MsgBox ("Attributes used: " & AttributesUsed(I))
Next
Set AttributesUsed = Nothing

Verastream_Session.Disconnect
Set Verastream_Session = Nothing

Description Property

Used to get the description of an operation.

Syntax

object.Description

Part Description
object An operation metadata object

Remarks

Use the Description property to get the description of an operation.

Example

Dim Verastream_Session As AppConnModel
Dim strModelName, strServerName, strEntityName, strOperationName As String
Dim objMetaData As OperationMetaData

strModelName = "CCSDemo"
strServerName = "localhost"
Set Verastream_Session = New AppConnModel
Verastream_Session.ConnectToModel strServerName, strModelName

strEntityName = "CustInquiryPanel"
strOperationName = "ToNameSearch"

Set objMetaData = Verastream_Session.GetOperationMetaData(strEntityName, _
        strOperationName)
MsgBox ("Operation metadata Description is " & objMetaData.Description)

Verastream_Session.Disconnect
Set Verastream_Session = Nothing

Destination Property

Used to get the destination of an operation.

Syntax

object.Destination

Part Description
object An operation metadata object

Remarks

Use the Destination property to get the primary destination of an operation.

Example

Dim Verastream_Session As AppConnModel
Dim strModelName, strServerName, strEntityName, strOperationName As String
Dim objMetaData As OperationMetaData

strModelName = "CCSDemo"
strServerName = "localhost"
Set Verastream_Session = New AppConnModel
Verastream_Session.ConnectToModel strServerName, strModelName

strEntityName = "CustInquiryPanel"
strOperationName = "ToNameSearch"

Set objMetaData = Verastream_Session.GetOperationMetaData(strEntityName, _
        strOperationName)

MsgBox ("Operation metadata Destination is " & objMetaData.Destination)

Verastream_Session.Disconnect
Set Verastream_Session = Nothing

IsDefault Property

Method used to get the default flag of the operation.

Syntax

object.IsDefault

Part Description
object An operation metadata object

Remarks

Use the IsDefault property to get the default flag of an operation.

Example

Dim Verastream_Session As AppConnModel
Dim strModelName, strServerName, strEntityName, strOperationName As String
Dim objMetaData As OperationMetaData

strModelName = "CCSDemo"
strServerName = "localhost"
Set Verastream_Session = New AppConnModel
Verastream_Session.ConnectToModel strServerName, strModelName

strEntityName = "CustInquiryPanel"
strOperationName = "ToNameSearch"

Set objMetaData = Verastream_Session.GetOperationMetaData(strEntityName, _
        strOperationName)

MsgBox ("Operation metadata IsDefault is " & objMetaData.IsDefault)

Verastream_Session.Disconnect
Set Verastream_Session = Nothing

MetaDataType Property

Method used to get the type of metadata the operation is.

Syntax

object.MetaDataType

Part Description
object An operation metadata object

Remarks

Use the MetaDataType property to get the type of metadata within a Verastream table. The enumeration values for AppConnMetaDataType are defined in the Type Library.

Metadata Types
AttributeMeta
OperationMeta
RecordSetMeta
FieldMeta
VariableMeta
TableMeta
ColumnMeta
ProcedureMeta

Example

Dim Verastream_Session As AppConnModel
Dim strModelName, strServerName, strEntityName, strOperationName As String
Dim objMetaData As OperationMetaData
Dim Destinations As AppConnStringList

strModelName = "CCSDemo"
strServerName = "localhost"
Set Verastream_Session = New AppConnModel
Verastream_Session.ConnectToModel strServerName, strModelName

strEntityName = "CustInquiryPanel"
strOperationName = "ToNameSearch"

Set objMetaData = Verastream_Session.GetOperationMetaData(strEntityName, _
        strOperationName)

MsgBox (objMetaData.MetaDataType)

Verastream_Session.Disconnect
Set Verastream_Session = Nothing
Set objMetaData = Nothing

Name Property

Method used to get the name of the operation.

Syntax

object.Name

Part Description
object An operation metadata object

Remarks

Use the Name property to get the name an operation.

Example

Dim Verastream_Session As AppConnModel
Dim strModelName, strServerName, strEntityName, strOperationName As String
Dim objMetaData As OperationMetaData

strModelName = "CCSDemo"
strServerName = "localhost"
Set Verastream_Session = New AppConnModel
Verastream_Session.ConnectToModel strServerName, strModelName

strEntityName = "CustInquiryPanel"
strOperationName = "ToNameSearch"

Set objMetaData = Verastream_Session.GetOperationMetaData(strEntityName, _
        strOperationName)
MsgBox ("Operation metadata name is " & objMetaData.Name)

Verastream_Session.Disconnect
Set Verastream_Session = Nothing

Timeout Property

Used to get the operation timeout.

Syntax

object.Timeout

Part Description
object An operation metadata object

Remarks

Use the Timeout property to get the timeout duration (seconds) for an operation.

Example

Dim Verastream_Session As AppConnModel
Dim strModelName, strServerName As String
Dim strEntityName, strOperationName As String
Dim objMetaData As OperationMetaData

strModelName = "CCSDemo"
strServerName = "localhost"
Set Verastream_Session = New AppConnModel
Verastream_Session.ConnectToModel strServerName, strModelName

strEntityName = "CustInquiryPanel"
strOperationName = "ToNameSearch"

Set objMetaData = Verastream_Session.GetOperationMetaData(strEntityName, _
        strOperationName)

MsgBox ("Operation metadata Timeout is " & objMetaData.Timeout)

Verastream_Session.Disconnect
Set Verastream_Session = Nothing
Set objMetaData = Nothing

VariablesUsed Property

Used to get an AppConnStringList of the variables used for an operation.

Syntax

Set Variables = object.VariablesUsed

Part Description
object An operation metadata object
Variable An AppConnStringList of variables used for an operation

Remarks

Use the VariablesUsed property to get an AppConnStringList of variables used for an operation.

Example

Dim Verastream_Session As AppConnModel
Dim strModelName, strServerName, strEntityName, strOperationName As String
Dim objMetaData As OperationMetaData
Dim VariablesUsed As AppConnStringList

strModelName = "CCSDemo"
strServerName = "localhost"
Set Verastream_Session = New AppConnModel
Verastream_Session.ConnectToModel strServerName, strModelName

strEntityName = "CustInquiryPanel"
strOperationName = "ToNameSearch"

Set objMetaData = Verastream_Session.GetOperationMetaData(strEntityName, _
        strOperationName)

Set VariablesUsed = objMetaData.VariablesUsed
For I = 1 To VariablesUsed.Count
    MsgBox ("Variables used: " & VariablesUsed(I))
Next
Set VariablesUsed = Nothing

Verastream_Session.Disconnect
Set Verastream_Session = Nothing
Set objMetaData = Nothing
Set VariablesUsed = Nothing