How to change format of column in data list builder

Confluence User - 31 Mar, 2021

Hi,

New to joget here. I tried retrieving data from the database using JDBC Datalist Database Binder and use sql sum function and it returns the value with a decimal point. I've tried using REPLACE, TRUNCATE, and ROUND function and the results remain the same. Are there any ways to remove decimal points in the datalist?

datalists

1


31 Mar, 2021
confluenceUser
1
confluenceUser

Try using CONVERT(column,CHAR) in your MySQL query, for example:

SELECT
     , c_num1 AS num1
     , c_num2 AS num2
     , CONVERT(SUM(c_num1+c_num2),CHAR) AS total
FROM
       app_fd_form
RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print