Skip to main content Skip to complementary content

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

 

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!