Difference between revisions of "Reports"

From SmartWiki
Jump to: navigation, search
Line 610: Line 610:
 
|}
 
|}
 
* The [[URL]]s for reports that are Internet-enabled are automatically generated. Simply copy and paste them to use it.
 
* The [[URL]]s for reports that are Internet-enabled are automatically generated. Simply copy and paste them to use it.
 +
 +
4. Click '''Save. '''
 +
 +
* '''Note: '''You can always tell whether a report is properly Internet-enabled if it has a '''black dot '''in the '''Internet-Enabled '''column on the main reports list view, found from '''Tools > Reports. '''

Revision as of 14:33, 2 July 2019


Construction warning.png Please note that this page is currently under construction. There is more information to come.


Overview

The SmartSimple reporting system, an integral part of our business operating system, allows you to manipulate both the contents and the presentation of data contained in one or more of the SmartSimple tables. Unlike a table, reports present only the data that meets the criteria you define - they can also aggregate and display summarized data information. 

You can utilize the functionality of reports in your SmartSimple instance without additionally buying or installing software. Reports are completely created from within the standard interface and are viewable from any browser, as well as via Microsoft Word or Excel with the appropriate SmartSimple plug-in. 

Benefits of Reports: 

  • Display data from one or more tables in one place
  • Group-aggregate data from one or more table
  • Display the grouped data in a variety of different types of graphs
  • Export the data into any file format that you wish OR 
  • Designate Internet-enabling so that the reports can be linked to public websites 
  • Group reports together as tabs, allowing similar topic-based reports to be found together
  • Copy and modify built-in reports as the basis of your customized reports 

User Role-based security defines who can view the reports that you create from your system.

 You must be a user with SysAdmin privileges in order to create reports from your SmartSimple system. 

Report Components

You will encounter three major components in the reporting system: 

  • Reports that are created from underlying SmartSimple database tables - you can connect the required tables to generate a report
  • Graphs that you create yourself. These are based on existing reports and are used to display the report in a graphic format. 
  • Dashboards that will display multiple charts on a single page

The following diagram shows the relationship between these three types of entities:

Reporting-componets-800w (2).jpg

Charts

Charts are used to display the information from a report in an easy-to-read “graphic” format.

  • You can create pie charts, bar charts, line charts, and table-type charts.
  • You can create more than one chart type of each report and when displaying a report, choose from any of the charts associated with the report.
  • Generally, you will choose a “summary” type report as the basis for the chart, as that type of information is more meaningful when displayed in this manner.
 A user can only access the chart if they have permission to see the report that the chart is based on. 

user can only access the chart if they have permission to see the report the chart is based on.

Dashboards

A dashboard is a single page view of a set of charts.

  • When the user displays the dashboard, each report referenced by each chart is processed, and the current data is displayed in charts that are displayed on the dashboard.
  • You can create multiple dashboards to show different sets of key indicators.
  • A user can indicate that a specific dashboard should be their home page within SmartSimple, giving them an immediate view of key information from the system when they first log in.
 Each dashboard needs to be permissioned for the roles that you wish to be able to see the dashboard. 

Tables

In order to make the creation of reports a little simpler, some of the SmartSimple tables are presented in a denormalized format when using the Report Builder.

For example, the contact record does not contain the company name; these two tables are linked at the database level through the CompanyID field. So contact table does not contain the company name field but rather a key field that links to the company table.

But when you use the contact table within the Report Builder it will display a field Company Name. This means that you can use this field without needing to link the two tables together.

Configuration - Essentials

Permissioning Reports

Access to the report-creation features is controlled by the role-based manager permission. So you must be in a role associated with this feature in order to create reports.

 Users who will only view reports do not need these manager permissions. 

You must be a member of a role with manager permission for Reports if you wish to do any of the following actions: 

  • Create new reports.
  • Edit or copy existing reports.
  • Delete existing reports, either individual or as batch deletes.

To permission which roles will have the ability to create, edit, and delete reports in your system, follow these steps: 

1. Click on the 9-square menu icon on the top right of your page.

052919 MenuIcon.png 

