Extended current selections
Makes it possible to show a list over selected values.
Selected values
Example: List selected values in Qlik Sense Desktop
var extendedCurrentSelection = App.GetExtendedCurrentSelection(); foreach (var field in extendedCurrentSelection.FieldNames) { Console.WriteLine("Field: " + field); IEnumerable<NxDataPage> pages = extendedCurrentSelection.GetSelectedData(field, new[] { extendedCurrentSelection.Size(field).AsPage(100) }); foreach (var dataPage in pages) { Console.WriteLine("Selected value : " + dataPage.AllCells().Select(cell => cell.Text)); } }
Output:
Field : Dim1 Selected value: a Selected value: c
Learn more
SelectionExtensions Class in the
API reference