Submit2

Performs a submit action on the specified process unit and optionally attaches documents.

Syntax

<HFMwManageProcess>.Submit2 (bstrScenario, bstrYear, bstrPeriod, bstrEntity, bstrParent, bstrValue, bstrComment, varabstrPaths, varabstrFiles)

Argument

Description

bstrScenario

The label of the process unit's Scenario dimension member.

Input argument. String subtype.

bstrYear

The label of the process unit's Year dimension member.

Input argument. String subtype.

bstrPeriod

The label of the process unit's Period dimension member.

Input argument. String subtype.

bstrEntity

The label of the process unit's Entity dimension member.

Input argument. String subtype.

bstrParent

The label of the parent of the entity specified in the bstrEntity argument.

Input argument. String subtype.

bstrValue

The label of the process unit's Value dimension member.

Input argument. String subtype.

bstrComment

A user comment for the action, or an empty string if there is no comment.

Input argument. String subtype.

varabstrPaths

An array of strings containing the paths in which the documents to be attached have been loaded. Folders in paths are delimited by backslashes ( \ ).

This array has a one-to-one correspondence with the varabstrFiles argument’s array of filenames.

Input argument.

varabstrFiles

An array of strings containing the file names of the documents to attach.

Note:

Files must be loaded in the folder specified by the corresponding item in the varabstrPaths argument’s array, otherwise an error will be thrown.

Input argument.

Return Value

Returns a number that represents the process unit’s review level. Valid values are represented by the constants listed in Process Management Review Level Constants. Long subtype.

Tip:

You can obtain a string that represents the review level by passing the return value to MapReviewLevelToString.

Example

The following example submits a process unit and attaches two documents.

Dim iState, saPaths(1), saNames(1)
saPaths(0) = "docs"
saPaths(1) = "docs"
saNames(0) = "Audit.txt"
saNames(1) = "Comments.txt"
'cHFMProcMan is an HFMwManageProcess object reference
iState = cHFMProcMan.Submit2("Budget", "2004", "August", "NewYork", _ 
  "UnitedStates","<EntityCurrency>", "see attachments", _ 
  saPaths, saNames)