Preventing additional dates from appearing in view

I have an annoying issue that I can’t seem to resolve.I have a view the displays calendar entries in a regular (ie non-calendar view) list, and it is supposed to show only next week entries.

The problem that I have is that if I have a document with multiple dates in the date field, for example 7/4/2005 and 8/5/2005, the 8/5 date will show in the view along with the 7/4/2005 (which should appear since it is next week), even though it is more than a month away.

There has to be a way to prevent that other date from appearing in this summary view. I do not want to enter single documents for events that are repetitive!

The view has columns with the fields that show dates, and another column with the title of the event

Thanks for any pointers you may have!

Cynthia

Subject: Preventing additional dates from appearing in view

You can use @Transform in a view column to get rid of the extra dates.

Subject: RE: Preventing additional dates from appearing in view

This is just what I was looking for, it looks so simple to use…but I am getting an error.I have the following formula in the column

@Transform(daterequested;“x”;@If(((x >= @Today ) & (x <= @Adjust(@Today;0;0;7;0;0;0)));x;@Nothing))

But the column in the view displays an error: Incorrect data type for operator or @function: text expected.

I can’t see where text is being expected. Any ideas are greatly appreciated…

Cynthia

Subject: RE: Preventing additional dates from appearing in view

I used your identical formula with a list of dates in daterequested, and it worked fine. I also tried it with a text list as input and an empty string, which both failed, but with a different error message from what you got. So I don’t know what your problem is. Have you checked the column programmatic name to see whether it has the same value as some other column?

Incidentally, you know this column formula will give you poor performance in the view, right? The index must be created from scratch each time the view is opened.

Subject: RE: Preventing additional dates from appearing in view

Hi Andre, thanks for the reply. I am just getting back to this problem. I checked the column programmatic name and the value is unique.

I noticed two things today. One is that if I opened and saved the document, the error went away but it would reapear as soon as I refreshed the view. If I refresh it again the date will appear, refresh it again and get the error message…This is for a message with two dates. More dates simply give an error all the time

Is the @today messing it up? I do know that having an @today is inefficient in a view, but I can’t think of another way to get the documents that have a daterequested in the next 7 days. If you have a better idea, I am all ears.

BTW, I have a couple of documents that have only one date in daterequested and those work fine.

How do you have the column that has this formula formatted. Multivalue? Separated by?

Thanks for your help

Cynthia

Subject: RE: Preventing additional dates from appearing in view

Both selection formulas and column formulas are writable in LotusScript and Java in Notes and Domino 6. The efficient thing to do is run a nighly agent that changes the column and selection formula using a literal value (like [07/06/2005]) instead of @Today.