One Star

print value of context variable in tsendmail

Hi
I'm trying to print list(datatype) of file column from taggregaterow in tsendmail.
In taggregatecolumn, I have two column, Folder and file
Folder is about dir path and file is about files.
May I know how can I store the output of file from taggregaterow and store into any variable. And use that variable to print all file names in tsendmail.
Can anyone tell, how to do it ?
3 REPLIES
Moderator

Re: print value of context variable in tsendmail

Hi?
You can use tJavaRow  to save each value to a variable then get them in tsendmail message body
Adding below code in tJavaRow. 
context.ColumnName=context.ColumnName+input_row.ColumnName;
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: print value of context variable in tsendmail

Hi 
Can you please me, what is context.ColumnName here ? And how it is performing here ?
Little confused !!
And if here context.Columnname is storing all flies then after having componentOK from tjavarow to tsendmail need to mention just
context.Columnname in message ?
Right ?
Moderator

Re: print value of context variable in tsendmail

Hi,
Please take a look at this forum:https://www.talendforge.org/forum/viewtopic.php?id=40323
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.