<?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: tmap component with default output values in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tmap-component-with-default-output-values/m-p/2362630#M126728</link>
    <description>Find below the details,
&lt;BR /&gt;Is there any ways to get 3 rows output under one column for one row of input value. 
&lt;BR /&gt;Ex: row1.default1 value should reflected in 3 rows of tmap output table under one column name. (The value then used to calculate summary, tax and analysis as per calculations)
&lt;BR /&gt;Components used in Job design:
&lt;BR /&gt;tFileInputExcel - tmap component - tFileoutputExcel
&lt;BR /&gt;Is the Java code generated in Talend is editable?
&lt;BR /&gt;Please let me know your pointers and updates,
&lt;BR /&gt;Mani.</description>
    <pubDate>Wed, 22 Jul 2009 14:01:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-07-22T14:01:55Z</dc:date>
    <item>
      <title>tmap component with default output values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-component-with-default-output-values/m-p/2362626#M126724</link>
      <description>Hi,
&lt;BR /&gt;I am using tmap to get my consolidated output excel, I need to get default values in my output excel sheet columns. How can I set the default values for each fields of my tmap output?
&lt;BR /&gt;Is there any ways to split and paste the output values in three different rows of an output excel?
&lt;BR /&gt;Please let me know your pointers and updates.
&lt;BR /&gt;Thanks and Regards,
&lt;BR /&gt;Mani.</description>
      <pubDate>Sat, 16 Nov 2024 13:51:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-component-with-default-output-values/m-p/2362626#M126724</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: tmap component with default output values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-component-with-default-output-values/m-p/2362627#M126725</link>
      <description>On the right side of tMap you can put fix values into output "Expression" column. 
&lt;BR /&gt;If you want to create more than one output row from one input row, define several (n times)output tables in tMap and connect these with ExcelOutput, that is copied n times to. 
&lt;BR /&gt;Split from input rows you can perform through Var area. 
&lt;BR /&gt;If you want to splint input string into m pieces, create m variables with the same input, but different transformation and different output tables. 
&lt;BR /&gt;I hope it will works</description>
      <pubDate>Tue, 21 Jul 2009 15:35:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-component-with-default-output-values/m-p/2362627#M126725</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-21T15:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: tmap component with default output values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-component-with-default-output-values/m-p/2362628#M126726</link>
      <description>Hi Mani,&lt;BR /&gt;first to set a default value in tMap use the following code (java):&lt;BR /&gt;&lt;PRE&gt;inputRow.field1 == null? "Your default" : inputRow.field1&lt;/PRE&gt;&lt;BR /&gt;Your second question is not clear for me: You need "different rows of an output Excel" (?)&lt;BR /&gt;Do you mean two Excel files? One Excel file with three rows for each input row (with the same value) or one Excel file with three rows for each input row but different values (and possibly different structure)?&lt;BR /&gt;Best would be to give us an example.&lt;BR /&gt;Bye&lt;BR /&gt;Volker</description>
      <pubDate>Tue, 21 Jul 2009 22:22:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-component-with-default-output-values/m-p/2362628#M126726</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-21T22:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: tmap component with default output values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-component-with-default-output-values/m-p/2362629#M126727</link>
      <description>Thanks for the updates, 
&lt;BR /&gt;For one input row, I need 3 output rows to be generated under one coloumn name. 
&lt;BR /&gt;One is for summmary, other one for tax and one more for analysis. 
&lt;BR /&gt;"One Excel file with three rows for each input row" 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Mani.</description>
      <pubDate>Wed, 22 Jul 2009 09:49:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-component-with-default-output-values/m-p/2362629#M126727</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-22T09:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: tmap component with default output values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-component-with-default-output-values/m-p/2362630#M126728</link>
      <description>Find below the details,
