Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
hi
how can i pass String in active express Builder ?
am doing like this
am not getting any output.
Hi,
You are trying to filter a tMap output flow to keep only rows associated to the input flow "row1" for which DEVICEID is equal to "LAB0115AN3131 " (including the final space.
2 things:
- are you sure about the final space?
- most important, you should never compare 2 strings using the "==" operator but only the "equals" or "equalsIgnoreCase" method like this:
row1.DEVICEID.equals("LAB0115AN3131 ")
(or maybe without the final space).
Hope this help.
Hi,
You are trying to filter a tMap output flow to keep only rows associated to the input flow "row1" for which DEVICEID is equal to "LAB0115AN3131 " (including the final space.
2 things:
- are you sure about the final space?
- most important, you should never compare 2 strings using the "==" operator but only the "equals" or "equalsIgnoreCase" method like this:
row1.DEVICEID.equals("LAB0115AN3131 ")
(or maybe without the final space).
Hope this help.
when it is string field ,use the below expression in active experss Builder.
row1.DeviceId.equals("LAB0115ANS3131 ")
if you have null data in row1.DeviceId,you may get null pointer exception
for that use below expression.
("LAB0115ANS3131 ").equals(row1.DeviceId)
@ksingh, did this help you.
In this case, thank's to mark your cae as solved (Kudo also accepted).
am doing this and am not getting any output. Please suggest me something which will helpful for me
do you have data space like after the end of the value "LAB0115ANS3131 ",if not please remove space.
can you try with row1.DeviceId.equals("LAB0115ANS3131") ?
am not getting any output . now what i will do ?
Hi,
As said in my 1rst answer, it seems you have a space at the and of the string used in your expression.
Is it normal?
However, you may also use a tFilterRow in such a case if you just want to exclude rows not matching with your filter.
its normal. when u told me about space am checked and remove space after that run my job. its full scan but not provide any output. the STRING which am used in express builder am copy from database. means that string is exist in my database.