You are not logged in.
Announcement
Unanswered posts
|
You can change the default value in the Value as table or Value as tree tab of the context view.
Regards,
Hi,
I'm still trying on the webservices. I suspect that the port and proxy I'm using is not allow me to access the web service. So I'm trying to change the port in the code by using the context. Not sure this will be the correct way to go.
Please advice.
Thanks.
Regards,
Yong
Hi
Your screenshots should contain context viewer, your job design and where would you use the context.
Best regards
shong
Hi,
Which part of the job I should capture the screenshot for?
The java code part? context tab? or which part?
Please advice,
thanks.
regards,
yong
Hi
Can you show a screenshot of your job ?
Best regards
shong
Hi,
Changes I make by press Ctrl + Space bar should be in the job.java file right?
I observed the changes make, cannot be saved. It will back to its default value : 3334 after I run / debug it.
How should I set the java file to take the value from the context view?
Please advice.
thanks.
Regards,
Yong
You can check the prompt checkbox in context view.
This will pop up a prompt before execution of the job in Talend where you can change temporary the default value of your context variable.
Regards,
Hi
how should I set if I want to change the value of portStats to value other than "3334"?
Do you want to change the port values to other values instead of 3334? if so, define a context 'port' in context viewer and set its values. Then, press Ctrl+Space bar and select: context.port in port fileds.
Best regards
shong
Hi Shong,
Ok. I can set the value in context tab. Can you advise, how should I set if I want to change the value of portStats to value other than "3334"?
From the java codes of the job, I can see the value can overridden if there is a parameter named "--state_port=XX" being assigned. But how should I pass in this parameter? I tried to change this value in the context/.properties file but it doesn't seems work.
Please advice.
Thanks.
Regards,
Yong
Hi
If you want to set the context value, you should set it in Contexts viewer, not in runjob viewer. Then, press Ctrl+Space bar to use the context.
Best regards
shong
I want to set the client host to a value other than the preset value ("localhost"). Can please advice how it should be set?
Configure it through the context/Default.properties file not seems work as the file will disappear after I restart the application. In the Run tab, the Context tab is not editable.
Please advice.
Thanks.
Regards,
Yong