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

Announcements
Note: You may notice some temporary visual or styling issues in the Community. Our vendor is actively investigating.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

whenever build the job changes are rollback.

Hello,

I opened the job in "java editor" and edit the some specific code and build the job.
So after build the job my changes are roll backed and its not displayed my changes too. 

 

 

Labels (3)
17 Replies
Anonymous
Not applicable
Author

Hi,

You cannot directly edit the code generated for a Talend Job.

If you want to include your own Java code in a Job, use one of these methods:

  • Use a tJava, tJavaRow, or tJavaFlex component.
  • Create a routine by right-clicking Routines under Code in the Repository and then clicking Create routine.

Let us know if it is OK with you.

Best regards

Sabrina

Anonymous
Not applicable
Author

Okay.


Can you please explain me how to use these components which you mentioned in your post.

And If I create custom routine then how will it point to my job in which I want to edit or modify the code.

Anonymous
Not applicable
Author

Hello,

Please have a look at related component references about:TalendHelpCenter:tJava, TalendHelpCenter:tJavaRow and TalendHelpCenter:tJavaFlex

TalendHelpCenter: Differences between tJava, tJavaRow and tJavaFlex

If you are creating a custom routine to include your own java code in job, you can call a routine from a job. Please refer to this document:TalendHelpCenter:Calling a routine from a Job

Best regards

Sabrina

 

Anonymous
Not applicable
Author

I checked these documents but I want to just add the one more field into the code which is reflected in database too.

I just wanted to add one String datatype field in my Job files. And then set its getter and setter method.

This task is very small and you suggest is very bigger then my task.

So can you please help me out to solve this issue.
Anonymous
Not applicable
Author

Hello,

For your job requirement, could you please set an example for us? Are you referring to data mapping between Talend type and db type?

Best regards

Sabrina

Anonymous
Not applicable
Author

Hello,

If you want to change the default data type mapping.

Please have a look at this document https://community.talend.com/t5/Migration-Configuration-and/Changing-the-default-data-type-mapping/t...

Best regards

Sabrina

Anonymous
Not applicable
Author

public String Current_Sales_Rep_Name;

		public String getCurrent_Sales_Rep_Name() {
			return this.Current_Sales_Rep_Name;
		}

		public String Delivery_Status_Desc;

		public String getDelivery_Status_Desc() {
			return this.Delivery_Status_Desc;
		}

		public String Sold_to_Party_Nbr;

		public String getSold_to_Party_Nbr() {
			return this.Sold_to_Party_Nbr;
		}

		public String Sold_to_Party_Name;

		public String getSold_to_Party_Name() {
			return this.Sold_to_Party_Name;
		}

		public java.util.Date Bill_Posting_Date;

		public java.util.Date getBill_Posting_Date() {
			return this.Bill_Posting_Date;
		}

		public String Sales_Nbr;

		public String getSales_Nbr() {
			return this.Sales_Nbr;
		}

		public String Shipped_Merchandise_Value;

		public String getShipped_Merchandise_Value() {
			return this.Shipped_Merchandise_Value;
		}

I just want to add one new field named "Billing Number". and set its getter method. Nothing else.

Anonymous
Not applicable
Author

Hi,

Have you tried to achieve your goal by using custom code component tJavaRow?  Which allows you to enter the Java code to be applied to each row of the flow.

Best regards

Sabrina

 

Anonymous
Not applicable
Author

Not yet. But I will try it now.
Can you please give me the tJavaRow component download link ? Or any other way to install or add this component in the project ?