Blog Viewer

Opening Reports

  

The most common way for users to open reports is with the application's Reports menu (the other possible way is to use an Open Report button on a form). This menu contains a sub menu item for each kind of report. The menu and items are defined in the MVVM project's Web.sitemap file. Each sub menu has an assigned category. Example:

<siteMapNode title="Reports"

url=~/wfmDefault.aspx?FormID=wfmReportClientMVVM&amp;ReportCategory=701&amp;FromMenu=True"/>

<!siteMapNode title="Reports 701"

url=~/wfmReportClient.aspx?FormID=wfmReportClient&amp;ReportCategory=701&amp;FromMenu=True"/>-->

A category is a security feature for reports. The XML rpt file's Category matches the category of the node you want the report to be in. This is how you can have different groups of reports in menu items and how you can give users access only to the reports you want them to have access to. 

The Web.sitemap node must exist in Visual Studio before creating the XML rpt file.

This post is part of the Reports topic. Click here to open the Reports Overview.

0 comments
31 views

Permalink