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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
shalinim1
Contributor III
Contributor III

How to change column name?

To record the logs of components. I have used tStatCatcher--> tjavaflex--> tfileoutputdelimited.

I want to change the columns name of tstatcatcher,s schema when it is loaded to

tfileoutputdelimited.

In tjavaflex I tried as,

row2.Date_Time=row1.moment;

row2.pid=row1.pid;

row2.project=row1.project;

Its loading data only for pid and project columns. The Date_time colmn is null in the output file.

How to deal with this?

Labels (3)
1 Solution

Accepted Solutions
Prakhar1
Creator III
Creator III

did yo write the code in the "Main Code" block of tJavaFlex?

View solution in original post

7 Replies
manodwhb
Champion II
Champion II

@Shalini M​ , you can not change in the tstatcatcher,you have to change after tstatcatcher by using tjavaflex or tjavarow or tmap.

 

Thanks,

Manohar

shalinim1
Contributor III
Contributor III
Author

@Manohar B​ I've changed the columns in tjavaflex component. And connected to the output file.

manodwhb
Champion II
Champion II

@Shalini M​ ,Is it working?

 

Thanks,

Manohar

shalinim1
Contributor III
Contributor III
Author

No @Manohar B​, The changed name column was null. The data was not loaded.

Prakhar1
Creator III
Creator III

did yo write the code in the "Main Code" block of tJavaFlex?

shalinim1
Contributor III
Contributor III
Author

@prakhar dubey​ I wrote the code in 'start code'. But now I have changed to 'main code' block and it worked. Thank you. 🙂

Prakhar1
Creator III
Creator III

@Shalini M​ your welcome 🙂