<?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] How to use javascript file? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-use-javascript-file/m-p/2356944#M122353</link>
    <description>Hello
&lt;BR /&gt;Using the tSystem component to run the javascript file, see the user documentation and search it on forum.
&lt;BR /&gt;Best regards 
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
    <pubDate>Mon, 20 Apr 2009 08:08:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-04-20T08:08:34Z</dc:date>
    <item>
      <title>[resolved] How to use javascript file?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-use-javascript-file/m-p/2356943#M122352</link>
      <description>Hi&lt;BR /&gt;     I am having javascript file and i need to use javascript file in my application.How can i use my javascript file by using talend tool?Could anyone please guide me?&lt;BR /&gt;Thanks&lt;BR /&gt;Jyothsna.E</description>
      <pubDate>Sat, 16 Nov 2024 13:59:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-use-javascript-file/m-p/2356943#M122352</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to use javascript file?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-use-javascript-file/m-p/2356944#M122353</link>
      <description>Hello
&lt;BR /&gt;Using the tSystem component to run the javascript file, see the user documentation and search it on forum.
&lt;BR /&gt;Best regards 
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Mon, 20 Apr 2009 08:08:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-use-javascript-file/m-p/2356944#M122353</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-20T08:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to use javascript file?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-use-javascript-file/m-p/2356945#M122354</link>
      <description>I saw the documentation but i couldn't find there how to use javascript file?please help me.</description>
      <pubDate>Mon, 20 Apr 2009 08:46:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-use-javascript-file/m-p/2356945#M122354</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-20T08:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to use javascript file?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-use-javascript-file/m-p/2356946#M122355</link>
      <description>Hello
&lt;BR /&gt;see my screenshot.
&lt;BR /&gt;Best regards
&lt;BR /&gt; shong</description>
      <pubDate>Mon, 20 Apr 2009 09:03:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-use-javascript-file/m-p/2356946#M122355</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-20T09:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to use javascript file?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-use-javascript-file/m-p/2356947#M122356</link>
      <description>In your screen shot,in Command textfield i need to mention my javascript file name like "cmd /c functions.js".Am i right?
&lt;BR /&gt;And How can i pass the parameters from flat file to javascript function?</description>
      <pubDate>Mon, 20 Apr 2009 09:47:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-use-javascript-file/m-p/2356947#M122356</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-20T09:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to use javascript file?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-use-javascript-file/m-p/2356948#M122357</link>
      <description>Hello, 
&lt;BR /&gt;tRhino is the implementation of JavaScript on Talend that enable user to scripting on Talend: 
&lt;BR /&gt;*Allows direct scripting of Java 
&lt;BR /&gt;*A JavaScript shell for executing JavaScript scripts 
&lt;BR /&gt;*A JavaScript compiler to transform JavaScript source files into Java class files 
&lt;BR /&gt; 
&lt;A href="http://www.talendforge.org/exchange/tos/extension_view.php?eid=124" rel="nofollow noopener noreferrer"&gt;http://www.talendforge.org/exchange/tos/extension_view.php?eid=124&lt;/A&gt; 
&lt;BR /&gt;For more information about Rhino see here : 
&lt;A href="http://www.mozilla.org/rhino/" rel="nofollow noopener noreferrer"&gt;http://www.mozilla.org/rhino/&lt;/A&gt; 
&lt;BR /&gt;Regards Mbaroudi</description>
      <pubDate>Mon, 20 Apr 2009 22:24:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-use-javascript-file/m-p/2356948#M122357</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-20T22:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to use javascript file?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-use-javascript-file/m-p/2356949#M122358</link>
      <description>Hello All 
