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: 
Anonymous
Not applicable

[resolved] globalMap.get

To Shong,
What if I have a column name QUANTITY and has a data type of float.
JasperETL calls QUANTITY in a way like this ((Double)).globalMap.get("row5.QUANTITY")) but this will cause an error. Type mismatch: cannot convert double to float.
If I change (Double) to (Float) I will encounter this message : java.lang.Double cannot be cast to java.lang.Float
What will I do?
Thanks
Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi Shong,
I used the expression that you have suggested in tFixedFlowInput but I have an error encountered.
Double cannot be resolved

View solution in original post

5 Replies
Anonymous
Not applicable
Author

Hi
Try this expression:
new Float(((Double)).globalMap.get("row5.QUANTITY")))
Best regards
Shong
Anonymous
Not applicable
Author

Hi Shong,
I used the expression that you have suggested in tFixedFlowInput but I have an error encountered.
Double cannot be resolved
Anonymous
Not applicable
Author

Hi
Can you upload a screenshot of tFixedFlowInput?
Best regards
Shong
Anonymous
Not applicable
Author

Update,
It's now working shong thanks!
Anonymous
Not applicable
Author

Hi
Good! I will set the topic as resolved!
Best regards
Shong