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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
_AnonymousUser
Specialist III
Specialist III

How to show a Integer in a Message Box?

How to show a Integer in a Message Box?
When I try to show a Integer in a Message Box the following error occurs:
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
Type mismatch: cannot convert from Integer to String
at tel_cob.job_diario_carga_0_1.job_DIARIO_CARGA.tLoop_1Process(job_DIARIO_CARGA.java:1888)
at tel_cob.job_diario_carga_0_1.job_DIARIO_CARGA.tFileInputDelimited_1Process(job_DIARIO_CARGA.java:686)
at tel_cob.job_diario_carga_0_1.job_DIARIO_CARGA.runJobInTOS(job_DIARIO_CARGA.java:2826)
at tel_cob.job_diario_carga_0_1.job_DIARIO_CARGA.main(job_DIARIO_CARGA.java:2699)
Labels (3)
3 Replies
Anonymous
Not applicable

try adding this at the start of the Message box in tMsgBox
"" +

cause that worked for me, see attached pics
Anonymous
Not applicable

or you can convert the integer to a string
Integer.toString(context.NewInteger)

info about the Integer.toString() function: http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Integer.html
_AnonymousUser
Specialist III
Specialist III
Author

Thank you guys! Smiley Happy