Referencing string values in tFileInputJson using URL

Four Stars

Referencing string values in tFileInputJson using URL

Hi kind people, 

 

I'm trying to use a sting value inside a URL in a tFileInputJson and get the following error:

 

The method coords(String) is undefined for the type. 

 

coords is a string value 

 

Please help me, what am I doing wrong?Screen Shot 2018-08-07 at 13.38.22.png

Nine Stars

Re: Referencing string values in tFileInputJson using URL

You URL needs to have the globalMap.get() outside of the literal text of the URL, something like:

 

"https://maps................" + (String)globalMap.get("row1.coords") + "&key=XXXXXXX"

Regards David
Dont forget to give Kudos when an answer is helpful or mark the answer as the solution.

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

6 Ways to Start Utilizing Machine Learning with Amazon We Services and Talend

Look at6 ways to start utilizing Machine Learning with Amazon We Services and Talend

Blog