<?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: Pb with date in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Pb-with-date/m-p/2246202#M31809</link>
    <description>Hi 
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Calendar cal = Calendar.getInstance();&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Write these code in a routine, then, call this routine in tJavaFlex component.
&lt;BR /&gt;Best regards
&lt;BR /&gt; shong</description>
    <pubDate>Fri, 16 Nov 2007 06:50:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2007-11-16T06:50:25Z</dc:date>
    <item>
      <title>Pb with date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pb-with-date/m-p/2246201#M31808</link>
      <description>Hello,
&lt;BR /&gt;I want to initialize a context value with the current date minus one month. (This context velue is then send to a child job)
&lt;BR /&gt;I'm a beginner under JAVA so I try in a tJavaFlex the code :
&lt;BR /&gt;Calendar cal = Calendar.getInstance();
&lt;BR /&gt;context.setProperty("sdhm",routines.TalendDate.formatDate("yyyyMM",Cal.add (Cal.MONTH, -1)));
&lt;BR /&gt;
&lt;BR /&gt;There's compilation errors : 
&lt;BR /&gt;Exception in thread "main" java.lang.Error: Unresolved compilation problems: 
&lt;BR /&gt; Calendar cannot be resolved to a type
&lt;BR /&gt; Calendar cannot be resolved
&lt;BR /&gt; Cal cannot be resolved
&lt;BR /&gt; Cal cannot be resolved
&lt;BR /&gt; at testoracle7.jobmaitre.jobmaitre.tJavaFlex_1Process(jobmaitre.java:141)
&lt;BR /&gt; at testoracle7.jobmaitre.jobmaitre.runJob(jobmaitre.java:297)
&lt;BR /&gt; at testoracle7.jobmaitre.jobmaitre.main(jobmaitre.java:244)
&lt;BR /&gt;I try then to include this line :
&lt;BR /&gt;import java.util.Calendar;
&lt;BR /&gt;but new errors:
&lt;BR /&gt;Exception in thread "main" java.lang.Error: Unresolved compilation problems: 
&lt;BR /&gt; Syntax error on token "import", assert expected
&lt;BR /&gt; java.util.Calendar cannot be resolved
&lt;BR /&gt; Calendar cannot be resolved to a type
&lt;BR /&gt; Calendar cannot be resolved
&lt;BR /&gt; Cal cannot be resolved
&lt;BR /&gt; Cal cannot be resolved
&lt;BR /&gt; at testoracle7.jobmaitre.jobmaitre.tJavaFlex_1Process(jobmaitre.java:142)
&lt;BR /&gt; at testoracle7.jobmaitre.jobmaitre.runJob(jobmaitre.java:304)
&lt;BR /&gt; at testoracle7.jobmaitre.jobmaitre.main(jobmaitre.java:248)
&lt;BR /&gt;Could you help me please
&lt;BR /&gt;Gilles</description>
      <pubDate>Sat, 16 Nov 2024 14:30:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pb-with-date/m-p/2246201#M31808</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Pb with date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pb-with-date/m-p/2246202#M31809</link>
      <description>Hi 
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Calendar cal = Calendar.getInstance();&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Write these code in a routine, then, call this routine in tJavaFlex component.
&lt;BR /&gt;Best regards
&lt;BR /&gt; shong</description>
      <pubDate>Fri, 16 Nov 2007 06:50:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pb-with-date/m-p/2246202#M31809</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-11-16T06:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: Pb with date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pb-with-date/m-p/2246203#M31810</link>
      <description>You can also use the tContextLoad component.&lt;BR /&gt;Regards,</description>
      <pubDate>Fri, 16 Nov 2007 19:16:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pb-with-date/m-p/2246203#M31810</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-11-16T19:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Pb with date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pb-with-date/m-p/2246204#M31811</link>
      <description>Hello MHONG and MHIRT,
&lt;BR /&gt;thanks very much for your help : It's OK
&lt;BR /&gt;
&lt;BR /&gt;Best regards
&lt;BR /&gt;Gilles</description>
      <pubDate>Thu, 22 Nov 2007 10:01:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pb-with-date/m-p/2246204#M31811</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-11-22T10:01:02Z</dc:date>
    </item>
  </channel>
</rss>

