Hi Bob.
There is some way in chronoforms 6 to set read_data group by days?
eg in mysql: GROUP BY
DAY(Access.created)
thanks in advance for your help.
There is some way in chronoforms 6 to set read_data group by days?
eg in mysql: GROUP BY
DAY(Access.created)
thanks in advance for your help.
Hi peppelaria ,
Does the Group Fields box in the Read Data action do what you need?
Bob
Does the Group Fields box in the Read Data action do what you need?
Bob
no, it doesn’t.
the string “DAY(Access.created)“ is treated like a table field and the query returns an error because that field doesn’t exists
the string “DAY(Access.created)“ is treated like a table field and the query returns an error because that field doesn’t exists
Hi Bob. coffee coming soon. Have a nice day
Anyone have a working solution for this?
Put
DAY(Access.created):model.namein the "Fields to retrieve", and "model.name" in the group by
thanks helyhatman, it works like a charm,
but wath if i need to get something lyke this: "SELECT DATE_FORMAT(`Sale.created`, "%Y-%m-%d") AS `Sale.created`"?
but wath if i need to get something lyke this: "SELECT DATE_FORMAT(`Sale.created`, "%Y-%m-%d") AS `Sale.created`"?
EDIT: everything needs to have a space separating it
DATE_FORMAT(Sale.created , "%Y-%m-%d"):Sale.created
DATE_FORMAT(Sale.created , "%Y-%m-%d"):Sale.created
great. it works.
thank you very mutch
thank you very mutch
This topic is locked and no more replies can be posted.