Stratum.Viewer supports passing parameters to existing views through URL access. This provides integration between other applications and Stratum.Viewer views. The types of parameters that can be used with this functionality are Select Members, Drop Down, User List, and Expression (except for named sets) parameters. For example, the following URL passes two values for a Select Members parameter named RepBrokerMembers that exists for the RepBroker level.
http://server-xyz:60500/Default.aspx?ViewID=472&vp:RepBrokerMembers=306;305
The syntax of the URL must contain the location of the Stratum.Viewer application, the view ID, the name of the parameter, and the values to be passed in a format supporting the specified parameter type. For user list parameters, you also need the user list ID. You also can include syntax in the URL that will control the display of the grid toolbar, name of the view and image above the grid, View Filter section, and view explorer. A few examples showing different types of parameter values passed into views via URL's follow. Before looking at the examples, here are some tips about where to find the information needed for the URL syntax. Also shown is the syntax for hiding the toolbar, View Filter section, and view explorer.
This table shows the format to use when setting up different parts of the URL.
|
The view ID shows in the bottom of your browser window when you run a view as it loads in the Stratum.Viewer interface. It shows in the same area when you hover the mouse cursor over any drilling links in the grid and when administrators run views from the View list window.
Another option for looking up the View ID is to create a Web Part from the view and look up the ID in that web part file. Right-click the view name in the left panel and select Web Part. Save the web part file and then look at the resulting *.dwp file in a text editor such as Notepad.
The name of a parameter can be looked up in view explorer. Right-click the associated view name in the left panel and select Edit. Expand the parameter group for the parameter to see the parameter name. The name also shows in its Properties window, accessed by double-clicking the parameter.
The user list ID shows in the bottom of your browser window when you open a list from the User List window as the list loads in the User List Maintenance window. The ID displays in the same area when you are viewing the list from the User List Maintenance window and hover the mouse cursor over any buttons in the toolbar except for the Help button -- for example, when the mouse cursor is over the New button .
This URL runs a view with ID 931. It returns four members for a Select Members parameter named MembersParameter that exists on the Product Family level.
http://server-xyz:60500/Default.aspx?ViewId=931&vp:MembersParameter=60;61;62;64
Note: The previous URL and URL's in the remaining examples will display the top frame and left panel of Stratum.Viewer. That part of the interface has simply been cropped from the example images.
This URL runs a view with ID 932. It returns a member for a Drop Down parameter named DropDownRepParameter that exists on the RepBroker level. The URL also returns members for a User List parameter named UserListShipToParameter that exists on the Ship-To Market level. The specified list has an ID of 104.
http://server-xyz:60500/Default.aspx?ViewId=932&vp:DropDownRepParameter=300&vp:UserListShipToParameter=104
This URL runs a view with ID 933. It returns the values of an evaluated expression related to an Expression parameter named ExpProdParameter that exists on the Product level. The expression passed into the view by the parameter returns members of the level with a Prod ABC Classification attribute relationship of B.
After the parameter information, we included the text IsHideViewFilter=True in order to hide the View Filter section.
http://server-xyz:60500/Default.aspx?ViewId=933&vp:ExpProdParameter=[Product].[Product].CurrentMember.Properties("Prod ABC Classification") = "B"&IsHideViewFilter=True