# The dataMap argument is simply a Python Dictionary with the name of each Parameter and Data Source acting as a key.
# Assuming a Report Parameter named 'shift', the value of 'shift' may be accessed with the following
dataMap['shift']
# Similar syntax may be used to extract the value from a Data Source.
data = dataMap['myDataSource']
# Rows objects, while similar in nature to a dictionary, are different objects.
# Individual rows in the Data Source may be accessed by index.
firstRow = data[0]
# getKeys() may be called on a row to list all of the column headers in the row.
firstHeader = firstRow.getKeys()[0]
# getKeyValue() may be used to access the value of a column in the row.
firstColumnInRow = firstRow.getKeyValue(firstHeader)
|