Using queries in

Filter records by date in ChronoForms.

Overview

The issue occurred because the Data Source field in the Table view settings was not configured to match the Read Data element.
Ensure the Data Source field matches the name of the Read Data element, then use a WHERE statement in that element to specify the date column and range.

Answered
ChronoForms v8
ja jabale 14 Feb, 2025
Who can help me?
I would like to use queries in ChronoMyAdmin to show, for example, the activities in a certain month (for example from March 1, 2025 to March 31, 2025)
13-02-2025 16-17-31.png
screenshot
Max_admin Max_admin 14 Feb, 2025

This is Chronoforms8, if you need to limit the records date range then you can use a Where statement in Read Data:

Using queries in  image 1

where "doopdatum" is the name of the Date column

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
ja jabale 17 Feb, 2025

Dear Max

Thank you very much for your quick response.Unfortunately, your suggestion does not yield the desired result.

Every time I enter a condition in the WHERE STATEMENT, I don't get a desired selection; all records are displayed.

What am I doing wrong?

screenshot_Where_Statement.png
screenshot_Result.png
Max_admin Max_admin 17 Feb, 2025

what are your Table view settings ? please show a screenshot of it

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
ja jabale 17 Feb, 2025
Answer

Dear Max

I found my mistake!

I had not filled in the Data Source field in the Table view settings and had entered the name of the table that I am querying in the "Table name" field.

Apparently the name next to "Read Data" (in the example "read_data2") must match what is entered in the "Data Source" field.

Thanks for your tip to view the Table view settings.

tabel_view_settings.png
result_01.png
Max_admin Max_admin 17 Feb, 2025

Yes, having the Data Source should make it work as you need

so is it working well now ?

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
ja jabale 17 Feb, 2025
1 Likes

Dear Max

Sure!
It now works exactly as I wanted it to.
Thanks to all developers!!!

This topic is locked and no more replies can be posted.