<?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: Dynamic Schema: Loop through all fields - tJavaRow in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Schema-Loop-through-all-fields-tJavaRow/m-p/2266402#M45629</link>
    <description>Thanks Shong. Most helpful. 
&lt;BR /&gt;Is there a method I can use to get the column data type and column length as defined in dynamic schema definition? 
&lt;BR /&gt;ie: 
&lt;BR /&gt;ColumnType = column.GetType(); 
&lt;BR /&gt;ColumnLength = column.GetLength() 
&lt;BR /&gt;I have tried to implement this into the example you provided but when I have an integer field and a string field defined in the dynamic schema, both are returned as "id_String" when I use the GetType method. 
&lt;BR /&gt;Is there another way to get the schema metadata so that I can use it to do data validation checks?</description>
    <pubDate>Tue, 09 Jul 2013 18:41:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-07-09T18:41:57Z</dc:date>
    <item>
      <title>Dynamic Schema: Loop through all fields - tJavaRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Schema-Loop-through-all-fields-tJavaRow/m-p/2266400#M45627</link>
      <description>&lt;P&gt;Does anyone know a way to loop through all fields in a dynamic schema input, using the tJavaRow component?&lt;BR /&gt;I'm trying to implement a schema validation process, however the source input data utilizes a dynamic schema, so I'm unable to utilize the tSchemaComplianceCheck component. I want to create a custom routine to determine the data type of each record in each field, however I'm not sure how to implement this routine so that it can be applied to all fields in the schema?&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2013 21:07:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-Schema-Loop-through-all-fields-tJavaRow/m-p/2266400#M45627</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-08T21:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Schema: Loop through all fields - tJavaRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Schema-Loop-through-all-fields-tJavaRow/m-p/2266401#M45628</link>
      <description>Hi mattirvin 
&lt;BR /&gt;Take a look at my last post in this 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCo8LCAS" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/resolved-Generic-Talend-Job/td-p/92354&lt;/A&gt; to know how to get the schema properties and the column value. 
&lt;BR /&gt;Shong</description>
      <pubDate>Tue, 09 Jul 2013 02:57:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-Schema-Loop-through-all-fields-tJavaRow/m-p/2266401#M45628</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-09T02:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Schema: Loop through all fields - tJavaRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Schema-Loop-through-all-fields-tJavaRow/m-p/2266402#M45629</link>
      <description>Thanks Shong. Most helpful. 
&lt;BR /&gt;Is there a method I can use to get the column data type and column length as defined in dynamic schema definition? 
&lt;BR /&gt;ie: 
&lt;BR /&gt;ColumnType = column.GetType(); 
&lt;BR /&gt;ColumnLength = column.GetLength() 
&lt;BR /&gt;I have tried to implement this into the example you provided but when I have an integer field and a string field defined in the dynamic schema, both are returned as "id_String" when I use the GetType method. 
&lt;BR /&gt;Is there another way to get the schema metadata so that I can use it to do data validation checks?</description>
      <pubDate>Tue, 09 Jul 2013 18:41:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-Schema-Loop-through-all-fields-tJavaRow/m-p/2266402#M45629</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-09T18:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Schema: Loop through all fields - tJavaRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Schema-Loop-through-all-fields-tJavaRow/m-p/2266403#M45630</link>
      <description>Hi 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;I have tried to implement this into the example you provided but when I have an integer field and a string field defined in the dynamic schema, both are returned as "id_String" when I use the GetType method.&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;I tested and it works, I have two columns in my table, one type is Integer (11) and another type is varchar(12), the job executes and returns: 
&lt;BR /&gt; 
&lt;PRE&gt;Starting job testDynacal at 15:53 10/07/2013.&lt;BR /&gt;&lt;BR /&gt; connecting to socket on port 3546&lt;BR /&gt; connected&lt;BR /&gt;The length of column is: 11column Type is: id_Integer&lt;BR /&gt;The length of column is: 11column Type is: id_String&lt;BR /&gt;The length of column is: 11column Type is: id_Integer&lt;BR /&gt;The length of column is: 11column Type is: id_String&lt;BR /&gt; disconnected&lt;BR /&gt;Job testDynacal ended at 15:53 10/07/2013. &lt;/PRE&gt; 
&lt;BR /&gt;Shong 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAIv.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133722i06D462463335305E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAIv.jpg" alt="0683p000009MAIv.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA2M.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/127934iB4ED2327DB7E0B89/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA2M.jpg" alt="0683p000009MA2M.jpg" /&gt;&lt;/span&gt;</description>
      <pubDate>Wed, 10 Jul 2013 08:55:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-Schema-Loop-through-all-fields-tJavaRow/m-p/2266403#M45630</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-10T08:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Schema: Loop through all fields - tJavaRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Schema-Loop-through-all-fields-tJavaRow/m-p/2266404#M45631</link>
      <description>Hi Shong, Thank you this is helpful. However I noticed that the length printed in your example is always 11 and it doesn't return 12 for the varchar field. 
