<?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: Export headers in tBufferOutput (for webservice display) in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Export-headers-in-tBufferOutput-for-webservice-display/m-p/2257647#M39684</link>
    <description>Hello willm, 
&lt;BR /&gt;thanks for your feedback, I was hoping to have something more... pushed button 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;I've created a sub job run before the main job. I've created a tFixedRowInput, in order to initiate the schema, I'm adding a tUnite, then I connect output from the main job, and finally the output of the tFixedRowInput. 
&lt;BR /&gt;TIS ask to initiate the Schema, I select yes. 
&lt;BR /&gt;I delete the tUnite, and then I connect the tFixedFlowInput to a tJavaRow with this source code : 
&lt;BR /&gt;for (java.lang.reflect.Field field: input_row.getClass().getDeclaredFields()) { 
&lt;BR /&gt; String columnName=field.getName(); 
&lt;BR /&gt; if(!columnName.startsWith("commonByteArray") ) { 
&lt;BR /&gt; output_row.getClass().getField(columnName).set(output_row, columnName); 
&lt;BR /&gt; } 
&lt;BR /&gt;} 
&lt;BR /&gt;As tFixedFlowInput creates 1 row, the tJavaRow will drop the column name in the first row. I then push everything to a tBufferOutput. 
&lt;BR /&gt;I'm going to investigate a way to auto generate the schema metadata from another output. 
&lt;BR /&gt;I also would like to use field comment instead of name (if setup). 
&lt;BR /&gt;Thanks again, 
&lt;BR /&gt;NH</description>
    <pubDate>Fri, 24 Jan 2014 16:57:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-01-24T16:57:32Z</dc:date>
    <item>
      <title>Export headers in tBufferOutput (for webservice display)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Export-headers-in-tBufferOutput-for-webservice-display/m-p/2257645#M39682</link>
      <description>Hello, 
&lt;BR /&gt;I'm looking for a clean way to add in a tBufferOutput the column name from schema. 
&lt;BR /&gt;IE: more or less what tFileOutputDelimited do when we tick add header. 
&lt;BR /&gt;We have a xslt style sheet that retrieves the output of talend webservice and handles the first row as a header. 
&lt;BR /&gt;I've tried to find a way to extract the schema, but except doing a manual export, and then re-import the xml, I wasn't able to find something lean. 
&lt;BR /&gt;any idea ? 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;NH</description>
      <pubDate>Wed, 22 Jan 2014 11:07:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Export-headers-in-tBufferOutput-for-webservice-display/m-p/2257645#M39682</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-22T11:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Export headers in tBufferOutput (for webservice display)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Export-headers-in-tBufferOutput-for-webservice-display/m-p/2257646#M39683</link>
      <description>I don't know if this is what you meant by manual export - but what about the following?&lt;BR /&gt;... Flow --&amp;gt; tFileOutputDelimited (with Headers included) --&amp;gt; onsubjob oK ---&amp;gt; tFileInputDelimited --&amp;gt; tBufferOutput</description>
      <pubDate>Thu, 23 Jan 2014 17:31:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Export-headers-in-tBufferOutput-for-webservice-display/m-p/2257646#M39683</guid>
      <dc:creator>willm1</dc:creator>
      <dc:date>2014-01-23T17:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Export headers in tBufferOutput (for webservice display)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Export-headers-in-tBufferOutput-for-webservice-display/m-p/2257647#M39684</link>
      <description>Hello willm, 
&lt;BR /&gt;thanks for your feedback, I was hoping to have something more... pushed button 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;I've created a sub job run before the main job. I've created a tFixedRowInput, in order to initiate the schema, I'm adding a tUnite, then I connect output from the main job, and finally the output of the tFixedRowInput. 
&lt;BR /&gt;TIS ask to initiate the Schema, I select yes. 
&lt;BR /&gt;I delete the tUnite, and then I connect the tFixedFlowInput to a tJavaRow with this source code : 
&lt;BR /&gt;for (java.lang.reflect.Field field: input_row.getClass().getDeclaredFields()) { 
&lt;BR /&gt; String columnName=field.getName(); 
&lt;BR /&gt; if(!columnName.startsWith("commonByteArray") ) { 
&lt;BR /&gt; output_row.getClass().getField(columnName).set(output_row, columnName); 
&lt;BR /&gt; } 
&lt;BR /&gt;} 
&lt;BR /&gt;As tFixedFlowInput creates 1 row, the tJavaRow will drop the column name in the first row. I then push everything to a tBufferOutput. 
&lt;BR /&gt;I'm going to investigate a way to auto generate the schema metadata from another output. 
&lt;BR /&gt;I also would like to use field comment instead of name (if setup). 
&lt;BR /&gt;Thanks again, 
&lt;BR /&gt;NH</description>
      <pubDate>Fri, 24 Jan 2014 16:57:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Export-headers-in-tBufferOutput-for-webservice-display/m-p/2257647#M39684</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-24T16:57:32Z</dc:date>
    </item>
  </channel>
</rss>

