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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Pass the properties of a file to tJava component

Hi,
I need to pass the properties of a file like file size, file MD5 value to a tJava component for future use. Currently i am using "tFileProperties" and "tJava" components for this. But i an unable to pass the properties of the file. Please advice.
Regards,
Babu.
Labels (3)
2 Replies
Anonymous
Not applicable
Author

Hello Babu
Store the file properties in global variables. eg:
tFileProperties--main---tJavaRow
|
onsubjobok
|
tJava
on tJavaRow, store the file properties into global variables: eg:
globalMap.put("size", input_row.size);
on tJava, use the file properties like:
Long size=(Long)globalMap.get("size");
Best regards
Shong
Anonymous
Not applicable
Author

Hi,
I have one file in repository, I need output all available data in this file along with file properties for all rows.
Please advise.
Regards,
DSR