Configure redirect of Agile PLM webclient URL
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.