<?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] Get the current Date into a Schema definition in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Get-the-current-Date-into-a-Schema-definition/m-p/2231294#M21636</link>
    <description>Hi, 
&lt;BR /&gt;I'm runing out of tips trying to handle a default value for a date. 
&lt;BR /&gt;Is it possible to get the current date as default value into a metadata schema ? 
&lt;BR /&gt; 
&lt;BR /&gt;I've tried TalendDate.getCurrentDate(),&amp;nbsp;new java.util.Date(), sysdate etc... nothing works. I really want to handle it into the metadata, it seems much more "clean" to me, to handle it here, I don't wanna use variables into tmap or tJava that is too tricky, and I want to keep my jobs easy to maintain ! 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBjC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135270i788B43ADBEEE4A0B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBjC.png" alt="0683p000009MBjC.png" /&gt;&lt;/span&gt;</description>
    <pubDate>Wed, 24 Dec 2014 15:19:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-12-24T15:19:49Z</dc:date>
    <item>
      <title>[resolved] Get the current Date into a Schema definition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Get-the-current-Date-into-a-Schema-definition/m-p/2231294#M21636</link>
      <description>Hi, 
&lt;BR /&gt;I'm runing out of tips trying to handle a default value for a date. 
&lt;BR /&gt;Is it possible to get the current date as default value into a metadata schema ? 
&lt;BR /&gt; 
&lt;BR /&gt;I've tried TalendDate.getCurrentDate(),&amp;nbsp;new java.util.Date(), sysdate etc... nothing works. I really want to handle it into the metadata, it seems much more "clean" to me, to handle it here, I don't wanna use variables into tmap or tJava that is too tricky, and I want to keep my jobs easy to maintain ! 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBjC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135270i788B43ADBEEE4A0B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBjC.png" alt="0683p000009MBjC.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Wed, 24 Dec 2014 15:19:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Get-the-current-Date-into-a-Schema-definition/m-p/2231294#M21636</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-24T15:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Get the current Date into a Schema definition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Get-the-current-Date-into-a-Schema-definition/m-p/2231295#M21637</link>
      <description>Hi,
&lt;BR /&gt;You cannot use&amp;nbsp;TalendDate.getCurrentDate() as default value in schema setting.
&lt;BR /&gt;You have to use the expression you already know in the tMap or tJava.
&lt;BR /&gt;The default values in the database will only be used if you do not fill the column and set null as value is always a attempt to fill the column and prevents the database from setting the default value.
&lt;BR /&gt;For default value, please take a look at a KB document:
&lt;A href="https://help.talend.com/search/all?query=Verifying+default+values+in+a+retrieved+schema&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/search/all?query=Verifying+default+values+in+a+retrieved+schema&amp;amp;content-lang=en&lt;/A&gt;
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
      <pubDate>Thu, 25 Dec 2014 06:56:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Get-the-current-Date-into-a-Schema-definition/m-p/2231295#M21637</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-25T06:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Get the current Date into a Schema definition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Get-the-current-Date-into-a-Schema-definition/m-p/2231296#M21638</link>
      <description>Thanks Sabrina, that's too bad but I can deal with it&lt;BR /&gt;Let's use tmap then</description>
      <pubDate>Mon, 29 Dec 2014 08:49:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Get-the-current-Date-into-a-Schema-definition/m-p/2231296#M21638</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-29T08:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Get the current Date into a Schema definition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Get-the-current-Date-into-a-Schema-definition/m-p/2231297#M21639</link>
      <description>Hi,&lt;BR /&gt;Feel free to let us know if there is any further help we can give.&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Mon, 29 Dec 2014 08:59:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Get-the-current-Date-into-a-Schema-definition/m-p/2231297#M21639</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-29T08:59:52Z</dc:date>
    </item>
  </channel>
</rss>

