<?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 [resolved] pass tfileproperties schema to tmysqlinput in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-pass-tfileproperties-schema-to-tmysqlinput/m-p/2201880#M3796</link>
    <description>hi 
&lt;BR /&gt;
&lt;BR /&gt;how to pass tfileproperties schema value 
&lt;BR /&gt;dirname 
&lt;BR /&gt;size
&lt;BR /&gt;md5
&lt;BR /&gt;to tmysqlinput query 
&lt;BR /&gt;the flow is like as below
&lt;BR /&gt;tfilelist-----&amp;gt;iterate----&amp;gt;tfileproperties------&amp;gt;iterate------&amp;gt;tmysqlinput------&amp;gt;if--true----&amp;gt;tfilecopy
&lt;BR /&gt;in query i want to give like this 
&lt;BR /&gt;select 1 from table_size where filename='"+((String)globalMap.get("tFileList_1_CURRENT_FILE"))+"' and size= ;
&lt;BR /&gt;for size i want tfileproperties size value to be passed. how to achieve it ???
&lt;BR /&gt;
&lt;BR /&gt;And also how to pass this value "1" in query to a variable of tmysqlinput ,just giving a variable in the schema serve the purpose??</description>
    <pubDate>Wed, 06 Nov 2013 12:58:43 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2013-11-06T12:58:43Z</dc:date>
    <item>
      <title>[resolved] pass tfileproperties schema to tmysqlinput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-pass-tfileproperties-schema-to-tmysqlinput/m-p/2201880#M3796</link>
      <description>hi 
&lt;BR /&gt;
&lt;BR /&gt;how to pass tfileproperties schema value 
&lt;BR /&gt;dirname 
&lt;BR /&gt;size
&lt;BR /&gt;md5
&lt;BR /&gt;to tmysqlinput query 
&lt;BR /&gt;the flow is like as below
&lt;BR /&gt;tfilelist-----&amp;gt;iterate----&amp;gt;tfileproperties------&amp;gt;iterate------&amp;gt;tmysqlinput------&amp;gt;if--true----&amp;gt;tfilecopy
&lt;BR /&gt;in query i want to give like this 
&lt;BR /&gt;select 1 from table_size where filename='"+((String)globalMap.get("tFileList_1_CURRENT_FILE"))+"' and size= ;
&lt;BR /&gt;for size i want tfileproperties size value to be passed. how to achieve it ???
&lt;BR /&gt;
&lt;BR /&gt;And also how to pass this value "1" in query to a variable of tmysqlinput ,just giving a variable in the schema serve the purpose??</description>
      <pubDate>Wed, 06 Nov 2013 12:58:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-pass-tfileproperties-schema-to-tmysqlinput/m-p/2201880#M3796</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-11-06T12:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] pass tfileproperties schema to tmysqlinput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-pass-tfileproperties-schema-to-tmysqlinput/m-p/2201881#M3797</link>
      <description>Hi, 
&lt;BR /&gt;If I understand you well, the query should be:
&lt;BR /&gt;"select 1 from table_size where filename='"+((String)globalMap.get("tFileList_1_CURRENT_FILE"))+"' and size="+row.size
&lt;BR /&gt;Where is your value 1 come from? It is fixed or dynamic?
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
      <pubDate>Thu, 07 Nov 2013 10:15:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-pass-tfileproperties-schema-to-tmysqlinput/m-p/2201881#M3797</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-07T10:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] pass tfileproperties schema to tmysqlinput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-pass-tfileproperties-schema-to-tmysqlinput/m-p/2201882#M3798</link>
      <description>hi &lt;BR /&gt;&lt;BR /&gt;the value one is fixed here ,the logic is this if select query has value for file name and size passed  i shud get one else no value so . The row.size will it give tfileproperties size value ??</description>
      <pubDate>Fri, 08 Nov 2013 04:56:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-pass-tfileproperties-schema-to-tmysqlinput/m-p/2201882#M3798</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-11-08T04:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] pass tfileproperties schema to tmysqlinput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-pass-tfileproperties-schema-to-tmysqlinput/m-p/2201883#M3799</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;The row.size will it give tfileproperties size value ??&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;P&gt;&lt;BR /&gt;To make it clear, I have designed a demo job.&lt;BR /&gt;tfilelist--&amp;gt;iterate--&amp;gt;tfileproperties--&amp;gt;main--&amp;gt;tflowtoiterate--&amp;gt;tmysqlinput--&amp;gt;tlogrow&lt;BR /&gt;See my screenshots.&lt;BR /&gt;Is it what you are looking for?&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBeE.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137329iCD40E5A8B503072D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBeE.png" alt="0683p000009MBeE.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBeJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154279i4F5BA6B9F7124D77/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBeJ.png" alt="0683p000009MBeJ.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBeO.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139880i3BE1A21374C44ABB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBeO.png" alt="0683p000009MBeO.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2013 06:57:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-pass-tfileproperties-schema-to-tmysqlinput/m-p/2201883#M3799</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-08T06:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] pass tfileproperties schema to tmysqlinput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-pass-tfileproperties-schema-to-tmysqlinput/m-p/2201884#M3800</link>
      <description>the row.size is not working and if i want to use if trigger condition for that value "one" returned from select query how to specify in java code in if condition code part . how to do it ??</description>
      <pubDate>Fri, 08 Nov 2013 07:13:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-pass-tfileproperties-schema-to-tmysqlinput/m-p/2201884#M3800</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-11-08T07:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] pass tfileproperties schema to tmysqlinput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-pass-tfileproperties-schema-to-tmysqlinput/m-p/2201885#M3801</link>
      <description>Hi, 
