IronPython: Get Unique values from Data Column
IronPython Script to extract the unique values from a Data Tables' Column. #-------Gets Unique values from a Column---------# def fnGetUniqueColVal (TblName,ColName): #Get Table and Column References dtRef=Document.Data.Tables[TblName] ColCursor=DataValueCursor.CreateFormatted(dtRef.Columns[ColName]) fnUnique = "" fnUniquearr = {} for row in dtRef.GetRows(ColCursor): rowIndex = row.Index fnUniquearr[ColCursor.CurrentValue] = 1 for key, value in fnUniquearr.items() : ...