Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X
I have an Excel macro doing a web query executing a Windchill report. The purpose is to download the dxf file attached to the drawing in an automated way. The problem is that Windchill does prompt the first time for credentials (login name and password). Is there a other way to give the credentials to Windchill ?
Your answers are welcome. Regards,
Bernard
I'm not sure how you are making a call to Windchill.
But if you are making a call to Windchill and making use of Remote Method Server, then you can use the following to set the username and password. This way you won't get a login prompt.
RemoteMethodServer.getDefault().setUserName(username);
RemoteMethodServer.getDefault().setPassword(password);
wt.load.LoadFromFile uses the same mechanism as above in lines 162-165.
Hope that helps!
I am calling Windchill by passing the url of the report to execute in the web query function of Excel. Maybe there is a way in passing the credentials with the url, like http://user:password@windchill.lvd.be/Windchill. This seems to only work with Chrome or Mozilla. I am working with Internet Explorer.