&lt;BR /&gt;I show you how to run a javascript in tSystem component and pass parameters to javascript. 
&lt;BR /&gt;function.js: 
&lt;BR /&gt; 
&lt;PRE&gt;var args = WScript.Arguments;&lt;BR /&gt;try{&lt;BR /&gt;if (args.length == 0) {&lt;BR /&gt;throw "No Argument";&lt;BR /&gt;} else {&lt;BR /&gt;WScript.Echo( "The first param is: "+args(0));&lt;BR /&gt;WScript.Echo( "The second param is: "+args(1));&lt;BR /&gt;}&lt;BR /&gt;}catch(e) {&lt;BR /&gt;WScript.Echo(e);&lt;BR /&gt;}&lt;/PRE&gt; 
&lt;BR /&gt;Command: 
&lt;BR /&gt; 
&lt;PRE&gt;"cmd /c cscript function.js \"Hello\" \"World\""&lt;/PRE&gt; 
&lt;BR /&gt;Result: 
&lt;BR /&gt; 
&lt;PRE&gt;Starting job forum6262 at 11:03 21/04/2009.&lt;BR /&gt;Microsoft (R) Windows Script Host Version 5.7&lt;BR /&gt;Copyright(C) Microsoft Corporation 1996-2001?All rights reserved?&lt;BR /&gt;The first param is: Hello&lt;BR /&gt;The second param is: World&lt;BR /&gt;Job forum6262 ended at 11:03 21/04/2009. &lt;/PRE&gt; 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; shong</description>
      <pubDate>Tue, 21 Apr 2009 04:08:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-use-javascript-file/m-p/2356949#M122358</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-21T04:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to use javascript file?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-use-javascript-file/m-p/2356950#M122359</link>
      <description>Hello Jyothsna.E 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;And How can i pass the parameters from flat file to javascript function?&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Here is a job shows you how to achieve that. 
&lt;BR /&gt;function.js: 
&lt;BR /&gt; 
&lt;PRE&gt;var args = WScript.Arguments;&lt;BR /&gt;try{&lt;BR /&gt;if (args.length == 0) {&lt;BR /&gt;throw "No Argument";&lt;BR /&gt;} else {&lt;BR /&gt;WScript.Echo( "The first param is: "+args(0));&lt;BR /&gt;WScript.Echo( "The second param is: "+args(1));&lt;BR /&gt;}&lt;BR /&gt;}catch(e) {&lt;BR /&gt;WScript.Echo(e);&lt;BR /&gt;}&lt;/PRE&gt; 
&lt;BR /&gt;in.csv: 
&lt;BR /&gt; 
&lt;B&gt;&lt;BR /&gt;a1;a2&lt;BR /&gt;b1;b2&lt;BR /&gt;&lt;/B&gt; 
&lt;BR /&gt;command: 
&lt;BR /&gt; 
&lt;PRE&gt;"cmd /c cscript function.js "+(String)globalMap.get("row1.param1")+" "+(String)globalMap.get("row1.param2")&lt;/PRE&gt; 
&lt;BR /&gt;Result: 
&lt;BR /&gt; 
&lt;PRE&gt;Starting job forum6262 at 11:17 21/04/2009.&lt;BR /&gt;Microsoft (R) Windows Script Host Version 5.7&lt;BR /&gt;Copyright(C) Microsoft Corporation 1996-2001?All rights reserved?&lt;BR /&gt;The first param is: a1&lt;BR /&gt;The second param is: a2&lt;BR /&gt;Microsoft (R) Windows Script Host Version 5.7&lt;BR /&gt;Copyright(C) Microsoft Corporation 1996-2001?All rights reserved?&lt;BR /&gt;The first param is: b1&lt;BR /&gt;The second param is: b2&lt;BR /&gt;Job forum6262 ended at 11:17 21/04/2009. &lt;/PRE&gt; 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; shong</description>
      <pubDate>Tue, 21 Apr 2009 04:21:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-use-javascript-file/m-p/2356950#M122359</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-21T04:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to use javascript file?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-use-javascript-file/m-p/2356951#M122360</link>
      <description>Hi shong thank you for your reply and i understood how to pass the parameters &amp;amp; your code.Let me try with my javascript and i will let you know if i face any problem. 
