In MicroStrategy, Web Beans are simply Java beans. Beans are simply blocks of MicroStrategy data which enable you to bring MicroStrategy data onto the page.
Beans can have the following characteristics: name, type, source (including request parameters, name of enumeration constant, constant, preference, browser setting, and feature), and value.
Consider that your company wants to restrict the end report users from accessing the full functionality of the Report Execution
page. Instead, end-users should be restricted to viewing the report results only. The steps to do this are as follows:
EmbedSingleReport
Report Execution
) page to create the beansExercise
pageexerciseLinks.jsp
file so that it uses the following anchor tag:<a href="mstrWeb?pg=beansExercise&reportID=271209CD11D3EA25C000B3B2D8 6C964F">Embed a Single Report on a Page</a>
exerciseLinks
page, and clicking the Embed a Single Report on a Page linkexerciseLinks
page displays the reportConsider that your company wants you to create a report showing the contents of two reports. That is, you need to combine the outputs of two reports into one. The steps to do this are as follows:
EmbedMultipleReports
ReportExecution
) page to create the multipleBeansExercise
pageexerciseLinks.jsp
file to use the following anchor tag:<a href="mstrWeb?pg=multipleBeansExercise&reportID=271209CD11D3EA25C0 00B3B2D86C964F&reportID2=D1AE56B011D5C4D04C200E8820504F4F">Embed Multiple Reports on a Page</a>
exerciseLinks
page, and clicking the Embed Multiple Reports on a Page linkexerciseLinks
page should display both the SDK Sample Report and the Call Center Timeliness
report on your page:
Consider that you need to refine the report created in the previous example, by making the contents of the two reports expandable and collapsible web panels, like the following:
The steps to do this are as follows:
</web:ifFeature>
tag, add the following custom code:<%--Adding panel around the report bean for the first report --%> <web:panel name="report1Panel" language="1" useImage="true"> <web:panelTitle><B>SDK Sample Report</B></web:panelTitle> <web:panelCloseInfo width="13" height="13" img="1arrow_down.gif"> Hide Report </web:panelCloseInfo> <web:panelOpenInfo width="13" height="13" img="1arrow_right.gif">Show Report </web:panelOpenInfo> <web:panelContent>
<fweb:ifBeanValue>
closing tag, add the following custom code:</web:panelContent> </web:panel>
<%--Adding new report bean for the second report --%> <web:displayBean beanName="rb2"/>
<%--Adding panel around the new report bean for the second report -- %> <br><br> <web:panel name="report2Panel" language="1" useImage="true"> <web:panelTitle><B>Call Center Timeliness</B></web:panelTitle> <web:panelCloseInfo img="1arrow_down.gif">Hide Report</web:panelCloseInfo><web:panelOpenInfo img="1arrow_right.gif"> ShowReport</web:panelOpenInfo><web:panelContent><web:displayBean beanName="rb2" /></web:panelContent></web:panel>
Click Save.
Report_Content.jsp
file.http://localhost/MicroStrategy/servlet/mstrWeb
, or your MicroStrategy web starting page.exerciseLinks
shortcut to navigate to the exerciseLinks
page.