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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Getting row-Vars in tJava

Hi together,


in the tMap-Componente there are several row-Vars, but when i show them in tjava with 

System.out.println( "row2 from tMap: " + row2.toString());




all vars are "null"  - in a following logrow the vars will be shown.

Any idea whats wrong?`

Labels (2)
10 Replies
Anonymous
Not applicable
Author

Can you show us your job layout? Also, are you using tJava or tJavaRow or tJavaFlex components for this?
Anonymous
Not applicable
Author

Yes, please show the image below.
It's strange, that the last component tLogRow print 

 Column1          | 20160927  


but in tJava

System.out.println( "Test:" + OUT2.Column1);


the output is

Test: null


Here is the job layout:


0683p000009MFkz.jpg
Anonymous
Not applicable
Author

Can you change the tJava to be a tJavaFlex with the same code? Select the "Data Auto Propagate" checkbox to ensure that all data is propogated without requiring code.
Anonymous
Not applicable
Author

Put the code in the "main code" section
Anonymous
Not applicable
Author

I have done that - but the same effect, output  from 
System.out.println( "Test " + OUT3.BildFullPath  );
is 

Test null


But in the logrow, the value of the var is printed:

BildFullPath     | full/401448/910/
Anonymous
Not applicable
Author

Can you click on the "OUT3" link and show me the columns that are set up for it and also show me the code in the tJavaFlex?
Anonymous
Not applicable
Author

Thanks for your engagement ;-)
The code in tJavaFlex is:

System.out.println( "Test " + OUT4.Column1);


And here a screen from the Row:


0683p000009MFnE.jpg
Anonymous
Not applicable
Author

You aren't using a tJavaFlex. You are using a tJava. Can you use the tJavaFlex and ensure that the    "Data Auto Propagate" checkbox is ticked.
Anonymous
Not applicable
Author

Sorry, that was an old screen You are right: Now, with the code in the main area, it works. The aim is, to get the values from the row to a following tftpGet-Component. So I think in the javaflex-Component, i can define a global variable, and then use it e.g. as a download-Path in ftpget