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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

((Integer)globalMap.get("tMsgBox_4_RESULT"))) at TMAP

Hi guys. I am getting a variable from tMsgBox_4 and I want to use the value (it's a number) inside TMAP. I am using this to get the result but I am getting an error.
row1.recaudacionSINIVA -  row1.cambiocargado - row1.CC_recaptacio - (row1.visita * ((Integer)globalMap.get("tMsgBox_4_RESULT"))) - row1.CC_Caducados + row1.FACTURACION - row1.CC_facturacio 
Exception in component tMap_1 java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer
Labels (3)
1 Reply
gorotman
Creator II
Creator II

Hi, try this: Integer.parseInt((String)globalMap.get("tMsgBox_4_RESULT"))
You can't cast a String to an Integer object..... 0683p000009MACn.png
bye