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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

sysdate to context variable

The simple one.
How to put sysdate in context variable in tjavarow?

Thanks.
Labels (3)
4 Replies
Anonymous
Not applicable
Author

hi,
try this : context.new1=TalendDate.getDate("CCYY-MM-DD hh:mm:ss");
Anonymous
Not applicable
Author

works!!! .. And how to get duration from tChronometerStop into context variable???
Ok in general we place cursor over property field and pres ctrl+space to see key for globalMap, how to do this with in this case?
Thanks!
Anonymous
Not applicable
Author

Hi,

In a tjavarow write context.time_run=((Long)globalMap.get("tChronometerStop_1_DURATION")). Add a .toString() if you would like it to be of string type.
Anonymous
Not applicable
Author

Thanks to both of you!
Regards!