Strategy ONE

Executing a Report Using the URL API

The table below shows the URL parameters used to execute a report.

Argument Description

evt

4001 - ReportExecuteEvent

Allows users to execute reports

src

The page component that should handle the action and the event

reportViewMode

Grid (1) or Graph (2) mode

reportID

Specifies the ID of the report to export to PDF

style*

Specifies the style to be used. If no style is specified, the default style defined in the report definition is used

execFlags*

Flags to be used while executing a report

resultFlags*

Flags to be used while retrieving the report results

* optional arguments

The sample URL shown below illustrates how to execute the "Electronics Revenue vs. Forecast" report, which is part of the MicroStrategy Tutorial project.

J2EE environment:

http://webserver/MicroStrategy/servlet/mstrWeb?

Server=localhost

&Project=MicroStrategy+Tutorial

&Port=0

&uid=Administrator

&pwd=

&src=mstrWeb.4001

&evt=4001

&reportViewMode=1

&reportID=EB3CD5D14F4C8C77782AC0882C986B8D

.NET environment:

http://webserver/MicroStrategy/asp/Main.aspx?

Server=localhost

&Project=MicroStrategy+Tutorial

&Port=0

&uid=Administrator

&pwd=

&src=Main.aspx.4001

&evt=4001

&reportViewMode=1

&reportID=EB3CD5D14F4C8C77782AC0882C986B8D

See also: