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

Highlighted
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 GARTNER 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

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog