EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB44311: How to Save a Personal View Using the MicroStrategy Web URL API 10.4-10.10


Hussam Bahia

Senior Manager, Technical Account Management • MicroStrategy


This article explains how to save a personal view using the MicroStrategy Web URL API.

Description:

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/MicroStrategy/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

This portion of the URL specifies the standard information necessary for performing an action in Strategy Web:

/MicroStrategy/servlet/mstrWeb?Server=&Project=&port=0

The first event needed is to execute the report or document.

  • Document Execution: &evt=2048001&src=mstrWeb.2048001&visMode=0¤tViewMedia=2&documentID= 
  • Report Execution: &evt=4001&src=mstrWeb.4001&reportID=

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


Comment

0 comments

Details

Knowledge Article

Published:

April 1, 2017

Last Updated:

February 16, 2024