☰
Current Page
Main Menu
Home
Home
Editing AdHocContext
Edit
Preview
H1
H2
H3
default
Set your preferred keybinding
default
vim
emacs
markdown
Set this page's format to
AsciiDoc
Creole
Markdown
MediaWiki
Org-mode
Plain Text
RDoc
Textile
Rendering unavailable for
BibTeX
Pod
reStructuredText
Help 1
Help 1
Help 1
Help 2
Help 3
Help 4
Help 5
Help 6
Help 7
Help 8
Autosaved text is available. Click the button to restore it.
Restore Text
#AdHocContext [[_TOC_]] ##About The AdHocContext class is used to setup the database driver, access the report set currently stored in the active user's session, and access various metrics for your license key. Below is an overview of the properties and methods available through AdHocContext and what each of them can do. |Property|Description| |:------:|:---------:| |ClientLicenses|Gets the maximum number of clients supported by your current license key| |CurrentReportSet|Gets the report object that was most recently loaded by the user| |CurrentUserName|Gets the AdHocSettings.CurrentUserName property for backwards-compatibility reasons| |Driver|Gets or sets the database driver that your application will use| |ProcessorLicenses|Gets the maximum number of processors your current license key can support| |ReportSetCount|Not used internally| |SchedulerExecuting|Gets a value indicating whether the Izenda Scheduler is executing scheduled reports or not| |SetSchedulerExecuting|This method takes a boolean value that sets whether or not the Izenda Scheduler is executing| |StoreInStaticMemory|Gets or sets whether the CurrentReportSet will be stored in static memory or not| |UsersCountModel|Gets the concurrency model for your current license key| |ViewerLicenses|Gets the maximum number of users supported by your current license key| ##CurrentReportSet The CurrentReportSet object is the way that Izenda exposes the most recently loaded report definition. This object can be used in many of the overrides that can be used in the Global.asax for more flexibility when dealing with saving/loading reports, modifying datasets, and displaying other useful information as your organization needs. ##Driver The Driver object is the single point of entry for all database traffic and must be set to any of the specific driver classes that Izenda provides. This will use your connection string and datasources to provide the framework for working with Izenda reports. Currently these are the types of drivers Izenda has available. * MSSQLDriver * MySQLDriver * PostgreSQLDriver * OracleDriver * Db2Driver * [[FusionDriver|http://wiki.izenda.com/Guides/Izenda-AdHoc-Driver#Izenda-Fusion-Driver]] * MySqlFusionDriver * OracleFusionDriver * PostgreSqlFusionDriver * SqlFusionDriver In order to set the driver for your database, you simply need to create a new driver instance and assign it to AdHocContext. ```csharp AdHocContext.Driver = new MSSQLDriver(); ``` The default value is a new MSSQLDriver. _**Note:** You should refrain from using the **.Driver** property when working with requests to the database in custom methods, such as with [[ProcessDataSet|http://wiki.izenda.com/FAQ/ProcessDataSet]]. This can interfere with how Izenda works internally and cause various portions of the application to stop functioning correctly._ ##SchedulerExecuting Normally, this setting will be automatically updated when your rs.aspx is called with the run_scheduled_reports=1 parameter. You can also update this value yourself if you need special kinds of scheduling. This can be done in PreExecuteReportSet and PostExecuteReportSet respectively.
Uploading file...
Header
 **This documentation is for the legacy Izenda 6 product. Documentation for the new Izenda 7 product can be found at [[https://www.izenda.com/docs/|https://www.izenda.com/docs/]]**
Sidebar
 --- * [[Izenda 7 Series Documentation|https://www.izenda.com/docs/]] * [[Release Notes]] * [[Upgrade Best Practices|FAQ/Izenda-Update-Best-Practices]] * [[FAQ]] * [[Tutorials]] * [[The Izenda API|/API/AdHocConfig]] * [[The AdHocSettings class|/API/AdHocSettings]] * [Developer Links and Guides](/Guides/Developer-Links-and-Guides) * [[Known Issues]] --- * <a href="http://www.izenda.com" rel="nofollow" target="_blank">Izenda Website</a> * [Product Video](https://www.youtube.com/watch?v=X3-yWFq0w5A) * <a href="http://www.izenda.com/blog" rel="nofollow" target="_blank">Izenda Blog</a> * <a href="http://www.izenda.com/company/" rel="nofollow" target="_blank">About Us</a> * <a href="http://www.izenda.com/contact-us/" rel="nofollow" target="_blank">Contact Us</a> --- * [Guide To Report Design](/Guides/ReportDesign) * [Making Custom Forms Video](http://www.youtube.com/watch?v=5b2axJlgdFs) --- * [[Acknowledgements]]
Edit message:
Cancel