(data, columnName)
| 12929 | return options; |
| 12930 | } |
| 12931 | function getDistinctValues(data, columnName) { |
| 12932 | const distinctMap = {}; |
| 12933 | for(let i = 0; i < data.length; i++){ |
| 12934 | let row = data[i]; |
| 12935 | let value = row[columnName]; |
| 12936 | distinctMap[value] = true; |
| 12937 | } |
| 12938 | return Object.keys(distinctMap).sort(); |
| 12939 | } |
| 12940 | function getValues(ex, column, data, autoCompleteDistinctValues) { |
| 12941 | const stats = column && column.stats; |
| 12942 | if (stats && stats.distinctValueCount < maxAutocomplete) { |