2. Under the heading Configuration, select Roles and Security. 

Roles and security from menu.png

3. Under the subheading System Security Settings, select the hyperlink System Feature Permissions. 

4. Click into the tab labelled Action Permission. 

Action permission.png

5. Scroll down until you see the field labelled Reports - Manager. Click into the text box in order to select from a drop-down of user roles that will have manager permissions for reports. 

Reports manager permissions.png
  • You can also specifically permission which roles will have the ability to Export Data from reports. 

6. Click Save at the bottom of the screen when you are done. 

Accessing Reports

A user who is permissioned for report use can access the reports available to them. Follow these steps to access reports in your SmartSimple system: 

1. Click the 9-square menu icon on the top right of your page.

052919 MenuIcon.png 

2. Under the heading Tools, select Reports. 

Report.png

The list view of available system reports will be displayed. 

Report list.png 

The report window consists of the following sections along the top row of tabs:

  • Reports: This displays a list of your system's current reports that have been made available to you. 
  • Global Report TemplateThis tab is used to define a customized HTML template for all reports.
  • DashboardsThis tab is used to create a dashboard to display a set of charts.
  • Web Access Statistics: This tab displays statistics on how often your web-enabled reports have been accessed.
  • Deleted Reports: This tab displays a list of any deleted reports in your system. 

You can filter the results of your report list by choosing a Category of reports - this can be found at the top right of your page. Any reports that have not been associated with a category will appear in the Uncategorized category option. Clicking into the Category field will allow a drop-down list of available report categories to appear: 

Reports category.png

You can also search through reports manually by using the Search bar on the top right, just above the list view. If your results exceed the maximum amount of records displayed on a page, toggle between different pages by selecting the next or back arrow icons on the top right. The count of records that you are viewing out of the total will always be displayed next to these buttons. Any reports that have been Internet-enabled will have a black dot under the Internet Enabled column to indicate so. 

Report List Columns

Each report on the main list of reports will have buttons to the left of it that have several different functions.

Buttons for reports.png

The functions are described in the table below: 

Run Report NewRunReportIcon2.png Clicking this icon will cause the system to run the report and display the results to you.
Custom Export ReportCustomExportIcon.png Clicking this icon will allow you to configure the information that you wish to export from your SmartSimple report to external applications such as MS Word, MS Excel, or Quickbooks. 
Export File ReportFileExportIcon.png Clicking this icon will allow you to export your SmartSimple report to external applications in a standard file format such as MS Word, MS Excel, PDF, HTML or more. There is less configurability available with the Export File function than the Custom Export function. 
Edit Report ReportEditIcon2.png Click this icon in order to open the edit options for this report. If the report is a built-in report, you will be able to edit the report to see how it is constructed, but any modifications you make will not be saved to the built-in report. In order to customize a report you will have to make a copy of the built-in report and make further edits with the copy. 
  • Any reports that are not enabled for certain features - for example, for File Export or Custom Export - will have the corresponding button icon greyed out next to the report name. 
  • In order to enable these features, simply click the pencil icon next to the report name, go to the appropriate tab of Custom or File Export, ensure that it is both enabled and set up to how you want it, then click Save. When you return to the list view of reports, the corresponding icon should now be clickable. 

The columns on the list view of reports are described in the following table: 

