SDMSHelper.ApprovalTypes

This property is read only.

Syntax Parameters Return Value
ReadOnly Property SDMSHelper.ApprovalTypes( _
    Hwnd As Integer) As String()
Hwnd [in]

The handle of the Statistica application.

Type: Integer

String()

SVB Example

Approving a document via SDMS:

Sub Main

    'Run the example "Adding a document to Enterprise" prior to running
    'this one. It will assume a file named "/Blake's Materials/WEIGHTS Descriptives Script.svb"
    'is in the system.
    Dim oOM As ObjectManager
    'Reconnect into Enterprise
    Set oOM = New ObjectManager
    oOM.Reconnect Application

    'Approve the document by ID.
    'Note: SDMSHelper.ApprovalTypes returns the strings representing the different types of approvals:
    '0. Read and Understood
    '1. Approved for internal distribution
    '2. Approved for publication
    oOM.SDMSHelper.ApproveWithBumpingVersion(Application.Handle, swcBinaryDocument, _
        oOM.BinaryDocuments("/Blake's Materials/WEIGHTS Descriptives Script.svb").ID, _
        oOM.SDMSHelper.ApprovalTypes(Application.Handle)(1), "Approved by " & oOM.SDMSHelper.CurrentUserName(Application.Handle))

    oOM.Disconnect

End Sub