&lt;BR /&gt;What's your expected result from tmysqlinput? And your condition(Run if.....)?It seems you want to trigger a subjob(tfilecopy) if there is a result returned(value one)?
&lt;BR /&gt;For example:
&lt;BR /&gt;I want to trigger the subjob if there is a/no processed row in workflow
&lt;BR /&gt;Set the condition of RunIf:
&lt;BR /&gt;!((Integer)globalMap.get("tMysqlInput_1_NB_LINE"))==0 or ((Integer)globalMap.get("tMysqlInput_1_NB_LINE"))==0
&lt;BR /&gt;
&lt;BR /&gt;Could you give us more info about your current job and paste your job design screenshots into forum. There may be better solution for your case.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
      <pubDate>Fri, 08 Nov 2013 07:55:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-pass-tfileproperties-schema-to-tmysqlinput/m-p/2201885#M3801</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-08T07:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] pass tfileproperties schema to tmysqlinput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-pass-tfileproperties-schema-to-tmysqlinput/m-p/2201886#M3802</link>
      <description>hi sabrina 
&lt;BR /&gt; 
&lt;BR /&gt;thank you for the reply i used what u said in if condition its working fine 
&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 changed the job as follows 
&lt;BR /&gt; 
&lt;BR /&gt;twaitforfile---&amp;gt;iterate---&amp;gt;tfilelist----&amp;gt;iterate---&amp;gt;tfileproperties-----&amp;gt;row(main)----&amp;gt;tflowtoiterate---&amp;gt;iterate---&amp;gt;tmysqlinput----&amp;gt;tflowtoiterate------&amp;gt;if----&amp;gt;tfilecopy 
&lt;BR /&gt; 
&lt;BR /&gt;this is the query in tmysqlinput 
&lt;BR /&gt;select 1 from ETL_SIZE where filename='"+((String)globalMap.get("tFileList_1_CURRENT_FILE"))+"' and size="+row2.size 
&lt;BR /&gt;in if condition 
&lt;BR /&gt;((Integer)globalMap.get("tMysqlInput_1_NB_LINE"))==1 
&lt;BR /&gt; 
&lt;BR /&gt;its working fine but i want to run the job in infinite loop, if i connect tinfiniteloop to twaitforfile will it work or is it correct ??</description>
      <pubDate>Fri, 08 Nov 2013 08:56:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-pass-tfileproperties-schema-to-tmysqlinput/m-p/2201886#M3802</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-11-08T08:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] pass tfileproperties schema to tmysqlinput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-pass-tfileproperties-schema-to-tmysqlinput/m-p/2201887#M3803</link>
      <description>Hi, 
&lt;BR /&gt;For infinite loop
&lt;BR /&gt;You can design a job like that:
&lt;BR /&gt;tInfiniteLoop (set some time) --------&amp;gt; tIterateToFlow --------&amp;gt; tRunJob
&lt;BR /&gt;In your subjob(trunjob), put your workflow into
&lt;BR /&gt;tfilelist----&amp;gt;iterate---&amp;gt;tfileproperties-----&amp;gt;row(main)----&amp;gt;tflowtoiterate---&amp;gt;iterate---&amp;gt;tmysqlinput----&amp;gt;tflowtoiterate------&amp;gt;if----&amp;gt;tfilecopy
&lt;BR /&gt;Even if your subjob (tRunJob) fails, it will loop back, hold on for a few seconds and re -run your job again.
&lt;BR /&gt;That means you should create 2 separate jobs. One job for the tmysqlinput workflow and trigger of tfilecopy and the other one aim at loop.
&lt;BR /&gt;Does it satisfy your requirement?
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
      <pubDate>Fri, 08 Nov 2013 09:07:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-pass-tfileproperties-schema-to-tmysqlinput/m-p/2201887#M3803</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-08T09:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] pass tfileproperties schema to tmysqlinput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-pass-tfileproperties-schema-to-tmysqlinput/m-p/2201888#M3804</link>
      <description>hi &lt;BR /&gt;&lt;BR /&gt;yes , thank you sabrina for your suggestion</description>
      <pubDate>Fri, 08 Nov 2013 09:20:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-pass-tfileproperties-schema-to-tmysqlinput/m-p/2201888#M3804</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-11-08T09:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] pass tfileproperties schema to tmysqlinput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-pass-tfileproperties-schema-to-tmysqlinput/m-p/2201889#M3805</link>
      <description>Hi, &lt;BR /&gt;Don't hesitate to post your issue on forum.&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Fri, 08 Nov 2013 09:28:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-pass-tfileproperties-schema-to-tmysqlinput/m-p/2201889#M3805</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-08T09:28:56Z</dc:date>
    </item>
  </channel>
</rss>

