Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 434
  • Last Modified:

Calendar view, current date?

I have a calendar view, its first column contains a multi-value field, so a document can appear on several dates. There is another field with date values (TestDates), it indicates when a special test on a certain date has been performed.

Formulas:
    Col 1, hidden, internal column name _XDates:
        XDates
    Col 6, show icon:
        @If(__XDates=TestDates; 82; 0)

In a categorized view, one can obtain the current category using some Notes hanky-panky, but that seems not possible in a calendar view. Does anybody have a trick to obtain the currently displayed date in a view, so not @Today but something like @ThisDate? Undocumented features are equally welcome!

Sjef

PS The loot will either be awarded those with a solution, or to those who say considerably more than just a mere "Can't do that".
0
Sjef Bosman
Asked:
Sjef Bosman
1 Solution
 
mshogrenCommented:
I am happy to try my hand at this one.  I have never considered thsi problem before and wonder if you could tell me what Notes hanky-panky you use to get the category in case that knowledge helps trigger something in my head that might help with your current calendar problem.
0
 
Sjef BosmanGroupware ConsultantAuthor Commented:
Ah, I'd be happy to show you some question about that, but I'd have to look it up and EE's search mechanism is updated once a year (prove me wrong guys!)...

Found it, see this question:
    http:Q_21820532.html "Multiple values in view issue"

I think the same approach won't work here, but I must admit I haven't tried yet. If you want to give it a try, you have my full cooperation!
0
 
Sjef BosmanGroupware ConsultantAuthor Commented:
Got it! Thanks for the push!

With just about the same mechanism as in the question I posted. What's VERY important: the columns 1 AND 6 have to be multi-value, and have to be set to "Show multiple values as separate entries. The icon-formula is now:
    dates:= @Text(_XDates; "S0D0");
    vdates:= @Text(TestDates; "S0D0");
    AB:= @Replace(@Replace(dates; vdates; "82"); dates; @Explode("0"+@Repeat(";0";@Elements(datum));";"));
    @TextToNumber(AB)

The formula effectively replaces a matching date with a tick-icon (82) and all the others with no-iron (0).
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
Steve KnightIT ConsultancyCommented:
Smart, hadn't tried it in calendar view but as you know had it working great in standard view!

Didn't you say 'can't be done' when I asked the above Q BTW :-)

Adding to code snippets db...

Steve
0
 
Sjef BosmanGroupware ConsultantAuthor Commented:
Yeah, yeah, rub it in... :S

I would have imagined some special functionality in categorized views only, but now it seems to work for all columns with "Show multiple values as separate entries", providing these columns all have the same number of elements as a cell value.

Now for the next challenge: I want to add one date to the TestDates, so one more tick-icon will be displayed. I think I can work that out, or else you will see a new question.
0
 
DarthModCommented:
PAQed with points refunded (250)

DarthMod
Community Support Moderator
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now