Solved

Calendar view, current date?

Posted on 2006-06-12
7
425 Views
Last Modified: 2013-12-18
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
Comment
Question by:Sjef Bosman
7 Comments
 
LVL 15

Expert Comment

by:mshogren
Comment Utility
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
 
LVL 46

Author Comment

by:Sjef Bosman
Comment Utility
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
 
LVL 46

Author Comment

by:Sjef Bosman
Comment Utility
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
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 43

Expert Comment

by:Steve Knight
Comment Utility
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
 
LVL 46

Author Comment

by:Sjef Bosman
Comment Utility
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
 
LVL 1

Accepted Solution

by:
DarthMod earned 0 total points
Comment Utility
PAQed with points refunded (250)

DarthMod
Community Support Moderator
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now