The URL API provides the ability to directly request Strategy Web to perform actions by using specific arguments in the request. This is useful in the context of the out-of-the-box Strategy Web, as well as when integrating Strategy Web with an external Web site, portal, or other third-party application. A lot of functionality can be achieved simply by passing the appropriate parameters through a URL.
In this particular instance, it is possible to save a Personal View (see KB40298 for more information) to My Subscriptions using the URL API. This is useful for cases where a 'Save' button needs to be placed directly onto a document instead of relying on the toolbar. This is especially useful if using portlets and the hiddenSections parameters is used to hide sections of the page.
Below is the URL API template for this action for Report Services Documents:
For ASP .Net: http://myWebServer/MicroStrateg/asp/Main.aspx?Server=&Project=&port=0&evt=2048001&src=Main.aspx.2048001&documentID=8807BD214B030B465382148BC3761264¤tViewMedia=1&visMode=0&evt=256022&src=Main.aspx.rwd.pvsubs.pvsubs_sb.256022&subName=&objectType=55&objectSubType=14081&evt=256021&src=Main.aspx.rwd.pvsubs.pvsubs_sb.256021&2048001=1&256022=1&256021=1&evtorder=256022,256021,2048001 For J2EE: http://myWebServer/Strategy/servlet/mstrWeb?Server=&Project=&port=0&evt=2048001&src=mstrWeb.2048001&visMode=0¤tViewMedia=1&documentID=&server=&Project=&port=&evt=256022&src=mstrWeb.rwd.pvsubs.pvsubs_sb.256022&subName=&objectID=&objectType=55&objectSubType=&evt=256021&src=mstrWeb.rwd.pvsubs.pvsubs_sb.256021&2048001=1&256022=1&256021=1&evtorder=256022,256021,2048001
/Strategy/servlet/mstrWeb?Server=&Project=&port=0
The second and third events perform the actual save function:
&evt=256022&src=mstrWeb.rwd.pvsubs.pvsubs_sb.256022&subName=&objectID=&objectType=55&objectSubType=14081&evt=256021&src=mstrWeb.rwd.pvsubs.pvsubs_sb.256021
For more details regarding each event and its parameters see the Event Handler Reference.
The final portion of the URL specifies the order of events. Note: Event 2048001 is included at the end in order to return back to the original document.
&2048001=1&256022=1&256021=1&evtorder=256022,256021,2048001