EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB13660: How to retrieve or modify the long description of a report using MicroStrategy SDK


Community Admin

• Strategy


This technical note describes how to retrieve or modify the long description of a report in MicroStrategy SDK 9.3.x-9.4.x.

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());

 
 
 
Customization Warning:
This customization is provided as a convenience to Strategy users and is only directly applicable to the version stated. While this code may apply to other releases directly, Strategy Technical Support makes no guarantees that the code provided will apply to any future or previous builds. In the event of a code change in future builds, Strategy Technical Support makes no guarantee that an updated version of this particular customization will be provided. For enhancements to this customization or to incorporate similar functionality into other versions, contact your Account Executive to inquire about Strategy Consulting assistance.
 


Comment

0 comments

Details

Knowledge Article

Published:

June 22, 2017

Last Updated:

June 22, 2017