&lt;BR /&gt; 
&lt;BR /&gt;Thanks 
&lt;BR /&gt;Jyothsna.E</description>
      <pubDate>Tue, 21 Apr 2009 05:29:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-use-javascript-file/m-p/2356951#M122360</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-21T05:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to use javascript file?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-use-javascript-file/m-p/2356952#M122361</link>
      <description>Hi this is my javascript function.In my javascript function i am returning the value and i need to get the value &amp;amp; i need to pass this value as a input to some other column in a table.How can i do it?&lt;BR /&gt;&lt;BR /&gt;function EventID(SPECIAL8,SPECIAL13,SPECIAL14 ,SPECIAL15,SPECIAL16)&lt;BR /&gt;{&lt;BR /&gt;	var allevent="";&lt;BR /&gt;	if(SPECIAL8 !="" )&lt;BR /&gt;	{&lt;BR /&gt;		allevent=allevent+SPECIAL8+"";&lt;BR /&gt;	}&lt;BR /&gt;	else if(SPECIAL13 != "" )&lt;BR /&gt;	{&lt;BR /&gt;		allevent=allevent+""+SPECIAL13;&lt;BR /&gt;	}&lt;BR /&gt;	else if(SPECIAL14 != "" )&lt;BR /&gt;	{&lt;BR /&gt;		allevent=allevent+""+SPECIAL14;&lt;BR /&gt;	}&lt;BR /&gt;	else if(SPECIAL15 != "" )&lt;BR /&gt;	{&lt;BR /&gt;		allevent=allevent+""+SPECIAL15;&lt;BR /&gt;	}&lt;BR /&gt;	else if(SPECIAL16 != "" )&lt;BR /&gt;	{&lt;BR /&gt;		allevent=allevent+""+SPECIAL16;&lt;BR /&gt;	}&lt;BR /&gt;		&lt;BR /&gt;		return allevent;&lt;BR /&gt;}</description>
      <pubDate>Fri, 24 Apr 2009 10:28:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-use-javascript-file/m-p/2356952#M122361</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-24T10:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to use javascript file?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-use-javascript-file/m-p/2356953#M122362</link>
      <description>Hello Jyothsna.E
&lt;BR /&gt;I show you how to get the return value from javascript.
&lt;BR /&gt;function.js:
&lt;BR /&gt;
&lt;PRE&gt;function test(){&lt;BR /&gt;var value = "shong";&lt;BR /&gt;WScript.Echo("return value:"+value);   //In your case, you need add one line: WScript.Echo("return value:"+allevent); &lt;BR /&gt;}&lt;BR /&gt;test();&lt;/PRE&gt;
&lt;BR /&gt;Console:
&lt;BR /&gt;
&lt;PRE&gt;Starting job forum6262_tsystem_javascript at 20:39 24/04/2009.&lt;BR /&gt;Microsoft (R) Windows Script Host Version 5.6&lt;BR /&gt;copyright (C) Microsoft Corporation 1996-2001?&lt;BR /&gt;return value:shong&lt;BR /&gt;================================&lt;BR /&gt;shong&lt;BR /&gt;Job forum6262_tsystem_javascript ended at 20:39 24/04/2009. &lt;/PRE&gt;
&lt;BR /&gt;Best regards
&lt;BR /&gt; shong</description>
      <pubDate>Fri, 24 Apr 2009 13:56:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-use-javascript-file/m-p/2356953#M122362</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-24T13:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to use javascript file?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-use-javascript-file/m-p/2356954#M122363</link>
      <description>Hi everybody, 
&lt;BR /&gt;I am working on a similar use case. 
&lt;BR /&gt;I want to read a variable amount of text files and parse some of the text contents into JSON-syntax, using a Javascript with everything embedded in talend. 
&lt;BR /&gt;My specific question is: How to call my function in talend and how to get my script, respectively my function, to use the text input coming from the talend input-component? 
&lt;BR /&gt;Thanks in advance!</description>
      <pubDate>Tue, 28 Jun 2016 12:39:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-use-javascript-file/m-p/2356954#M122363</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2016-06-28T12:39:26Z</dc:date>
    </item>
  </channel>
</rss>

