Data table row counts for marking groups
/Description: Count marked rows in a data table for all marking groups.
Assumptions: An optional 'myTable' data table type script parameter.
#Pick one of the following data table reference methods: #myTable = Application.Document.Data.Tables['MyDataTable'] #Name method #myTable = Application.Document.ActiveDataTableReference #Active data table method #myTable = Application.Document.Data.Tables.DefaultTableReference #Default data table method #myTable as a data table type script parameter #Script parameter method for marking in Document.Data.Markings: print "Marking Name: " + marking.Name print "Marking Color: " + marking.Color.Name, marking.Color.ToString() print "Table Name: " + myTable.Name print "Marked Row Count: " + str(marking.GetSelection(myTable).IncludedRowCount) print "\r\n"