GetTransactionInfoAsXML

Returns an XML string containing information on transactions for a cell in a statutory application. You can specify whether source transactions, destination transactions, or both are returned.

Tip:

To return transaction information in a non-XML format, use GetDestinationTransactions or GetSourceTransactions.

Syntax

<HFMwDataGrid>.GetTransactionInfoAsXML (lRow, lColumn, lFlagsRequestedInfo)

Argument

Description

lRow

The index of the row that contains the cell for which to return transaction information.

Input argument. Long subtype.

lColumn

The index of the column that contains the cell for which to return transaction information.

Input argument. Long subtype.

lFlagsRequestedInfo

Specifies the type of information to be returned in the XML string. Pass one of the HFMConstants type library listed in Data Grid Transaction Information Constants.

Tip:

You can use the addition operator ( + ) with these constants to return multiple types of information.

Input argument. Long subtype.

Return Value

Returns an XML string that represents the transaction information. The XML string is described in Transaction Information DTD.

Example

The following example prints the specified cell’s transaction header information and source transactions to a file. Note how the call to GetTransactionInfoAsXML uses the addition operator to return both header and source transaction information.

Dim sXml, oFs, oTs
' cHFMDataGrid is a previously set HFMwDataGrid object
sXML = cHFMDataGrid.GetTransactionInfoAsXML (0, 0, _ 
WEBOM_DATAGRID_TRANSACTION_INFO_HEADER + _ 
WEBOM_DATAGRID_TRANSACTION_INFO_SOURCE)
' Write the string to disk as a text file
set oFs = CreateObject("Scripting.FileSystemObject")
' sFile is a previously set string containing the output file’s
' name and path
set oTs = oFs.CreateTextFile(sFile)
oTs.Write(sXml)
oTs.Close