MicroStrategy ONE

Data Mart Examples

The following examples are provided:

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;

 }