Hey,
I would like to Programm a week overview to show all todos and projects in that period.
So from Monday to Sunday.
Has someone an idea what is the best approach for that?
Best
Andi
Hey,
I would like to Programm a week overview to show all todos and projects in that period.
So from Monday to Sunday.
Has someone an idea what is the best approach for that?
Best
Andi
Assuming that:
then…
Now+MOD(8-WEEKDAY(Now),7)-6-HOUR(Now)/24-MINUTE(Now)/1440-SECOND(Now)/86400
Monday + 7
Are you asking why the 16th wasn’t considered part of “this week”?
I’d say that’s because the Math formula for “Last Monday” doesn’t account for milliseconds.
You can test that by using the following in a JavaScript column and compare the result you get for Date and Last Monday. You might find they are not quite exactly the same.
return new Date(p1).getTime();
One way to “fix” that would be to convert everything to integers and then use numerical comparisions.
Thanks for answer, Darren!
How do you think, this setup will work correctly?
Or maybe, it much more slowly, compared to your setup?
I don’t know. What are you using there, the Format Date plugin?
I don’t use that, but if it works for you then that should be fine.
Yes, this is Format Date plugin.
Just i see your setup and another expert liked it, but it not working for me and you had explained why. So as i understand, your setup is wrong for this question and must be little bit changed if need for work.
Maybe i wrong understanding something, because my poor English.
I trying to understand why you suggesting so many calculation, maybe some hidden reason.
Sorry if my posts is unreasonable!
Well, it was a contrived example, and it will only fail for dates where the time is less than one second after midnight. So for the purpose of the original question, it should work fine. But to make it rock solid, I would add a couple of math columns to convert both “Last Monday” and “Date” to integers, and then adjust the if-then-else column to use those, ie:
So the end solution would look something like this:
Personal preference, mostly. I don’t trust any of the Date Plugins, and so I avoid them and use Date Math instead. Even if it means a few extra columns.
But it is very common, because it generated by Date picker component.
Thanks! Now I clear about!
Actually yes, you’re right.
For some reason I had it in my head that the date picker would give the time of submission with a date. But that’s not the case at all. The date picker gives midnight on the selected date.
So yes, I take back what I said. The original solution that I gave is unreliable.
@Darren_Murphy
Thanks for you input.
I am not sure if it is 100% what I need. Cause in general I see with a data filter in the calendar already “just the events” which are relevant / upcoming. With your input I can then filter them to see which are during the next week / 7 days!
→ this is already very nice. My approach is to go one step further
My plan is / and thoughts are:
Thanks a lot for you input!
Andi
if date is before now then empty
if date is after (math now+7) then empty
else date
If you need per weekday column:
for Monday column:
if date is before now then empty
if date is after (math now+7) then empty
if math(weekday(date) is not 1 then empty
else date
for Tuesday column:
if date is before now then empty
if date is after (math now+7) then empty
if math(weekday(date) is not 2 then empty
else date
And so on
Thanks a lot. I am still not sure with a lot things:
Thanks a lot
Andi
Yes, there is definitely Now functionality in a Math column.
thats nice. And has someone an idea for the other questions?
Best
Andi
Hey, I am not sure if you can give me another advice. But I do not find a solution.
Here you see my “week overview” table.
In general it is nice. BUT the related todos which I have marked in the screenshot give a relation for all todos which has to be done during that week. Now I just have to filter that by the user … How can I do this? I did not find a solution yet… Normally I would do that in the frontend… But therefore I would need the user name in that week overview table and that does not work.
Do you have an idea?
Andi
this is how the frontend looks like. I think my main problem is, that I am searching for a visual approach like this, but it does not work.
I haven’t followed this thread, but if you already have that relation and use that as the source of an inline list, shouldn’t you be able to filter that by a column that stores something like the user’s email or rowID?
thanks. With this option i can integrate the todos yes… but NOT that they work with the design.
Do you have an idea?