Disclaimer: This page was translated using automation resources in order to provide content in your language more quickly. As a result, it may contain grammatical errors and similar issues. If the content is not useful in this state, you can access the original content in Brazilian Portuguese at the bottom of the page, as well as provide feedback on this translation.

This manual is under construction. Therefore, some links may direct to pages with content under development.

UTL0002 - Data Source

This screen aims to configure the Data Source where SQL queries will be registered, to feed the dashboard objects in the Simple Viewer system. The registration on this screen depends on the settings with the database connection.

What can you do?

Initial Data Source Registration

How to register the data source
Check Basic Information tab
  1. To register a new data source, access SimpleFarm > Utilities Menu > Common > Data Source (UTL0002).
  2. Start the registration by clicking the Add button, located at the bottom of the screen, and fill in the following fields:
    • Code;
    • Name: data source name;
    • Comment : optional;
    • Group ;
    • Type;
    • Connection String;
    • Query ;
    • If necessary, insert the Variables in brackets [NOMEVARIAVEL];
  3. If necessary, check Available for:
    • Chart ;
    • Cube ;
    • List ;
    • Map ;
    • Integration ;
  4. Click on Save to register the data source.
How to check data source fields

In this tab, the titles that will be displayed for each field are configured, as well as translations to other languages, when necessary. For value fields, it is possible to define aggregators, as applicable. In addition, this tab allows the creation of calculated fields, whose logic follows the same principles of SQL language.

Important

Ensure that the SQL query is well-structured to guarantee that the data is correctly extracted and presented. Proper aggregation and adequate syntax are essential for the good functioning of the generated objects.

How to check query performance

The SQL query must be optimized to ensure system performance. Inadequate performance can negatively affect data loading. Check the attention points:

  • Comments in the middle of the query are not allowed;
  • For queries that return values, aggregation must be configured (e.g.: sum, avg, min, max);
  • The field should only be changed if additional formulas need to be applied.
How to check the filter

In the Filters tab, it is possible to define whether each filter will be mandatory or optional. By clicking on a filter, a window will be opened with the option to check the mandatory requirement. If checked, the filter must be filled in for the dashboard to work correctly, and this setting will be visible in the filter list itself. In addition, there is the possibility of using fixed filters and dynamic filters, with dynamic filters being configured through variables, accessed on the Variable screen, in common.

Este artigo ajudou você?