-
-
-
-
-
- Data Grid
- Data Grid Columns
- Open a Data Grid
- Sort Data Grid Columns
- Filter Data Grid
- Data Grid Grouping
- Merge Cells in Data Grid
- Data Grid Formatting
- Data Grid - Conditional Formatting
- Data Grid - Calculated Fields
- Data Grid Drill Down
- Data Grid Views
- Generate Report from Data Grid
- Refresh Data Grid
- Copy Data Grid Records
- Export Data Grid Data
- Show all articles ( 1 ) Collapse Articles
-
- Pivot Grid
- Pivot Grid Areas
- Pivot Grid Fields
- Pivot Grid Summarize
- Format Pivot Grid Fields
- Expand - Collapse Pivot Grid Columns
- Sort Pivot Grid
- Pivot Grid - Calculated Fields
- Pivot Grid Filters
- Pivot Grid Drill Down
- Pivot Grid Charts
- Pivot Grid Maps
- Pivot Grid Views
- Refresh Pivot Grid
- Export Data from the Pivot Grid
- Embed Pivot Grid into Report
- Show all articles ( 1 ) Collapse Articles
-
-
-
- Dashboard Items
- Dashboard Chart Item
- Dashboard Pie Item
- Dashboard Data Grid Item
- Dashboard Pivot Table Item
- Dashboard Gauge Item
- Dashboard Card Item
- Dashboard Scatter Chart Item
- Dashboard Treemap
- Dashboard Range Filter Item
- Dashboard Filter Elements Item
- Dashboard Text Item
- Dashboard Image Item
- Dashboard Group Item
-
-
-
-
- Schedule Server Jobs
- Add a Schedule Job - Simple Email
- Add Schedule Job - Merged Email
- Add Schedule Server Job - Merged Report
- Add Schedule Job - Alert DBxtra Users
- Add Schedule Server - Export Report Objects
- Add Schedule Job - FTP Upload
- Add Schedule Job - Print Report
- Add Schedule Job – Google Drive Upload
- Add Schedule Job – Dropbox Upload
- Add Schedule Job – Data Dump
- Edit - Delete Schedule Server Jobs
-
-
-
- DBxtra - Excel Reporting Service
- Install the XL Reporting Service
- XL Reporting Service - Driver Requirements
- XL Reporting Service Interface
- Connect Excel Reporting Service to DBxtra Report Repository and Login
- Insert the Report Object's Data into Excel
- Refresh Your Data
- Open DBxtra Reports and Dashboard from within Excel
- XL Reporting Service Security
-
- Articles coming soon
-
-
- Migrating the Report Web Service from legacy (DBxtra version 8.2.3 and prior) to responsive (DBxtra version 9.0.0 +)
- DBxtra version 7.1.0 on Internet Information Server – IIS 6
- DBxtra 7.1.0 on Internet Information Server – IIS 7
- DBxtra version 7.1 – Upgrade DBxtra Report Repository to SQL Server Express.
- How to configure DBxtra to use Internet Information Services on Windows Server 2012
- Open DBxtra reports in web browser on a new tab
- DBxtra 7 – Migrate the DBxtra Repository from a Network Share to Report Web Service
- Report Web Service: How to retain the minimalist menu look on custom styles (Legacy Report Web Service DBxtra ver. 8.2.3 amd prior)
- The Report Web Service shows empty reports or dashboards
- Pass login information from an external application to the DBxtra Report Web Service
- Pass login information from an external application to the DBxtra Report Web Service (DBxtra version 9+ - Responsive)
- Deploying the Report Web Service to Azure (Web Sites)
- What happens to report objects style customizations when I change interfaces in the Report Web Service
In DBxtra, you can add scripts to certain events of the report and the report controls, these scripts allow you to modify the content or presentation of the controls as well as to give certain behaviors to them; as DBxtra uses the .NET Framework, it exposes the full .NET Framework in the scripting environment (with correct references and Using/Imports statements), so any function in the .NET Framework can be used there, there is also some DBxtra specific functions that you can use there.
The first thing you must do is to select which scripting language you want to use, in DBxtra you can use C#, VB.NET or JScript.NET, we recommend the use of VB.NET as most of our examples use that language, but we also provide examples in C# if requested, also please be aware that we don’t provide examples in JScript.NET.
To select the scripting language, you need to select the Report in the Property Grid (or click outside the report) and go to Behavior->Script Language and select the one you want to use.
Once you select a scripting language, you can start adding code to your report, DBxtra uses event driven programming for the scripting environment, so to make something useful you must handle the events of the report and its controls.
To handle an event, select the control you want to put an event handler and in the Property Grid go to Behavior->Scripts and select the appropriate event for the behavior you want; most of the time, you’ll want to make changes to the contents or presentation of the controls, so you’ll typically select the Before Print event, although depending of what you want to do you may need to select a different one.
Note: Changes to the content or presentation of the controls can only be done before printing the control, and the Before Print event is the last event before that happens.
In some cases you may want to create functions independently of any event, in that case, you can declare them outside any other method (before or after) and they will be accessible in any event you handle, the same applies to variables (in this case, they’ll be global variables), please be aware that the definition of the method or variable will be language dependent.
You may also want to get the value of a particular column for a calculation or to use it for some conditional behavior, in that case, you can use the following function (be aware that the column name is case sensitive):
GetCurrentColumnValue(“ColumnName”)
If you use this function in the Detail Band, it will get the current value of the referenced column as a .NET Object, so you may want to cast its return value to the appropriate data type you want to use, for example:
Dim ColumnValue As Integer = CInt(GetCurrentColumnValue(“ColumnName”))
Also, this function refers to the main data source of the report (Data), if you’re using additional data sources (bound sub reports), and want to get the value of the column in the corresponding band of the additional data source, you need to use the same function using the name of the bound sub report band, for example, assuming the band is named DetailReport, you’ll call the function like this:
DetailReport.GetCurrentColumnValue(“ColumnName”)
All controls, can be called by their name, to know the name of a particular control, you can select it and in the Property Grid go to Design->Name; you can also change the name of the control there.
Finally, if you want to get a dip of what you can achieve using report scripting, you can review our examples: Place a Total Field in the Detail Band and Calculate With Scripts, also, if there is something specific you want to do, you can always ask our support team for guidance into how better achieve it.