Configure redirect of Agile PLM webclient URL

How to configure redirect of Agile PLM web client URL for Agile-9.3.3

Add Comment
1 Answer(s)

Hi Darshan, 
You can redirect to particular Agile Object URL.
Please Refer below piece of code :
//Note : this test case i have done using servlet, you can use it in jsp and others also. 
String url = “http://<AgileServer>:<Port>/Agile/PLMServlet?action=OpenEmailObject&classid=#&objid=@”;

// fetching the object into agile class
IAgileClass testPartClass = testPart.getAgileClass();

// Retrieving class id and object id
String clasID =testPartClass.getSuperClass().getId().toString();
String objID =testPart.getObjectId().toString();

// Replacing char ‘#’ and ‘@’ with ‘ClasId’ and ‘ObjId’
url = url.replace(“#”, clasID);
url = url.replace(“@”, objID);
response.sendRedirect(url); 

Please let me know if you have any queries.

Agile Angel Answered on August 1, 2016.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.