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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Using variable obtening by tJava_row and used on tSetGlobalVar

Hello, I'm her again, 0683p000009MEwA.png

I have a job like this ,

tFileInputXML ------> tXMLMAP------>tJavaRow------>tSetGlobalVar------->tSendMail

 

I extracte some data in my inputfile and in my tJava I have a condition:

string var =((String)globalMap.get("stuff'));
if( var !=null)
{
//execute programme 
print = var;
}
else
{
system.out.println("Pass"); }

(if condition is, if I get some error string i set the file name in a var and i send a email with the file who get the error)

 

so in my tSendMail I would like to use the print variable in my if condition, or setting in my tSetGlobalVar, how can I do ?

Thx a lot 

Labels (5)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Ok i find the solution for this , thx ! I used globalMap.Put("name",date);
btw I have an other problem, gonna open new discussion.

View solution in original post

7 Replies
Anonymous
Not applicable
Author

Solved, I use the tLogRow.ERROR_MESSAGE

Anonymous
Not applicable
Author

Update:
Its not working
aashish_21nov
Creator
Creator

use the tLogRow.ERROR_OUTPUT

Anonymous
Not applicable
Author

I don't have tLogRow.ERROR_OUTPUT, I have only ERROR.MESSAG or NB.LINE:/
fdenis
Master
Master

use globalMap.set("name","Value") in your tjavarow
or
ann an output and set it on output_row.rowname=var;

de careful, globalMap is a global variable, row.rowname is not.
Anonymous
Not applicable
Author

How can I set ?
I don't understand how can i set with globalmap.set 😕
Anonymous
Not applicable
Author

Ok i find the solution for this , thx ! I used globalMap.Put("name",date);
btw I have an other problem, gonna open new discussion.