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

Does it ever fork for anyone? ((String)globalMap.get("tDBRow_1_QUERY"))

Hi folks

 

I wonder whether this approach forks for anyone in order to catch a real SQL statement executed in a component tDBRow?

 

I saw few references to this way but in my case it always returs null. And I found no confirmations from users that it works.

0683p000009M7dt.png

 

tJava_2:

System.out.println(
((String)globalMap.get("row10"))+
((String)globalMap.get("tDBRow_1_QUERY"))
);

and the output is:

[statistics] connecting to socket on port 4009
[statistics] connected
nullnull

And yes, the constraction ((String)globalMap.get("row10")) does not work in my case either. 

 

Is there any user here havsing success on this?

 

Thanks and regards,

Alex

Labels (3)
1 Solution

Accepted Solutions
TRF
Champion II
Champion II

Because tJava component is executed first but only once in the subjob.

Use tJavaFlex or tJavaRow instead.

View solution in original post

1 Reply
TRF
Champion II
Champion II

Because tJava component is executed first but only once in the subjob.

Use tJavaFlex or tJavaRow instead.