Command reference

Aggregate functions

dbr.sum - Calculates the sum of the selected column
dbr.min - Calculates the minimum value of the selected column
dbr.max - Calculates the maximum value of the selected column
dbr.count - Calculates the number of rows
dbr.avg - Calculates the average of selected column
dbr.sum.prefix - Set's the prefix to be used with dbr.sum
dbr.min.prefix - Set's the prefix to be used with dbr.min
dbr.max.prefix - Set's the prefix to be used with dbr.max
dbr.count.prefix - Set's the prefix to be used with dbr.count
dbr.avg.prefix - Set's the prefix to be used with dbr.avg
dbr.summary.text - Adds text to summary row
dbr.calc - Allows you to create calculation formulas to populate cells
dbr.summary.calc - Same as dbr.calc. Kept for compatibility with older versions
dbr.summary.options - Change the default aggregate calculation

Titles / text

dbr.title - Set the report title. By default, the report's title is the report's name
dbr.subtitle - Give a name to the result set in a report
dbr.text - Insert a free text element to report

Applying styles

dbr.hidecolumns - Hide the number of columns at the end of the result set
dbr.hidecolumn - Hide individual columns which can be anywhere in the query
dbr.showcolumn - Show individual columns that were automatically hidden
dbr.rowstyle - Report row's CSS style. A column in the query contains the CSS style for the row
dbr.rowclass - Report row's CSS class. A column in the query contains the CSS-classname for the row
dbr.colstyle - Report column's style, where a style is a combination of printf formatting/CSS-style
dbr.colclass - Report column's CSS class. Adds a CSS-class to a specified column
dbr.cellstyle - Adds CSS-style to individual cells based on the style in another column. This allows value-based formatting
dbr.cellclass - Adds CSS-class to individual cells based on the style in another column. This allows value-based formatting
dbr.cellformat - Report cells' printf format. Format column with formatting from another column. Allows formatting cells differently in the same column in different rows
dbr.hideheader - Hide the headers in result set
dbr.headerstyle - Header's style
dbr.header.colclass - Header-column's CSS class
dbr.footerstyle - Footer's style
dbr.footer.colclass - Footer column's CSS class'
dbr.footer.colstyle - Footer's style for specific column
dbr.footer.cellclass - Set footer's CSS class based on data on another footer column
dbr.footer.cellstyle - Set footer's CSS style based on data on another footer column
dbr.resultclass - Add custom CSS class to the result table
dbr.html5data - Put a column to another column's data-xxx attribute instead of a column
dbr.sum_prefix - Override the default sum-prefix
dbr.min_prefix - Override the default min-prefix
dbr.max_prefix - Override the default max-prefix
dbr.avg_prefix - Override the default avg-prefix
dbr.count_prefix - Override the default count-prefix


dbr.calendar - Create a calendar from a result set or dynamically via Ajax - Define the Ajax report for calendar data
dbr.calendar.options - Set calendar options


dbr.crosstab - Turn a table report into a cross-tabulation report. The first parameter is the crosstable column, the optional second parameter marks the last data column inside a crosstable.
dbr.hsum - Calculate horizontal sum in a cross-tabulation report
dbr.hmin - Calculate horizontal minimum in a cross-tabulation report
dbr.hmax - Calculate horizontal maximum in a cross-tabulation report
dbr.hminus - Calculate horizontal value with formula Col1 - Col2 - Col3...
dbr.hnull - Creates a placeholder for horizontal column used with dbr.calc
dbr.hcount - Calculate number of values horizontally in a cross-tabulation report
dbr.havg - Calculate horizontal average in a cross-tabulation report - Allows hiding crosstable data columns, keep summary column. Used with dbr.calc - Allows hiding crosstable data columns based on data CrossTabSet name
dbr.hidedatacolumn - Same as, kept for compatibility - Hide all crosstable data columns, keep summary column.
dbr.hidecolumn.summary - Allows hiding crosstable summary columns, keeping data columns. . Used with dbr.calc
dbr.crosstab.title - Redefine the default title for horizontal summary column
dbr.crosstab.order - Set the order of the cross-tabulation columns
dbr.crosstab.col - Predefine the cross-tabulation columns
dbr.crosstab.options - Add crosstab option
dbr.crosstab.col.title - Set column title for crosstab horizontal summary column - Set columnstyle for crosstab horizontal summary column
dbr.crosstab.header - Add additional header group in crosstab
dbr.crosstab.header.col - Predefine the 2nd level cross-tabulation header columns defined in dbr.crosstab.header - Group crosstable column values by adding another header level - Define a corsstab header tooltip based on value the crosstab data

