I am having the same problem.
Does anyone know how to do it?
If I find the solution, I will post it here.
Best regards,
Ricardo Bernardino
You can query and get the value of systemattributes via the Java API:
Request.queryAttribute and passing the SystemAttributes.XXX
So, is there a way to query the user defined attributes of a request, i.e Target Release?
Kr
Joel
I am having the same problem.
Does anyone know how to do it?
If I find the solution, I will post it here.
Best regards,
Ricardo Bernardino
You can use the same method for user attributes. System attributes are predefined and negative constants. User attributes are positive. You can enumerate user attributes to find the number of attribute you need.
See example in .../CM/java_api/examples/DisplayWidth.java:
[code]List attrdefs = req.getAttributesForRoleSection((String) req
.getAttribute(SystemAttributes.STATUS), "$ALL");
// details of the request's attributes.
Iterator it = attrdefs.iterator();
while (it.hasNext()) {
AttributeDefinition ad = (AttributeDefinition) it.next();
System.out.println("attr#" + ad.getNumber() + ", name=\""
+ ad.getName() + "\", prompt=\"" + ad.getUserPrompt()
+ "\", display-width=" + ad.getDisplayWidth()
+ ", display-length=" + ad.getDisplayLength());[/code]
Did not try that myself, but should work (may be even something simplier).
Let me know if that does not work.