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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Nicolas661
Contributor
Contributor

Use GlobalMap.get

Hello,
In a "tAs400Input", I have "select max(a) as toto from table" and row connection with a "tSetGlobalVar".
(Key: "abc" and Value: "row4.toto")---> test with tlogrow: OK !!!

I try after in tmap: (Integer)globalMap.get("abc")
The error message is: "Convert impossible Object to float"

what is wrong ?
Labels (2)
4 Replies
Anonymous
Not applicable

tLogRow would cast your value to String - no problem there
but when trying to cast (keyword here is CAST) it fails.
so could you tell what is the data type of your 'abc' variable?
Nicolas661
Contributor
Contributor
Author

Nicolas,
'abc' is a string
In 'tSetGlobalVar', 'abc' is the name of my variable ?
Anonymous
Not applicable

alevy
Specialist
Specialist

It looks like you included the double-quotes in setting Value, which stores the words "row4.toto" into the globalMap rather than the value of that field from the row!
All tLogRow shows is the values of the flow going into tSetGlobalVar, not what tSetGlobalVar has actually done. To test, use tJavaRow with: System.out.println(globalMap.get("abc"));