Header levels

dbr.hdr - Set header level in a query
dbr.hdr.options - Do not hide repeating headers


dbr.accordion - Organize report elements with accordions
dbr.accordion.close - Marks the end of an accordion
dbr.accordion.class - Define your own accordion-style with a class - Define your own accordion-style
dbr.columnfilter - Add a filter to a column
dbr.column.filter - Add a client-side filter for a column (an alias for dbr.columnfilter)
dbr.column.title - Define the title for a column in cases where the content of the column is dynamic
dbr.collapse - Collapse selected columns to make a more compact view
dbr.collapse.template - Use template for collapsed data
dbr.colsort - Alias for dbr.sortcol - Show database results side by side - Change compare behavior
dbr.divify - Use DIV's instead of tables in the output - Add additional header row to group columns
dbr.keepwithnext - Makes next element to be placed side by side with the current one
dbr.lockcolumns - Lock leftmost columns when resultset does not fit into the screen
dbr.no_data - Define a placeholder for queries that do not return any data
dbr.nosort - Disable sorting on specified columns - Make parameter input visible in the report
dbr.pageview - Show a row from the database in a page view
dbr.refresh - Make the report automatically refresh itself at a given interval or just once if no parameters are given
dbr.resultset.options - Allows combining multiple result sets by skipping header/footer
dbr.rownum - myDBR replaces the command with the row number in the result set
dbr.rownum.set - Initialize the rownum-value - Disable/enable search & export for a given result set
dbr.scrollable - Make result set scrollable with a fixed number of rows
dbr.sort - Set initial sorting order
dbr.sortcol - Sort a column-based value from another column
dbr.sortmethod - Override the default sort method
dbr.sortorder - Override the default initial sort order. The default is 'intelligent'
dbr.sort.remember - Remember the user's sort order
dbr.header.tooltip - Define tooltip for the header
dbr.toggle - Set columns/rows togglable
dbr.tooltip - Define the cell's tooltip
dbr.pager - Attach the pager component to a table report - Organize report elements with tabs - Define your own tab style with class - Mark the tab element as closed - Switch to the next unpopulated tab - Set's the default tab by name or by tab order number (0=first, 1=second) - Define your own tab style
dbr.localization - Override the default localization


dbr.chart - Create a chart from the following result set
dbr.chart.color - Set chart colors
dbr.chart.options - Specify chart options
dbr.chart.gv.option - Specify GraphViz chart options - Defines the default style for the object
dbr.chart.gv.node - Defines the individual node style
dbr.chart.gv.cluster - Defines the individual cluster style
dbr.chart.gv.engine - Selects the layout engine
dbr.chart.gv.renderer_formatter - Selects the renderer and optional formatter for the engine overriding the default ones, for example cairo:cairo
dbr.chart.gv.preprocess - Preprocess the gv file
dbr.chart.gv.cmdoptions - Pass options to renderer command

Linked reports - Create a link to another report
dbr.url - Create a link to an external URL
dbr.button - Create a button containing a link
dbr.list - Create a list containing a link to a report
dbr.embed_object - Create a placeholder or a popup window for the linked report's content
dbr.selectlist - Create a select list for linked reports
dbr.searchable - Create a search field to get dynamic content

Editable reports

dbr.editable - Prepares a column so it is in-place editable
dbr.upload - Upload a file to the server's filesystem
dbr.upload.options - Set an upload option
dbr.selectable - Convert an ID column to a selectable row to be used with a report linked button
dbr.selectable.selected - Preselect selectable rows by passing the ID value as a parameter

Passing HTML into the page

dbr.html - Pass HTML directly into the report
dbr.purehtml - Same as dbr.html, kept for compatibility
dbr.html: - Include HTML into a string
dbr.purehtml: - Same as dbr.html:, kept for compatibility
dbr.javascript - Include Javascript code in the report
dbr.css - Include CSS definitions in the report
dbr.head - Include tags into HTML head part
dbr.file - Include a HTML file into the report


dbr.template - Defines a template being used for the subsequent result set
dbr.template.header - Declares the header's result set
dbr.template.footer - Declares the footer's result set

Running total

