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

Clear Table in mail body every iterate

Hi experts,

 

My objective is to insert a data-table in email body and send to every recipient

but the problem is the data-table merged in every iterate.

 

How I can clear the data in TJAVAROW in every iterate to avoid merging of rows

 

here is the diagram of job:

0683p000009MA4a.png

 

tJavaRow code

0683p000009M9xy.png

tsendmail

0683p000009MA6f.png

 

Current output and Expected Output in email body

0683p000009M9sM.png

 

Labels (5)
1 Solution

Accepted Solutions
TRF
Champion II
Champion II

Add a tJava component after tSendMail connnected by OnComponentOk and use the following code:
globalMap.put("mailMessage", "");
You may also use a tSetGlobalVar instead.

View solution in original post

3 Replies
TRF
Champion II
Champion II

Add a tJava component after tSendMail connnected by OnComponentOk and use the following code:
globalMap.put("mailMessage", "");
You may also use a tSetGlobalVar instead.
Anonymous
Not applicable
Author

Sir @TRF ,

it works on the data,

but the html formatting disappear on 2nd iterate.

 

output:

 

1st email

EMPLOYEE_NO EMPLOYEE_NAME
12345 DELA CRUZ, JUAN

 

2nd email

93832BONIFACIO, ANDRESS

Anonymous
Not applicable
Author

Got IT

 

by moving the

"<TABLE border=1 cellspacing=1px>" + "<TR><TD>EMPLOYEE_NO</TD><TD>EMPLOYEE_NAME</TD></TR>"

in the body of email

 

Thanks a lot Bro!