&lt;BR /&gt;I have also been having this issue where I am unable to retrieve the correct length using the getLength() method.
&lt;BR /&gt;Can you confirm if this is a bug?</description>
      <pubDate>Fri, 12 Jul 2013 17:57:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-Schema-Loop-through-all-fields-tJavaRow/m-p/2266404#M45631</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-12T17:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Schema: Loop through all fields - tJavaRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Schema-Loop-through-all-fields-tJavaRow/m-p/2266405#M45632</link>
      <description>Hi mattirvin 
&lt;BR /&gt;Maybe I posted a wrong result in my previous post, however, I execute the job again today and see it is getting the right result. 
&lt;BR /&gt;tJavaRow: 
&lt;BR /&gt; 
&lt;PRE&gt;int ncount=input_row.c.getColumnCount();&lt;BR /&gt;DynamicMetadata column0=row1.c.getColumnMetadata(ncount-2);&lt;BR /&gt;DynamicMetadata column1=row1.c.getColumnMetadata(ncount-1);&lt;BR /&gt;System.out.println("The column name is:"+column0.getName()+" The length of column is: "+column0.getLength()+" The column Type is: "+column0.getType());&lt;BR /&gt;System.out.println("The column name is:"+column1.getName()+" The length of column is: "+column1.getLength()+" The column Type is: "+column1.getType());&lt;/PRE&gt; 
&lt;BR /&gt;If you still have doubts, please show me your details. 
&lt;BR /&gt;Shong 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA91.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149485i1C81C8D5C836B4D5/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA91.jpg" alt="0683p000009MA91.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9oD.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152703iBBECF05FEA853454/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9oD.jpg" alt="0683p000009M9oD.jpg" /&gt;&lt;/span&gt;</description>
      <pubDate>Mon, 15 Jul 2013 02:40:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-Schema-Loop-through-all-fields-tJavaRow/m-p/2266405#M45632</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-15T02:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Schema: Loop through all fields - tJavaRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Schema-Loop-through-all-fields-tJavaRow/m-p/2266406#M45633</link>
      <description>Hi Shong, I think the difference is that I am using a tSetDynamicSchema component to set the Dynamic field first. 
