<?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: Can I get the table name from tOracleInput1 in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Can-I-get-the-table-name-from-tOracleInput1/m-p/2307250#M78705</link>
    <description>Thanks for the suggestion. I'll give that try.</description>
    <pubDate>Thu, 02 May 2013 16:29:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-05-02T16:29:25Z</dc:date>
    <item>
      <title>Can I get the table name from tOracleInput1</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Can-I-get-the-table-name-from-tOracleInput1/m-p/2307248#M78703</link>
      <description>Is there a reference to get the table name being accessed by tOracleOutput_1? 
&lt;BR /&gt;I know there are references to get the input count calling tOracleOutput_1_NB_LINE_INSERTED. Is there something like tOracleOutput_1_TABLE_NAME? 
&lt;BR /&gt; 
&lt;BR /&gt;The goal is to be able to pass the component name into a logging method and have it log the events against any table. 
&lt;BR /&gt;log("tOracleOutput"); 
&lt;BR /&gt;.... 
&lt;BR /&gt;public void log(String component) { 
&lt;BR /&gt; recordTableName = globalMap.get(component + "_TABLE_NAME"); 
&lt;BR /&gt; recordInsertCount = globalMap.get(component + "_NB_LINE_INSERTED"); 
&lt;BR /&gt; recordUpdatedCount = globalMap.get(component + "_NB_LINE_UPDATED"); 
&lt;BR /&gt;}</description>
      <pubDate>Fri, 26 Apr 2013 15:41:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Can-I-get-the-table-name-from-tOracleInput1/m-p/2307248#M78703</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-26T15:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Can I get the table name from tOracleInput1</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Can-I-get-the-table-name-from-tOracleInput1/m-p/2307249#M78704</link>
      <description>Inside the globalMap there is no such information available. 
&lt;BR /&gt;But you can use a workaround. Giving you know the table output component name (it will be the parameter of your log function): 
&lt;BR /&gt;1. Add a tJavaFlex after your output connecting both with the main flow: 
&lt;BR /&gt;tOracleOutput ---&amp;gt; tJavaFlex 
&lt;BR /&gt;2. In the end part of the tJavaFlex, you can have access to a variable that will contains the table name. Send the value of that variable as a parameter to your log function: 
&lt;BR /&gt; 
&lt;PRE&gt;log("tOracleOutput_1", tableName_tOracleOutput_1);&lt;/PRE&gt; 
&lt;BR /&gt;3. Then you can write your function as: 
&lt;BR /&gt; 
&lt;PRE&gt;public void log(String component, String table) {&lt;BR /&gt;   recordTableName    = table;&lt;BR /&gt;   recordInsertCount  = globalMap.get(component + "_NB_LINE_INSERTED");&lt;BR /&gt;   recordUpdatedCount = globalMap.get(component + "_NB_LINE_UPDATED");&lt;BR /&gt;}&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Apr 2013 22:46:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Can-I-get-the-table-name-from-tOracleInput1/m-p/2307249#M78704</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-26T22:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can I get the table name from tOracleInput1</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Can-I-get-the-table-name-from-tOracleInput1/m-p/2307250#M78705</link>
      <description>Thanks for the suggestion. I'll give that try.</description>
      <pubDate>Thu, 02 May 2013 16:29:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Can-I-get-the-table-name-from-tOracleInput1/m-p/2307250#M78705</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-02T16:29:25Z</dc:date>
    </item>
  </channel>
</rss>

