Izenda, LLC

Ad Hoc Reports & Dashboards for ASP.NET Apps

Free Trial

Izenda Reports is licensed on a "per user" or "per server" basis. Please complete this form to receive a price quote.

All fields are required.

The live demo demonstrates Izenda reports with the Northwind Sample database. To login, please register below.

All fields are required.

You can download a full time-limited trial version here. Or, email a CSV file to data@izenda.com and our sales team will create several complementary reports on our demo environment.

All fields are required.

How do I integrate with my login page?

Expand / Collapse
 

How do I integrate with my login page?


Izenda Reports ships with a sample login page, login.aspx, which is ready for customization. To learn how to customize your login.aspx click here . During the login process, your login page will need to set the user name and admin status. Now that we know the user name "Bob" and admin status "false", we check what company the user belongs to and make settings changes based upon this. The setting that is used to set per-user settings is the PostLogin() method, and it should be called from your login page after setting the username and admin status but before you redirect to Izenda Reports.

public override void PostLogin()

{
//Set connection string per-tenant
AdHocSettings.SqlServerConnectionString=
GetConnectionStringByCompany();

//Set the stored reports file folder path per-tenant
AdHocSettings.ReportsPath="\\" GetUserCompany() "\\"
GetUserDepartment();

//Set table and view access
AdHocSettings.VisibleDataSources = GetTables(GetUserRole);

//Set all other settings
AdHocSettings.ShowAdminButton = GetAdminStatus();
AdHocSettings.ShowModifyButton = GetAdminStatus();

if (GetUserCompany()=="AcmeWidget")
{
//Acme Widget wanted some custom settings that no other
//company wanted so we put them here
AdHocSettings.Formats["Currency"] = "{0:#,###.##}";

//Acme Widget wanted custom roles so we
//set settings for custom roles you define

if (GetUserRole()=="PowerUser")
{
AdHocSettings.ShowModifyButton=true;
AdHocSettings.AllowDeletingReports=false;
}
}
} //end postlogin

Tags:


Details
Type: FAQ
Options