MicroStrategy ONE
Data Mart Examples
The following examples are provided:
-
Converting a report to a data mart report using objects and beans
-
Converting a report to a data mart report using report bean events and saving the report definition
All the examples above use a method, called getReportBean, to create and initialize a report bean. The method is listed below for your convenience
Sample code for the getReportBean method:
ReportBean getReportBean(String name) {
ReportBean rb = WebBeanFactory.getInstance().newReportBean();
WebObjectsFactory factory = WebObjectsFactory.getInstance();
WebIServerSession session = factory.getIServerSession();
//initialize session appropriately
rb.setSessionInfo(session);
rb.setObjectName(name);
return rb;
}