This technical note describes how to retrieve or modify the long description of a report in Strategy SDK 9.3.x-9.4.x.
The following sample code shows how to accomplish this task using the getComments method in the WebObjectInfo class:
…
WebObjectSource wos = woFact.getObjectSource();
wos.setFlags(wos.getFlags() EnumDSSXMLObjectFlags.DssXmlObjectComments);
WebObjectInfo woi = wos.getObject("Report id", EnumDSSXMLObjectTypes.DssXmlTypeReportDefinition, true);
/*Display the Long description of the report.*/
System.out.println(woi.getComments());
String[] newString = {"New Long Description"};
/*The line below modifies the Long description of the report.*/
woi.setComments(newString);
System.out.println(woi.getComments());