Solved

Calendar view, current date?

Posted on 2006-06-12
7
427 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
ID: 16889439
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
ID: 16889582
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
ID: 16889780
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
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
LVL 43

Expert Comment

by:Steve Knight
ID: 16891762
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
ID: 16892285
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
ID: 17100811
PAQed with points refunded (250)

DarthMod
Community Support Moderator
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

815 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

8 Experts available now in Live!

Get 1:1 Help Now