Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Streamlining user types in Qlik Cloud capacity-based subscriptions: Read the Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] How to use javascript file?

Hi
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?
Thanks
Jyothsna.E
Labels (3)
11 Replies
Anonymous
Not applicable
Author

Hello Jyothsna.E
I show you how to get the return value from javascript.
function.js:
function test(){
var value = "shong";
WScript.Echo("return value:"+value); //In your case, you need add one line: WScript.Echo("return value:"+allevent);
}
test();

Console:
Starting job forum6262_tsystem_javascript at 20:39 24/04/2009.
Microsoft (R) Windows Script Host Version 5.6
copyright (C) Microsoft Corporation 1996-2001?
return value:shong
================================
shong
Job forum6262_tsystem_javascript ended at 20:39 24/04/2009.

Best regards
shong
_AnonymousUser
Specialist III
Specialist III

Hi everybody,
I am working on a similar use case.
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.
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?
Thanks in advance!