Report Number (#) The index of the report on the page. Remember this page length, like all others, is set by your Personal Settings - Number of Records Per Page.
Report Name The name assigned to the report. An asterisk (*) is displayed in front of the Name field of any built-in reports.The narrative description of the report.
Report Description The narrative description for the purpose of the report. 
Roles

This will display a list of roles that will be able to display the report. You must add the required roles to this list in order to make it available to other users (to learn how to, see Reports#Report Tabs - the View Report field is under the Security tab.

Last Updated This will display a date and time stamp for when the report was last updated.
Modified By This will display the name of who made the last modifications to this report.
Created By This will display the name of who created the report initially.
Internet Enabled  If the report is not Internet Enabled, the column will be blank. If the report is Internet Enabled, the column will have a black dot.
Report ID See Determining the reportid

Remember: Any user will only be able to see the reports and functions that they have permissions to. If a user is permissioned to be able to create new reports, they will see a + icon on the top left that allows them to create a new report. 

Creating a Basic Report

Learn how to create a basic report by following the steps below. Prior to these steps, you must first be in the Reports list view (read the Accessing Reports section if you need help). 

  • Note: If you have many Custom Fields, access the reports tab within the application you are creating the report from. If you are creating a report from a particular , access the reports tab from that UTA.

1. Click the icon on the top left of the screen to Create a New Report.

2. The new report window is displayed: 

New report pag.png

The fields on the new report page are described below: 

Report ID The unique ID assigned to the report, shown as a read-only field.
Builder Type

When creating a report, users will have the option to choose between the Neo or Classic Report-Builder. 

Neo - See for now, Report Builder (Neo), a SmartSimple upgrade to the Reports tool that is meant to be more user-friendly and intuitive to use. 

Classic - Selecting the Classic builder type will enable a new tab called Recordsets to appear in the top row of tabs. This tab is used to select which tables are required in the report, the relationships between tables, and the primary table. The primary table determines how the data will be joined when multiple tables are selected. 

Name The name of the report will be displayed to any users who are accessing the report.
Description The narrative description of the purpose of the report.
Category The category you wish you associate with this report. Entering a unique category name will consequently create a new entry in the Category field in the main Reports list view. Entering an existing category name will display this report in the existing category.
Lock Do not build rebuild report - Toggling on this option will indicate that the report should not be rebuilt. In the case of a custom Report Template, it will set off an alert when the Report Builder button is clicked. 

The second tab following the General settings provides Advanced settings for how the report will be displayed, its external accesses, its caching options and more. For more information about the Advanced configuration, please see our Advanced Settings of Reports section. 

Editing Reports

After clicking the Save button, the page will reload and save your report into the system. You will now be in the position to edit this report with more detailed configuration. 

Editing reports.png

The Builder Type will no longer be modifiable once you have saved your new report. Furthermore, the main report information will now include the Created By, Last Modified, and Last Modified By auto-populated fields. 

You will also be able to see the following new buttons at the bottom of the page: Save, Save As, Delete, and Preview. 

  • If you have not yet selected any table(s) nor fields from tables in your Report Builder, you will not be able to see a preview of the report.
  • The Save As button will enable a pop-up to appear that prompts you to enter the new name of your report, making a copy of this report under a new name. 

To the right of the page will be the Notes tab that allows you to make new notes or see any existing notes that have been made on your report. 

Report Tabs

If you selected Classic Builder Type for this report, the following tabs will appear after the General settings tab. 

Recordsets This tab allows you to attach recordsets to your reports. 
Advanced This tab allows you to configure the advanced settings of your report. 
Security This tab allows you to permission the security of your report. A field labelled Allow View Report will enable you to select which roles have permission to see this report in your system. 
Sub-Reports This tab allows you to build a "nested" report within the main report.
File Export This tab allows you to the default export settings of the report.
Custom Export This tab allows you to create custom export settings for the report.
Scheduled Export This tab allows you to schedule an export for a later date, which can be set to either File Export or Custom Export.
Report Template This tab allows you to control the layout and formatting of your report.
Charts This tab allows you to create one or more charts to be associated with the report.

Each Classic Report Builder tab will soon have its own subsection within this article for further explanation, if needed.

  • Note: In Report Builder Neo, the only difference is that you will not see a Sub-Reports tab. 

Adding a Table to a Report

The first step for constructing a report is always to add the tables required to the report on the Recordsets tab (right after the General tab). 

1. As as an example, in the Recordsets tab, scroll down and set the Primary table option for the Contacts table.

Tble.png

Selecting the primary table automatically selects that table for the report.

2. Click the Save button at the bottom of the page. 

  • For more information about Inner and Outer Join, see this article - however, the default when you add a table to a report is Inner Join, and the Outer Join functionality is not necessary until you want to add multiple tables to a report. 

Launching the Report Builder

Once you have Saved your new report with the Builder Type - Classic selected, a four square icon will appear at the top left of your page above the report name.

Report builder icon.png

Clicking on this icon will launch a modal window that displays the Classic Report Builder. 

Classic report builder.png

Classic Report Builder - Column Settings

Each column will consist of the basic construction of the report by selecting the required fields and setting the way that the field should be used within the report.

Each report column consists of the following settings: 

Column Heading The text that you wish to appear above each column in the report. Initially, this will be set to the same name as the field, but you can edit the text if required. If you wish to change the text back to the Field name, then click the button to the right of the column heading. Reps6.png
Recordset This refers to the recordset that has been selected in the Recordsets tab. If multiple recordsets have been selected to build your report, you can select which one you want to use as a table for your report from the drop-down when you click into the field box. 
Type

When a specific recordset has been selected, the Type field box will have a drop-down of corresponding types. Depending on what recordset it is, you can select the category, role, template, or type from which your field will be derived.

Ex: If the Recordset you selected was Contacts, the corresponding Type would be from the available system roles.

Field The field you wish to display in this column. All of the fields from all selected tables will be displayed in the field list; fields are sorted alphabetically by table name and by field name.
Date/Time Translation Used to "extract" the day, month, week or year from a date field for comparative purposes.
Group By Used in summary reports to group by, sum, count, or calculate the average of the field. Also provides Total Group options for configuration of report groupings and easier retrieval of total rows. 
Sort By Determines the sort order of the report results, either Ascending or Descending.
Align Determines the alignment of the column header and column values. Options are Left (default), Center and Right. 
Calculated Field This option allows you to build out further complexity - for example, mathematical operators and concatenation. This field also supports MySQL syntax.
Show

Checking this option will show the specific field data. An example of when you might not want to enable Show is if you wish to produce a list of salaries over $100,000 a year and use the salary as criteria, but not show the result. 

Left/Right Move Arrow Icons - These icons are displayed on the left and right of each Show check box and can be used to change the column order. 

Show Total Checking this option will display the total of all the data accumulated from this column. 
Criteria  Here you can set the criteria for which records to be displayed in a report. There are 5 columns available for setting criteria, each separated by the OR operator. 
  • Note: If you want to add more columns, click on the More Columns button at the bottom of the page to add 25 more columns. 
  • There is a fixed limit of 50 columns for the Classic Report Builder. If more columns are required, you will need to use two reports linked together - see Merge Sub-Reports
  • Tip: The browser Mozilla Firefox will load the Report Builder more efficiently than Internet Explorer. 

At the bottom of the page are a row of buttons: 

Report builder classic buttons.png
Build Query

This button is used to create your report based on the fields and criteria that you have selected in the Report Builder. When this button is clicked, the Report Builder will close and you will be brought back to the Edit Report page. 

  • The Report Template will also be rebuilt when this button is clicked; if custom work has been done on the Report Template prior to building this query, make sure to save your changes elsewhere first. 
Clear All This button will clear all of the fields including calculated fields and specified criteria in the Report Builder. You will be able to start again from scratch.
More Columns This button will add another 25 columns to the Report Builder to a maximum of 50 for any new Classic report. 

Classic Report Builder Help Panel

At the very bottom of the Classic Report Builder interface is the Help Panel with an upwards arrow that will open up help options when clicked. 

Report builder classic help.png 

The Help menu consists of 6 tabs, each with helpful information corresponding to that tab's topic. 

Overview This tab provides descriptions for all the components of the top panel of the Report Builder, including column fields and their descriptions.
Comparison Operators

This tab will describe how to set the basic criteria on logical tests.

Wildcard and Like Operators

This tab describes how to set partial criteria. 

Special SmartSimple Criteria Values This tab describes how to set criteria from user prompts and user attributes (such as user and company identifiers).
Date Comparison

This tab describes how to set date- and time-based data. 

Calculated Field  This tab describes valid mathematical expressions and functions, string functions, and logical statements for user in the Calculated Field section of the Report Builder.

Report Builder Neo - Column Settings

If your new report has been saved under Builder Type - Neo, then the Report Builder that is launched will be the Neo rather than the Classic version. 

The Report Builder Neo was introduced as an upgrade to our Classic Report Builder; it provides the following benefits: 

  • A more intuitive interface with higher degree of configurability 
  • Saving time and effort in creating targeted, impactful reports

The primary upgrade in Neo is that it streamlines the process of finding, selecting, and setting up your information. 

The Report Builder Neo can only be used to create new reports; any existing reports with the Classic Report Builder will not be able to switch to Neo. 

1. Click on the four-square icon on the top left of your page to launch the Report Builder Neo. 

Report builder icon.png 

2. The Report Builder Neo window will open up as a modal window: 

Report builder new.png

It will have the following functions and fields: 

Number of Columns You can add or subtract the number of columns you need for your report up to a maximum of 100. 
Dataset

Click the + icon on the top left of the Report Builder in order to add the primary dataset you will be using for your report. 

  • The primary dataset will always be easily identifiable as once it appears on the left-hand dataset list in the Report Builder, it will appear with a star next to its name. 
  • You can create as many primary and secondary datasets as required to personalize each report you make. 
Field The field you wish to display in this column. 
Column Heading The text that you wish to appear above each column in the report. 
Date/Time

Used to "extract" the day, month, week or year from a date field for comparative purposes. The options are shown in the screenshot below: 

Report neo date time.png
Group Options

Used in summary reports to group by sum, count, or calculate the average of the field. Also provides Total Group Options for configuration of report groupings and easier retrieval of total rows. The options are shown in the screenshot below: 

Report neo group by.png
Sort By Determines the sort order of the reports, either Ascending or Descending.
Alignment Determines the alignment of the column headings and the column values - Left (default), Center, and Right. 
Formula This field allows you to build out further complexity such as mathematical operators, concatenation, and supports MySQL syntax. 
Display

Checking this option will allow you to display the data from this column in your report; if you do not want it to be displayed, but rather only set as a criteria, you can uncheck this option and the column data will be hidden from the resulting report. 

Example: You may wish to produce a list of salaries over $100,00 a year and use the salary as a criteria, but do not want to show these results. 

Show Total Checking this option will display the total of all the data accumulated from that column. 
Criteria Here, you can set the criteria for which records to be displayed in a report. There are 5 columns available for setting criteria, each separated by the OR operator.
  • The Report Builder Neo has the Drag and Drop functionality to re-order the display view of columns in a report and to input fields into the appropriate columns. 
  • The Report Builder will automatically note which base dataset your columns relate to. 

You can also use the Search functionality in the dataset field picker in order to narrow down your fieldset to those which include matches to a word search. Simply click on the Fields tab, and insert your search into the search box: 

Report builder neo search field box.png 

Report Builder Neo Help Panel

See the Classic Report Builder Help Panel

Configuration - Advanced

Advanced Settings of Reports

The second tab on the New Report page is labelled Advanced. This tab will display all the advanced settings that can be configured for the report.

Advanced report functions.png

The options for the Advanced tab are described in the table below:

Criteria Text Text used to prompt the user when they are required to enter some criteria values. This setting will also specify the introduction text, as well as labels for Custom Fields. Labels are defined by a hyphen (-) preceding the label (ex: "-First Name") and are applied to the criteria fields in the other that they are entered.
View Mode

List ViewSelecting this option will allow all the records to appear in a list.

Single Record View - Selecting this option means that each report will be displayed one at a time. 

External Access Internet EnabledToggling on this function will generate a URL that allows the report to be accessed over the internet without the need for a user to log into the system. This setting is useful for creating public reports. 
OData Connector

Toggling on this option will use Open Data Protocol to simplify data-sharing across disparate applications in enterprise, Cloud, and mobile devices.

  • This feature will only appear for Neo Reports; it is not available for new Classic Reports. 
Disable Global Template Toggling on this option will disable the Global Report Template (a personalization of HTML header/footer for all system-based reports) for this specific report. 
Interactive View Display

None - 

Display Link to Interactive View - 

Open Report Directly in Interactive View -

Total Label Provide a name for the Total column. See Using Total Group Options in Report Builder for more./ 
Other Options

Enable Translation - Allows report headers and associated charts to use translation options in the system's Language Library.

Enable Straight Join - See Straight Join.

Enable Pivot View - Enables pivot functionality; this means that when grouping by two different columns, you now have the option to perform an aggregate function and pivot the grouped columns across the x-/y-axis. 

This example report is using "Pivot View" with the data grouped by "type" and "status". The user can choose which group options they wish to view via the drop down.

Merge Sub-Reports - See Merge Sub-Reports

No Name URL Parameter - See Enable URL Parameter Encryption

Hide Custom Export - This will hide the ability for a user to Custom Export this report.

Hide File Export - This will hide the ability for a user to File Export this report. 

Report and Field Caching

Scrolling further down the Advanced Settings tab will allow you to modify the functionality of caching for reports and field. 

Report more advanced.png

Report Caching

Caching Options: Enable - Enabling caching is a useful function that can help improve loading time and reduce the processing load on the server. This function is best for complex reports and reports that are accessed regularly. 

Caching Options: Cache By User - Caching by user must be used for when a report includes criteria to filter based on the user that opens the report (i.e. =@userid@). 

Cache Life Span - Enter an appropriate cache life span in minutes. Therefore, rather than re-creating the report each time it is run, caching stores the results for the duration specified in this field. The first time a report is viewed, it will be created by querying the database and live data will be displayed. Anyone viewing the report after this and within the life span will see a snapshot of the report from the cache. 

  • Changes to underlying data will not be reflected in the report during the Cache Life Span. 
  • The report will be updated only once the life span has expired. 
  • In general, Sub-Reports should not be cached, though the parent report can be cached if appropriate. 

Field Caching

(Scheduled Reports)

Frequency - The frequency of field caching (what is also referred to as Scheduled Reports) can be set as follows:

  • Disabled: Default setting; indicates a report will not run on an automated schedule
  • Daily: The report will run every morning. 
  • Weekly: The report will run every Sunday.
  • Monthly: The report will run on the first of every month. 

Identifier Column - Select a report column from those available in the Report Builder that will uniquely identify the record to update. This is the match field as it indicates the field that allows the system to know which record to update. 

Column Field Value Column - Select a report column from those available in the Report Builder for the data that you wish to store; this acts as a source field as the setting represents the values that the system will use to update the Custom Field specified in the next field. 

Custom Field - Select a dataset-specific Custom Field to where the dataset will be stored. This is the destination field as the custom field will be updated each time that the report is run. 

Last Run - This will display a date and time stamp of the last time that the field caching/scheduled report was run. 

Internet-Enabling Reports

The ability to Internet Enable a report is useful because it will make that report public - it generates a URL relating to that report that can then be linked to your website, or sent as a link in an email or email broadcast or other communication method. 

  • The person who clicks the link does not need to have login access to your SmartSimple system. 
  • Once the link is clicked, the report is processed and the results are displayed accordingly. 
The following steps are for reports made with Report Builder Neo, although the Classic Report Builder undergoes a very similar process for Internet Enabling reports. 

1. Once you have the Reports section of your system open (see Accessing Reports if needed), click on the pencil icon next to a specific report name to Edit it. 

2. Click on the second tab labelled Advanced

3. Look for the field External Access. Toggle on the Internet Enabled feature. 

Report internet enable.png
Access Key If you want to password-protect your Internet-enabled report, write in a customized access key that the user must have in order to see the results of the report, even if they have access to the URL. 
URL This is the conventional URL that will display the results of the report on the browser that the user is using, as a web page.
Export URL This URL, when inputted into a browser, will enable the report to be downloaded onto the receiver's computer, and can be opened in a number of different file formats that they can select from.
Export URL-XML This URL, when inputted into a browser, will enable the report to be downloaded onto the receiver's computer in an XML format. 
  • The URLs for reports that are Internet-enabled are automatically generated. Simply copy and paste them to use it.

4. Click Save. 

  • Note: You can always tell whether a report is properly Internet-enabled if it has a black dot in the Internet-Enabled column on the main reports list view, found from Tools > Reports.