[resolved] globalMap.get

One Star

[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

Accepted Solutions
One Star

Re: [resolved] globalMap.get

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

All Replies
Community Manager

Re: [resolved] globalMap.get

Hi
Try this expression:
new Float(((Double)).globalMap.get("row5.QUANTITY")))
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: [resolved] globalMap.get

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

Re: [resolved] globalMap.get

Hi
Can you upload a screenshot of tFixedFlowInput?
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: [resolved] globalMap.get

Update,
It's now working shong thanks!
Community Manager

Re: [resolved] globalMap.get

Hi
Good! I will set the topic as resolved!
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business