Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

NameDescriptionScreens (Click to view)
Datasource
  • Using Data Binder
  • Default Datasource
  • Custom Datasource

Figure 2: SQL Chart Properties - Datasource

Data Binder

When Datasource is set to "Using Data Binder", this option will show up. Advance Form Data Binder has more flexible ways to build chart dataset using join, group and aggregate function. Please see Datalist Binder for available binder to use.

SQL Query

When Datasource is set to use any of the "Datasource", this option will show up. You use an SQL Query to produce the dataset required for the graph type. The first column in the dataset will be assumed for X-axis/label.

Example 1:The first column to be returned from the query must be a label (X-axis), followed by value columns for the Y-axis.

Code Block
titleExample
SELECT
    c_status asAS 'status',
    COUNT(c_status) asAS 'count' 
FROM
    app_fd_tix_tickets 
WHERE
    c_status IS NOT NULL 
GROUP BY
    c_status

Example 2:

Code Block
titleSQL
selectSELECT
    c.c_claimant,
    sumSUM( castCAST( replace(c.c_total, '$', '') asAS decimalDECIMAL(10, 2)) ) asAS 'total',
   avg AVG( castCAST( replace(c.c_total, '$', '') asAS decimalDECIMAL(10, 2)) ) asAS 'avg' 
FROM
   from app_fd_hr_expense_claim c group by 
GROUP BY
    c.c_claimant



Data Binder & Chart Data Mapping

...