Using the Strategy Web URL API, it is possible to execute a report services document and indicate that the default prompt answers be used automatically. To accomplish this, use the following parameters in the URL:
http://SERVERNAME:8080/812/servlet/mstrWeb?
Server=SERVER-NAME
&Project=Strategy+Tutorial
&Port=0
&evt=2048001
&src=mstrWeb.2048001
&visualizationMode=0
&documentID=45657F1F46F73190547360B2AD28C57D
&useDefAns=true
The useDefAns parameter indicates whether or not the default answers should be used and is used specifically for Report Services Documents. The default answers can be specified at any level - at the prompt level, report level, or document level and this will work correctly.
In Strategy Web 9.0.x, the parameter is called 'promptAnswerMode' and applies to both Report Services Documents and Reports. For instructions on how to use this URL parameter in Strategy Web 9.0.x, navigate to the followng TN:
https://resource.microstrategy.com/Support/Authoring/DisplayTN.aspx?tnkey=34337&formatted=1
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.