581bfe20fb67adebd2c81aab46c7b47b3bf668ce
Integration/Tutorials/Getting-Started.md
| ... | ... | @@ -1,104 +1 @@ |
| 1 | -#Integration Quick Start Guide |
|
| 2 | - |
|
| 3 | -[[_TOC_]] |
|
| 4 | - |
|
| 5 | -##Introduction |
|
| 6 | - |
|
| 7 | -Izenda reports includes a flexible API that can be configured to integrate with your application. This guide covers most of the basic elements that are needed to apply branding and security to the majority of applications. Before beginning make sure that Izenda Reports can properly connect to your database when setup as a stand-alone virtual directory. |
|
| 8 | - |
|
| 9 | -###Izenda Reports Quick Setup |
|
| 10 | -To integrate Izenda into your own website, you will first need a development environment, such as Visual Studio. Once you have a development environment, you can get our website template from [here](http://www.izenda.com/Site/DownloadComplete.aspx?msgId=0). Once you have followed the steps there, return here and find out more about how you can get started using Izenda Reports. |
|
| 11 | - |
|
| 12 | -###[[Configuring Settings|Integration/Tutorials/Customizing-Izenda-Settings]] |
|
| 13 | - |
|
| 14 | -The Izenda Reports API contains specific settings that alter the behavior of the tool on a per-user basis. Settings can be applied through the Settings.aspx page or via a CustomAdHocConfig class which is normally found in the Global.asax file. Examples of important settings include the license key or the user name. |
|
| 15 | - |
|
| 16 | -###[[Creating Views|Integration/Tutorials/Views]] |
|
| 17 | - |
|
| 18 | -Some databases contain complex field names that may be confusing to users. In these situations it may be necessary to create reporting views that simplify the data model for the user. Users can be limited to specific views using the "Visible DataSources" setting. |
|
| 19 | - |
|
| 20 | -###[[Applying Branding|Integration/Tutorials/Appearance]] |
|
| 21 | - |
|
| 22 | -There are a few different ways to apply your branding, logo or header controls to Izenda Reports. |
|
| 23 | - |
|
| 24 | -Header Image : The simplest way to apply your logo is to set the "Application Header Image Url" in the "CSS & Images" section of the configuration page or the ApplicationHeaderImageUrl setting. This can be done by navigating to Settings.aspx from a browser. |
|
| 25 | - |
|
| 26 | -Master Pages : If you already have an ASP.NET master page, you can apply it to ReportDesigner.aspx, ReportList.aspx, and ReportViewer.aspx. Be careful not to apply a master page or theme to the rs.aspx page as that may interfere with the reporting operation. |
|
| 27 | - |
|
| 28 | -IFRAMES or Frames : The Izenda reports pages may be placed inside an IFRAME or FRAME. This would need to be done for ReportDesigner.aspx, ReportList.aspx, and ReportViewer.aspx. |
|
| 29 | - |
|
| 30 | -###[[Building Core Reports]] |
|
| 31 | - |
|
| 32 | -The best way to deploy Izenda is to create a small set of base reports that user can then customize. Ideally initial reports should contain the most relevant data sources and fields. It may be beneficial to add summaries and charts to them as well. See the training section for details on how to create various types of reports. |
|
| 33 | - |
|
| 34 | -###[[Enforcing Security and User Limitations|Integration/Tutorials/Security]] |
|
| 35 | - |
|
| 36 | -The Izenda Reports platform includes a robust and flexible security model which inherits rich security credentials from your application. This example covers how to apply security for most common scenarios by using the ''PostLogin()'' to pass user credentials to the Izenda API. This method is normally found in the [CustomAdHocConfig](Integration/Tutorials/Adding-Code) class in the Global.asax file. |
|
| 37 | - |
|
| 38 | -###Assumptions |
|
| 39 | - |
|
| 40 | -These will vary based on your application |
|
| 41 | - |
|
| 42 | - * The username is stored in a session variable called "UserName" |
|
| 43 | - * The users role is stored in a session variable called "Role" |
|
| 44 | - |
|
| 45 | - * The database contains tables and views with a field named "ClientID" |
|
| 46 | - * Reports will be created and saved to a category called "Admin Reports" |
|
| 47 | - |
|
| 48 | -###Limitations Enforced |
|
| 49 | - |
|
| 50 | - * The user is logged In |
|
| 51 | - * The user can only see records for their ClientID |
|
| 52 | - * The user can only see certain data sources and will not see reports that require those data sources |
|
| 53 | - * Non-admins will not be able to overwrite reports |
|
| 54 | - * Non-admins will not see the "Admin Reports" and "Sensitive Reports" categories in their report list |
|
| 55 | - |
|
| 56 | -*Basic Login Security - Place in the ``PostLogin()`` or ``InitializeReporting()`` method of ``CustomAdHocConfig`` which is normally found in **Global.asax**.* |
|
| 57 | - |
|
| 58 | -``` c# |
|
| 59 | -//Pass User Credentials |
|
| 60 | -AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE"; |
|
| 61 | -AdHocSettings.CurrentUserName = GetUserName(); |
|
| 62 | -AdHocSettings.CurrentUserTenantId = GetTenantID(); |
|
| 63 | -AdHocSettings.CurrentUserIsAdmin = true; |
|
| 64 | -AdHocSettings.VisibleDataSources = new string[] { "Products", "Orders", "Customers" }; |
|
| 65 | -``` |
|
| 66 | - |
|
| 67 | -*Multi-Role Scenario - Apply specific limitations to certain roles* |
|
| 68 | - |
|
| 69 | -``` c# |
|
| 70 | -string role = GetUserRoleFromApp() |
|
| 71 | -if(role == "Admin") |
|
| 72 | -{ |
|
| 73 | - Izenda.AdHoc.AdHocSettings.VisibleDataSources = new string[] { "Purchasing.Vendor", "Products", "Orders", "Order Details", "Customers" }; |
|
| 74 | -} |
|
| 75 | -else |
|
| 76 | -{ |
|
| 77 | - Izenda.AdHoc.AdHocSettings.VisibleDataSources = new string[] { "Products", "Orders", "Customers" }; |
|
| 78 | - Izenda.AdHoc.AdHocSettings.CurrentUserIsAdmin = false; |
|
| 79 | - Izenda.AdHoc.AdHocSettings.ShowSettingsButton = false; |
|
| 80 | - Izenda.AdHoc.AdHocSettings.ShowSqlOutputIcon = false; |
|
| 81 | - Izenda.AdHoc.AdHocSettings.HiddenFilters["ShipCountry"] = GetUserCountry(); |
|
| 82 | -} |
|
| 83 | -``` |
|
| 84 | - |
|
| 85 | -*The PostLogin() method needs to be called at the end of your authentication process after user credentials are added to the session.* |
|
| 86 | - |
|
| 87 | -``` c# |
|
| 88 | -// Call the Izenda PostLogin() from your login page after authentication is complete |
|
| 89 | -Izenda.AdHoc.AdHocSettings.AdHocConfig.PostLogin(); |
|
| 90 | -``` |
|
| 91 | - |
|
| 92 | -*Once security is fully configured, add the following code to [ConfigureSettings()](http://wiki.izenda.us/Adding-Code) method to prevent users from navigating to reports without logging in first.* |
|
| 93 | - |
|
| 94 | -``` c# |
|
| 95 | -// Require Login once security configured. |
|
| 96 | -AdHocSettings.RequireLogin = false; |
|
| 97 | -AdHocSettings.LoginUrl = "INSERT_YOUR_LOGIN_PAGE_HERE"; |
|
| 98 | -``` |
|
| 99 | - |
|
| 100 | -###[[Navigation|Integration/Tutorials/Navigation]] |
|
| 101 | - |
|
| 102 | -###[[Architecture|Integration/Tutorials/Architecture]] |
|
| 103 | - |
|
| 104 | -###[[Localization|Integration/Tutorials/Localization]] |
|
| ... | ... | \ No newline at end of file |
| 0 | +Re-purpose this page |
|
| ... | ... | \ No newline at end of file |