You are here: Appendix D: VBScript reference > The Meridian Enterprise functions > AIMS_ Commands function

AIMS_Commands function

Adds up to three custom Meridian Enterprise command buttons to the Meridian Explorer feedback page.

Syntax
Function AIMS_Commands() As Array
Parameters

This function accepts no parameters

Remarks

Each command button can run a VBScript function in the context of the current document in the Meridian Enterprise vault as demonstrated in the following example. The function must return an array of arrays that each define the command button caption and the name of a function to invoke when the button is clicked.

Example
Function AIMS_Commands()
    'For each button, provide a caption and function name in an array
    btnA = Array("Command A", "Do_ButtonA")
    btnB = Array("Command B", "Do_ButtonB")
    btnC = Array("Command C", "Do_ButtonC")
    
    'Return the array of commands
    AIMS_Commands= Array(btnA , btnB , btnC)
End Function

Sub Do_ButtonA()
    Document.Area1= "A"
    Document.ChangeManagementRemarks = "Option A chosen"
    Document.Log "Button A clicked at : " & CStr(Vault.ServerTimeGMT)
End Sub

Related information

AIMS_UpdateChangeManagement function

AIMS_Properties function


www.bluecieloecm.com