&lt;BR /&gt;Is there any ways to get 3 rows output under one column for one row of input value. 
&lt;BR /&gt;Ex: row1.default1 value should reflected in 3 rows of tmap output table under one column name. (The value then used to calculate summary, tax and analysis as per calculations)
&lt;BR /&gt;Components used in Job design:
&lt;BR /&gt;tFileInputExcel - tmap component - tFileoutputExcel
&lt;BR /&gt;Is the Java code generated in Talend is editable?
&lt;BR /&gt;Please let me know your pointers and updates,
&lt;BR /&gt;Mani.</description>
      <pubDate>Wed, 22 Jul 2009 14:01:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-component-with-default-output-values/m-p/2362630#M126728</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-22T14:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: tmap component with default output values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-component-with-default-output-values/m-p/2362631#M126729</link>
      <description>Hi Mani,
&lt;BR /&gt;if you need more than one output for one line I would say there are two solutions: 
&lt;BR /&gt;Create your data in different files but each with one key to merge them together in a second step (tUnite for example). So you could do different processes to calculate your values and merge them together in a later step.
&lt;BR /&gt;Or use tNormalize if all values are the same in one column will have the following content "10,5,2" you could normalize the data with "," as separator.
&lt;BR /&gt;One example with some more data (input and output) would be nice if you have more detailed questions.
&lt;BR /&gt;Bye
&lt;BR /&gt;Volker</description>
      <pubDate>Wed, 22 Jul 2009 22:02:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-component-with-default-output-values/m-p/2362631#M126729</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-22T22:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: tmap component with default output values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-component-with-default-output-values/m-p/2362632#M126730</link>
      <description>Thanks for your updates and help - Please refer the below details, 
&lt;BR /&gt;Input.xls:
&lt;BR /&gt; Column1 Column2 Column3 
&lt;BR /&gt;Row 1 value1 value2 value3 (one input value)
&lt;BR /&gt;Row 2 value1 value2 value3 (one input value)
&lt;BR /&gt;Output.xls: 
&lt;BR /&gt; Column1 Column2 Column3 
&lt;BR /&gt;Row 1 value1 value2 value3 (default value for summary)
&lt;BR /&gt;Row 1 value1 value2 value3 (tax calculated based on formulas)
&lt;BR /&gt;Row 1 value1 value2 value3 (Analysis value)
&lt;BR /&gt;Row 2 value1 value2 value3 (default value for summary)
&lt;BR /&gt;Row 2 value1 value2 value3 (tax calculated based on formulas)
&lt;BR /&gt;Row 2 value1 value2 value3 (Analysis value)
&lt;BR /&gt;I read from input.xls using the tFileInputExcel 
&lt;BR /&gt;Map the details using tmap component
&lt;BR /&gt;Retrieve the o/p xls using tFileoutputExcel
&lt;BR /&gt;As explained above I need 3 rows of o/p for my one single row i/p
&lt;BR /&gt;under the same column.
&lt;BR /&gt;Thanks and Regards,
&lt;BR /&gt;Mani.</description>
      <pubDate>Fri, 24 Jul 2009 13:16:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-component-with-default-output-values/m-p/2362632#M126730</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-24T13:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: tmap component with default output values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-component-with-default-output-values/m-p/2362633#M126731</link>
      <description>Hi Mani,&lt;BR /&gt;in this case use tNormalize. Add a new column to your input stream (for example in tMap or tJavaRow) and set a fix value for it: "default,tax,analysis". After this use tNormalize for this new column and use "," as separator.  Now you will have the following data:&lt;BR /&gt;&lt;PRE&gt;           Column1   Column2   Column3  NewColumn&lt;BR /&gt;Row 1  value1       value2      value3     default&lt;BR /&gt;Row 1  value1       value2      value3     tax&lt;BR /&gt;Row 1  value1       value2      value3     analysis&lt;BR /&gt;Row 2  value1       value2      value3     default&lt;BR /&gt;Row 2  value1       value2      value3     tax &lt;BR /&gt;Row 2  value1       value2      value3     analysis&lt;/PRE&gt;&lt;BR /&gt;Now you could process your data and apply calculations based on the newColumn. One simple example for tJavaFlex:&lt;BR /&gt;&lt;PRE&gt;// code in start&lt;BR /&gt;Integer my defaultValue;&lt;BR /&gt;// code for each row&lt;BR /&gt;if (input_row.newColumn.compareTo("default") == 0) {&lt;BR /&gt;    defaultValue= input_row.Column3;&lt;BR /&gt;    output_row.Column3= input_row.Column3&lt;BR /&gt;} else if (input_row.newColumn.compareTo("tax") == 0) {&lt;BR /&gt;   output_row= defaultValue * 0,19  // calculate 19% from default value in column 3&lt;BR /&gt;}&lt;/PRE&gt;&lt;BR /&gt;And so on...&lt;BR /&gt;Bye&lt;BR /&gt;Volker</description>
      <pubDate>Fri, 24 Jul 2009 21:13:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-component-with-default-output-values/m-p/2362633#M126731</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-24T21:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: tmap component with default output values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-component-with-default-output-values/m-p/2362634#M126732</link>
      <description>Thanks for the response Volker, its working now.(tmap and tNormalize combination) 
