<?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: [resolved] adding an identity column in tMySqlOutput component in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-adding-an-identity-column-in-tMySqlOutput-component/m-p/2320240#M90401</link>
    <description>Shong thanks for your detail reply. But unfortunately I can not execute your instruction. When ever I define a context variable and try to use it from tJava component I got an error message saying this variable doesn't exist. It is quite frustrating, and I am not sure is it a bug in version 3.1 or am I doing some thing wrong. 
&lt;BR /&gt;Regards,
&lt;BR /&gt;Rashid.</description>
    <pubDate>Thu, 10 Sep 2009 22:31:29 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2009-09-10T22:31:29Z</dc:date>
    <item>
      <title>[resolved] adding an identity column in tMySqlOutput component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-adding-an-identity-column-in-tMySqlOutput-component/m-p/2320238#M90399</link>
      <description>Hi: Gurus can some one tell me how to add an identity column to tMySqlOutput component. Actually I am reading an RSS feed through a tRSSInput component and trying to create and populate table at run time. While I am creting tables and entering rows I also wants to add an extra identity column as a key for each added entry.  In advanced setting I can always add a column, but I am not sure how to instruct tMySqlOutput that the column is an identity column.&lt;BR /&gt;Thanks,&lt;BR /&gt;RJ</description>
      <pubDate>Sat, 16 Nov 2024 13:46:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-adding-an-identity-column-in-tMySqlOutput-component/m-p/2320238#M90399</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2024-11-16T13:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] adding an identity column in tMySqlOutput component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-adding-an-identity-column-in-tMySqlOutput-component/m-p/2320239#M90400</link>
      <description>Hello RJ 
&lt;BR /&gt;First, we use a tMysqlTableList to iterate each table and compare them with the new table, check if the table exist in db, if not, create a new table contains one unique column with auto_increment, let's say that it is ID column. 
&lt;BR /&gt;For more info. see my screenshots. 
&lt;BR /&gt;code on tJava_1: 
&lt;BR /&gt; 
&lt;PRE&gt;context.tableNonExsit=true;&lt;BR /&gt;String tableName="s5";&lt;BR /&gt;String currentTableName= ((String)globalMap.get("tMysqlTableList_1_CURRENT_TABLE"));&lt;BR /&gt;if(tableName.equals(currentTableName)){&lt;BR /&gt;context.tableNonExsit=false;&lt;BR /&gt;break;&lt;BR /&gt;}&lt;/PRE&gt; 
&lt;BR /&gt;sql on tMysqlRow: 
&lt;BR /&gt; 
&lt;PRE&gt;"create table s5(ID int(11) unique auto_increment,&lt;BR /&gt;TITLE varchar(255),&lt;BR /&gt;DESCRIPTION varchar(255),&lt;BR /&gt;PUBDATE varchar(255),&lt;BR /&gt;LINK varchar(255))"&lt;/PRE&gt; 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Thu, 10 Sep 2009 04:39:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-adding-an-identity-column-in-tMySqlOutput-component/m-p/2320239#M90400</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-09-10T04:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] adding an identity column in tMySqlOutput component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-adding-an-identity-column-in-tMySqlOutput-component/m-p/2320240#M90401</link>
      <description>Shong thanks for your detail reply. But unfortunately I can not execute your instruction. When ever I define a context variable and try to use it from tJava component I got an error message saying this variable doesn't exist. It is quite frustrating, and I am not sure is it a bug in version 3.1 or am I doing some thing wrong. 
&lt;BR /&gt;Regards,
&lt;BR /&gt;Rashid.</description>
      <pubDate>Thu, 10 Sep 2009 22:31:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-adding-an-identity-column-in-tMySqlOutput-component/m-p/2320240#M90401</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2009-09-10T22:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] adding an identity column in tMySqlOutput component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-adding-an-identity-column-in-tMySqlOutput-component/m-p/2320241#M90402</link>
      <description>Hello 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;When ever I define a context variable and try to use it from tJava component I got an error message saying this variable doesn't exist.&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;To use a the context var on tJava, you can press ctrl+blank space and you will see a list of context vars, select one. 
&lt;BR /&gt;Can you upload some screenshots of your job? so I can know what you are doing. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Fri, 11 Sep 2009 02:50:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-adding-an-identity-column-in-tMySqlOutput-component/m-p/2320241#M90402</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-09-11T02:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] adding an identity column in tMySqlOutput component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-adding-an-identity-column-in-tMySqlOutput-component/m-p/2320242#M90403</link>
      <description>Thanks Shong for follow up. I found good detail about how to set up the context variable in Talend Studio Guide. Before that I was not aware of the fact that you can define the local (job level) vs global context (Repository level). I was creating the context at Repository but not importing it to the component context, so when I use the intellisense (CTR + spacebar), I was not finding the variable define in the repository. Any way after figuring out the context issue, I have tried the whole process as you suggested and it worked like a charm. As a matter of fact after going through this exercise I really understand the true power of Talend. Thanks again for your expertise and advice. 
&lt;BR /&gt;Best Regards, 
&lt;BR /&gt;RJ.</description>
      <pubDate>Fri, 11 Sep 2009 16:10:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-adding-an-identity-column-in-tMySqlOutput-component/m-p/2320242#M90403</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2009-09-11T16:10:47Z</dc:date>
    </item>
  </channel>
</rss>

