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: 
_AnonymousUser
Specialist III
Specialist III

String to int conversion

Hello,
I am trying to convert a String into an int. I am using the expression:
Integer.parseInt(Name.SECURITY_LEVEL)
What I get when I test the expression is:
Exception in component tRowGenerator_1
and
Multiple markers at this line
- Syntax error on token ")", AssignmentOperator expected after
this token
- The left-hand side of an assignment must be a variable
I don't understand. Doesn't this expression return an int?
Thanks for any help,
Jim Long
Labels (2)
10 Replies
Anonymous
Not applicable

Hello,
Was any solution to this problem ever found? I am experiencing the same problem... any advice appreciated. Based on the responses above, I am attaching an image of the tMap and the file with tRowGenerator_1 code.
Thanks,
Jeremy
EDIT: it did not let me attach the code, so pasting it in here. file Expression_builder_RowGenerator2.java:

// ============================================================================
//
// Copyright (c) 2005-2010, Talend Inc.
//
// This source code has been automatically generated by_Talend Open Studio for Data Integration
// / JobDesigner (CodeGenerator version 5.0.2.r78327)
// You can find more information about Talend products at www.talend.com.
// You may distribute this code under the terms of the GNU LGPL license
// . <

To see the whole post, download it here
OriginalPost.pdf