Help With Calendar

I have been trying to make an app to help me take care of this garden, and with help of ChatGPT, i’ve made a table for information on the plants, and in this first table I also created columns to calculate the next time i need to water the plants and fertilize, i wanted to introduce a calendar for me to know the days i need to do each task, but the calendar options on glide aren’t really good, can any1 help me plz?

What do you want to do exactly? What is your thoughts on this?

What have you done so far?

I think you should create separate rows for each task that you have for your garden. Is that an option for you?

I want my app to tell the user when they need to do a certain task, based on a “last day i watered/fertilized” mechanism, i’ll send screenshots along with this explanation. I have done almost everything I wanted, The Only thing i wanted to introduce was a calendar on which the tasks to do everyday would be listed, example: today is the 25th of february, i need to water the lettuce and carrots and fertilize the beetroots, and when I open my app I want it to show those tasks on today’s date, on a calendar.



I responded some1 else with more details, if u want to take a look…

So I assume you manually edit the date you last watered and fertilized every time you do it?

I think the only tricky thing here is you basically have 2 tasks in one row. I would construct a JSON object like this for each row:

{
"Task name": "Water plant X",
"Date": "Add date here"
},
{
"Task name": "Fertilize plant X",
"Date": "Add date here"
}

Then join all rows together to form a joined JSON, separated by a comma and a newline character.

Add a template column to wrap it inside square brackets.

[
J
]

With J being the template I show in the first step.

Then, add a new table, add a lot of rows, like 100, to cover just in case.

Follow the steps here to create a row index.

Then, you can use a query JSON column with JSONata to query out each element in that JSON array, using the index.

Use that table in your calendar component.

2 Likes

Thank u so much for the patience and all, but I just joined Glide so I don’t really know how to construct a JSON object for each row, and one for all rows joined together. Can u help me with that? Sorry for my lack of knowledge.

Here’s a copyable app.

1 Like

Thx for the help, it worked!

1 Like

Glad to have helped!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.