It is possible to execute multiple events like execute, page-by, and export together using URL API in Strategy Web and Web Universal 9.x.
The following sample contains URL Parameters for executing a document and exporting the same document to PDF, selecting the attribute elements in page-by axis:
Sample URL to execute in Strategy Web:
http://localhost/MicroStrategy/asp/Main.aspx?server=was-nnaragam&Project=Strategy+Tutorial&evt=2048001&src=mstrWeb.2048001&documentID=EB4A97F04DBF416C2A0C23802B3DB4DD&evt=20003&src=mstrWeb.rwd.rwframe.pbb.20003&elemKey=F22 BB:8D679D3711D3E4981000E787EC6DE8A4:1:2:0:2:1:3:2:Electronics&elemKey=F27 BB:8D679D4A11D3E4981000E787EC6DE8A4:1:2:0:2:1:3:20044:2004 Q4&evt=3103&src=mstrWeb.3103&executionMode=3&rwExportMode=1&evtorder=2048001&2c;20003&2c;3103&2048001=1&20003=1&3103=1&uid=Administrator&pwd=
Sample URL to execute in Strategy Web Universal:
http://localhost:8080/mstrURL/servlet/mstrWeb?server=was-nnaragam&Project=Strategy+Tutorial&evt=2048001&src=mstrWeb.2048001&documentID=EB4A97F04DBF416C2A0C23802B3DB4DD&evt=20003&src=mstrWeb.rwd.rwframe.pbb.20003&elemKey=F22 BB:8D679D3711D3E4981000E787EC6DE8A4:1:2:0:2:1:3:2:Electronics&elemKey=F27 BB:8D679D4A11D3E4981000E787EC6DE8A4:1:2:0:2:1:3:20044:2004 Q4&evt=3103&src=mstrWeb.3103&executionMode=3&rwExportMode=1&evtorder=2048001&2c;20003&2c;3103&2048001=1&20003=1&3103=1&uid=Administrator&pwd=
NOTE: The pageByKey can be obtained from the xml that is taken from the source after appending &xml=1 to the URL while executing the report as explained in the following Strategy Knowledge Base technical note:
Code 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. In the event of a code change in future builds, Strategy may not be able to provide additional code on this matter even though this customization is provided at this time for this specific build. For enhancements to this customization or to incorporate similar functionality into other versions, contact your Account Executive to inquire about Strategy Consulting assistance.