dbr.running_total - Calculate running total for a column

Import commands

dbr.import.prepare - Before the import is done, this preparation report is run
dbr.import.finish - After the import is finished, this report is run
dbr.import - This procedure is called for each imported row
dbr.import.options - Set import options

Export commands

dbr.export.options - Set export option
dbr.wkhtmltopdf - Pass command line parameters to wkhtmltopdf command
dbr.calc.excel - Define an Excel native formula for a column
dbr.blob - Read file from the database

Remote calls to other myDBR servers

dbr.remote.prepare - Defines the server to be called, call to be made and local table to receive the results. Required, needs to be called before '' - Executes the defined remote call and runs a local report to handle the results. Required.
dbr.remote.options - Allows setting extra options for transfer. The option includes turning off the certificate check on the remote server. Optional and needs to be called before 'dbr.remote.prepare'.

Google Maps extension

dbr.googlemaps - Display Google Maps mashup
dbr.googlemaps.heatmap - Use Google Maps Heatmap layer
dbr.googlemaps.link_in_title - Whether to show single linked report in the title or in the marker
dbr.googlemaps.polyline - Draw a polyline between the points
dbr.googlemaps.route - Draw route between the points
dbr.googlemaps.kml - Include KML-file into the maps
dbr.googlemaps.geojson - Include GeoJSON-file into the maps

OpenStreetMap extension

dbr.openstreetmap - Show map
dbr.openstreetmap.heatmap - Use heat layer
dbr.openstreetmap.tiles - Use alternative tiles on top of a map
dbr.openstreetmap.geojson - Include GeoJSON-file into the maps
dbr.openstreetmap.polygon - Add polygons to the map

Mail extension

dbr.mail - Send mail
dbr.mail.sender - Provide sender address in the report instead of using the one from the settings (user/extension_init.php)
dbr.mail.recipient - Add multiple recipients to the mail to be sent
dbr.record - Record report output for mail delivery or to be used with a template
dbr.mail.attach - Add attachment to mail
dbr.mail.notify_successful_mail - Disable the "Mail sent" message
dbr.mail.smtp.user - Use alternate SMTP user/password
dbr.mail.smtp.server - Use alternate SMTP server
dbr.mail.smtp.authentication.type - Select SMTP authentication (default LOGIN)
dbr.mail.smtp.nlmt.realm - Realm for NTLM authentication type
dbr.mail.smtp.nlmt.workstation - Workstation for NTLM authentication type
dbr.mail.encoding - Set the mail encoding ("8bit", "7bit", "binary", "base64" and "quoted-printable")
dbr.mail.debug - Set debug on to get verbose error messages (1=debug on,0=debug off)
dbr.mail.log.proc - Define a procedure which will log the mail actions.
dbr.mail.nobr.html - Do no convert linefeeds to line breaks in HTML mail
dbr.mail.header_file - Override the default mail header file with your own. The file location is based on user/

Push Notification extension

dbr.push - Send a push message
dbr.push.sender - Choose another sender than the one defined in $mydbr_push init
dbr.push.option - Set a service-specific option
dbr.push.notify_successful_push - Disable the "Push message sent" message
dbr.push.log.proc - Log the push message activity to database
dbr.push.debug - Show status for each message sent

eChart extension

dbr.echart - Create an extended chart
dbr.echart.color - Select colors for the chart - Select category names
dbr.echart.bubble_scale - Scale bubble chart axis

d3 extension

dbr.d3 - Create a d3 object
dbr.d3.sankey_format - Format the Sankey tooltips
dbr.d3.zoom - Zoom the chord diagram when data has long texts

SMS extension

dbr.sms - Send SMS

Organization chart extension - Display organization chart - Add CSS class to HTML format organization node - Set node sizes - Set node width for individual node - Set node height for individual node - Define 'a'-node positioning - Disable chart animation - Set ability to toggle sub-charts on/off with the option of saving the status to database - Defined node's initial toggle state 1=toggled, 0=open - Add a tooltip to the node - Allow reorganization by moving subtrees around - Allow dropping nodes on top of each other - Add a target to the node

Barcode extension

dbr.barcode - Show the barcode

QR code extension

dbr.qrcode - Show the QR code

ip2location extension

dbr.ip2location - Get IP location
dbr.ip2location.language - Maxmind can return names in different languages. If you wish to use other than English (code = 'en'), see supported languages from MaxMind