<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: tWebservice - pass through Parameters (Input to Output) in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tWebservice-pass-through-Parameters-Input-to-Output/m-p/2365559#M129151</link>
    <description>Hi Robert 
&lt;BR /&gt;You need to iterate each row and then you are able to access the Category_ID after getting the new ID, for example: 
&lt;BR /&gt;tMysqlInput--row1--tFlowToIterate--iterate--tFixedFowInput--row2--tWebService--row3--tMap---out--tMysqlOutput 
&lt;BR /&gt;on tFixedFlowInput: define the same schema as tMysqlInput's schema, set the value of each column as (for example, for Category_ID column): 
&lt;BR /&gt;(Integer)globalMap.get("row1.Category_ID") 
&lt;BR /&gt;on the output table of tMap, add new column called 'Category_ID', the column you will use as a key for updating, set its values as: 
&lt;BR /&gt;(Integer)globalMap.get("row1.Category_ID") 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
    <pubDate>Mon, 14 May 2012 16:15:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-05-14T16:15:17Z</dc:date>
    <item>
      <title>tWebservice - pass through Parameters (Input to Output)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWebservice-pass-through-Parameters-Input-to-Output/m-p/2365558#M129150</link>
      <description>hy!
&lt;BR /&gt;I try to use the tWebservice component to update/insert a webshop.
&lt;BR /&gt;I pass Category_ID, Name etc. to the WS and receive the new ID (from the Webshop) as result.
&lt;BR /&gt;Now I have to update the local table with the ID. But I can not find a way to passthrough Category_ID from "Input Mapping" to "Output Mapping" to know which Category to update!
&lt;BR /&gt;
&lt;BR /&gt;Can somebody advice me how to do that?
&lt;BR /&gt;Thank you in advanced!
&lt;BR /&gt;Robert</description>
      <pubDate>Mon, 14 May 2012 14:57:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWebservice-pass-through-Parameters-Input-to-Output/m-p/2365558#M129150</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-14T14:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: tWebservice - pass through Parameters (Input to Output)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWebservice-pass-through-Parameters-Input-to-Output/m-p/2365559#M129151</link>
      <description>Hi Robert 
&lt;BR /&gt;You need to iterate each row and then you are able to access the Category_ID after getting the new ID, for example: 
&lt;BR /&gt;tMysqlInput--row1--tFlowToIterate--iterate--tFixedFowInput--row2--tWebService--row3--tMap---out--tMysqlOutput 
&lt;BR /&gt;on tFixedFlowInput: define the same schema as tMysqlInput's schema, set the value of each column as (for example, for Category_ID column): 
&lt;BR /&gt;(Integer)globalMap.get("row1.Category_ID") 
&lt;BR /&gt;on the output table of tMap, add new column called 'Category_ID', the column you will use as a key for updating, set its values as: 
&lt;BR /&gt;(Integer)globalMap.get("row1.Category_ID") 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Mon, 14 May 2012 16:15:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWebservice-pass-through-Parameters-Input-to-Output/m-p/2365559#M129151</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-14T16:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: tWebservice - pass through Parameters (Input to Output)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWebservice-pass-through-Parameters-Input-to-Output/m-p/2365560#M129152</link>
      <description>Thank you very much for your answer!&lt;BR /&gt;I'll try it as proposed!&lt;BR /&gt;thx &amp;amp; regards,&lt;BR /&gt;Robert</description>
      <pubDate>Mon, 14 May 2012 18:26:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWebservice-pass-through-Parameters-Input-to-Output/m-p/2365560#M129152</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-14T18:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: tWebservice - pass through Parameters (Input to Output)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWebservice-pass-through-Parameters-Input-to-Output/m-p/2365561#M129153</link>
      <description>Thank you Shong! 
&lt;BR /&gt;It worked according to your description! 
&lt;BR /&gt;Now I have the problem, that new ID should be included in the first view. 
&lt;BR /&gt;Background: 
&lt;BR /&gt; I tranfer Categories (Treeview) to a webshop via tWebService. From the tWebService I get the new ID of the Category (in the Webshop). This new ID must now also be used for the "belongsToID" (mother-ID). 
&lt;BR /&gt;So the result of the Flow-Schema (tMysqlOutput) should influence the start of the schema(tMysqlInput): 
&lt;BR /&gt;tMysqlInput--row1--tFlowToIterate--iterate--tFixedFowInput--row2--tWebService--row3--tMap---out--tMysqlOutput 
&lt;BR /&gt;example data: 
&lt;BR /&gt;Category_ID, CatName, belongsToID, WebShopCat_ID 
&lt;BR /&gt;Datarow: 
&lt;BR /&gt;1, "TestCat", null, &amp;lt;X = gets the ID From Webservice&amp;gt; 
&lt;BR /&gt;2, "SubTestCat", 1(ToChange!), &amp;lt;Y = gets the ID From Webservice&amp;gt; 
&lt;BR /&gt;Submitting the second row I would like to take X instead of 1. 
&lt;BR /&gt;In my current solution this is not possible because talend load all datarows bevor starting to submit to webservice, at this moment the new IDs are not available. 
&lt;BR /&gt;I hope I explained it clear enough ?! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; 
&lt;BR /&gt;Thank you 
&lt;BR /&gt;Robert</description>
      <pubDate>Tue, 15 May 2012 12:11:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWebservice-pass-through-Parameters-Input-to-Output/m-p/2365561#M129153</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-15T12:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: tWebservice - pass through Parameters (Input to Output)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWebservice-pass-through-Parameters-Input-to-Output/m-p/2365562#M129154</link>
      <description>Another way to do this quite easily is to use a tJavaRow component and referencing the columns from upstream components.&amp;nbsp; 
&lt;BR /&gt;See attached. I read 5 columns from a file, and pass one of the columns (First Name) to the tWebservice component for encryption. The component returns only the encrypted value of the First Name, but does not have a way to pass through the other 4 fields. Using a tJavaRow, I call the 4 other fields downstream. 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MB6E.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135977i904AA34A5413E159/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MB6E.png" alt="0683p000009MB6E.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBHZ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154112i0F43EC203FF372C1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBHZ.png" alt="0683p000009MBHZ.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 28 Apr 2015 17:10:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWebservice-pass-through-Parameters-Input-to-Output/m-p/2365562#M129154</guid>
      <dc:creator>willm1</dc:creator>
      <dc:date>2015-04-28T17:10:33Z</dc:date>
    </item>
  </channel>
</rss>