&lt;BR /&gt;I am also using a tJavaFlex component to extract the schema metadata. The issue I'm having is that the getLength() is not returning the correct length as is defined in the input row to the tSetDynamicSchema. 
&lt;BR /&gt;Does it work for you when using the tSetDynamicSchema component? 
&lt;BR /&gt;Please see my job details below: 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAI3.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130180iD8C6E6F5B199AB9C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAI3.jpg" alt="0683p000009MAI3.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA25.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152141i5CF8CD70C5500D73/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA25.jpg" alt="0683p000009MA25.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA5Q.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133424i0EE100F271D5C6C4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA5Q.jpg" alt="0683p000009MA5Q.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAJ0.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144498i66204ABC5EDBC420/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAJ0.jpg" alt="0683p000009MAJ0.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAJ5.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129979i5FE615D9617ABEFC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAJ5.jpg" alt="0683p000009MAJ5.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MABC.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143454i75843F5BB2BBBB73/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MABC.jpg" alt="0683p000009MABC.jpg" /&gt;&lt;/span&gt;</description>
      <pubDate>Thu, 18 Jul 2013 19:33:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-Schema-Loop-through-all-fields-tJavaRow/m-p/2266406#M45633</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-18T19:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Schema: Loop through all fields - tJavaRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Schema-Loop-through-all-fields-tJavaRow/m-p/2266407#M45634</link>
      <description>Hi Shong, were you able to replicate this issue on your side using the tSetDynamicSchema component?</description>
      <pubDate>Thu, 25 Jul 2013 19:27:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-Schema-Loop-through-all-fields-tJavaRow/m-p/2266407#M45634</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-25T19:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Schema: Loop through all fields - tJavaRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Schema-Loop-through-all-fields-tJavaRow/m-p/2266408#M45635</link>
      <description>Sorry, I have missed your topic, I will investigate your new problem and come back to you asap!
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 26 Jul 2013 12:24:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-Schema-Loop-through-all-fields-tJavaRow/m-p/2266408#M45635</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-26T12:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Schema: Loop through all fields - tJavaRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Schema-Loop-through-all-fields-tJavaRow/m-p/2266409#M45636</link>
      <description>Thanks Shong. Any update so far? I have tried numerous times but still can not get the getType or getLength methods to work with tSetDynamicSchema. The getName() does seem to work though.</description>
      <pubDate>Tue, 30 Jul 2013 20:10:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-Schema-Loop-through-all-fields-tJavaRow/m-p/2266409#M45636</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-30T20:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Schema: Loop through all fields - tJavaRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Schema-Loop-through-all-fields-tJavaRow/m-p/2266410#M45637</link>
      <description>I found the issue and resolved it. &lt;BR /&gt;The code for the variable column in the tJavaFlex component was pointing to the dynamic metadata in the tFileInputDelimited component, instead I pointed to the tSetDynamicSchema component and it works. &lt;BR /&gt;The tFileInputDelimited was setting all columns to id_String, 100 no matter the dynamic schema definition.</description>
      <pubDate>Tue, 30 Jul 2013 22:11:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-Schema-Loop-through-all-fields-tJavaRow/m-p/2266410#M45637</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-30T22:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Schema: Loop through all fields - tJavaRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Schema-Loop-through-all-fields-tJavaRow/m-p/2266411#M45638</link>
      <description>hi,&lt;BR /&gt;i come on discussion because i have maybe the same problem.&lt;BR /&gt;this my csv : id ;name&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1;kpk&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2; toto&lt;BR /&gt;i use dynamic column because my csv structure can change.&lt;BR /&gt;this is my workflow: tfileInputDelimited =&amp;gt;tjavaflex=&amp;gt;tmap=tmap;&lt;BR /&gt;i arrive to retrieve to tjavaflex all columns from dynamic column of tfileinputdelimited.&lt;BR /&gt;so i want to load all columns to tmap &amp;nbsp;and to do transformation.&lt;BR /&gt;but how can i do it.&lt;BR /&gt;thank you for your help</description>
      <pubDate>Tue, 19 Jul 2016 20:46:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-Schema-Loop-through-all-fields-tJavaRow/m-p/2266411#M45638</guid>
      <dc:creator>lemufty</dc:creator>
      <dc:date>2016-07-19T20:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Schema: Loop through all fields - tJavaRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Schema-Loop-through-all-fields-tJavaRow/m-p/2266412#M45639</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How have you pointed that to dynamicSchema componet. Can you please help with the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Romi&lt;/P&gt;</description>
      <pubDate>Fri, 12 Oct 2018 16:38:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-Schema-Loop-through-all-fields-tJavaRow/m-p/2266412#M45639</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-12T16:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Schema: Loop through all fields - tJavaRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Schema-Loop-through-all-fields-tJavaRow/m-p/2266413#M45640</link>
      <description>&lt;P&gt;I have a need similar to this job.&amp;nbsp; Is it possible to repost the tJaveFlex screenshot?&amp;nbsp; I am not able to click on it.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 17:30:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-Schema-Loop-through-all-fields-tJavaRow/m-p/2266413#M45640</guid>
      <dc:creator>mdeeter</dc:creator>
      <dc:date>2019-01-03T17:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Schema: Loop through all fields - tJavaRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Schema-Loop-through-all-fields-tJavaRow/m-p/2266414#M45641</link>
      <description>&lt;P&gt;My question above was for the site admins.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 18:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-Schema-Loop-through-all-fields-tJavaRow/m-p/2266414#M45641</guid>
      <dc:creator>mdeeter</dc:creator>
      <dc:date>2019-01-03T18:16:04Z</dc:date>
    </item>
  </channel>
</rss>

