Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
bcqlikuser
Contributor
Contributor

Get numeric field value from current selections

I have a web application with a Qlik iFrame where I want to reapply  selections from one sheet onto another sheet, after setting the iFrame source to the new sheet url. The problem I have is that when I use the C# method GetCurrentSelection on an appId  and my session I get all my current selections, but I only get the Text property of the selection, if the field is of a numeric type, how can I get those selected numeric values? When I apply the selections on the new sheet I use the command "app.GetField(THE_FIELDNAME).SelectValues(LIST_OF_FIELD_VALUES, true)". Each FieldValue have the properties Text, IsNumeric and Number. The text fields work as expected and I can apply them without problem, but to apply the numeric selections I need to set IsNumeric = true and Number to a value of type double. Is there any way to check if the field is numeric when getting the selections, and also get the numeric value, instead of the Text value?

Thanks in advance.

/Bobby

Labels (2)
0 Replies