&lt;BR /&gt;While reading an excel file I want to eliminate first 3 rows of an excel and start the 
&lt;BR /&gt;process from 4th row onwards. 
&lt;BR /&gt;I am using tFileInputExcel component - is there any ways to customize the read process? 
&lt;BR /&gt;Please let me know your pointers and updates. 
&lt;BR /&gt;Thanks and Regards, 
&lt;BR /&gt;Manikandan.R</description>
      <pubDate>Mon, 27 Jul 2009 12:56:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-component-with-default-output-values/m-p/2362634#M126732</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-27T12:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: tmap component with default output values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-component-with-default-output-values/m-p/2362635#M126733</link>
      <description>Hi, 
&lt;BR /&gt;isn't there a parameter for header lines? This will define how many rows are ignored. 
&lt;BR /&gt;If not you could add a Numeric.Sequence() to your data and set a filter on rowNumber &amp;gt; 3 for example. 
&lt;BR /&gt;Bye 
&lt;BR /&gt;Volker</description>
      <pubDate>Mon, 27 Jul 2009 21:45:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-component-with-default-output-values/m-p/2362635#M126733</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-27T21:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: tmap component with default output values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-component-with-default-output-values/m-p/2362636#M126734</link>
      <description>Hi Volker,
&lt;BR /&gt;Thanks for the reply,
&lt;BR /&gt;Please refer the below details,
&lt;BR /&gt; Column1 Column2 Column3 NewColumn Line
&lt;BR /&gt;Row 1 value1 value2 value3 default 1 
&lt;BR /&gt;Row 1 value1 value2 value3 tax 1
&lt;BR /&gt;Row 1 value1 value2 value3 analysis 1
&lt;BR /&gt;Row 2 value1 value2 value3 default 2
&lt;BR /&gt;Row 2 value1 value2 value3 tax 2 
&lt;BR /&gt;Row 2 value1 value2 value3 analysis 2
&lt;BR /&gt;I need to generate the Line values based on the input row readed. (Ex: row 1 the Line value is 1)
&lt;BR /&gt;How can I get the values based on input rows and the total count of input rows in my tmap.
&lt;BR /&gt;Please let me know your pointers and updates.
&lt;BR /&gt;Thanks and Regards,
&lt;BR /&gt;Mani.</description>
      <pubDate>Thu, 30 Jul 2009 16:51:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-component-with-default-output-values/m-p/2362636#M126734</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-30T16:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: tmap component with default output values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-component-with-default-output-values/m-p/2362637#M126735</link>
      <description>Hi,
&lt;BR /&gt;if you use tNormalize and set your Numeric.Sequence in front of it, you will get the output as written. 
&lt;BR /&gt;I think the best will be to post an example input and an example output with more real data. Than I could try to write an example job.
&lt;BR /&gt;Bye
&lt;BR /&gt;Volker</description>
      <pubDate>Thu, 30 Jul 2009 20:31:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-component-with-default-output-values/m-p/2362637#M126735</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-30T20:31:22Z</dc:date>
    </item>
  </channel>
</rss>

