Manage Learn to apply best practices and optimize your operations.

Spotting late dates in a view

This tip describes how to identify a date past due in a view.

You Can View User Feedback To This Tip

Recently I was asked to develop a project management tool. A major part was a view showing project progress, in particular any "late running" projects.

Projects were broken down into milestones (which had target dates), so each project document had the possibility of having many target dates.

My problem was how to spot a late project from many dates, within a view?

I started off with a massive @if statement, comparing dates and complete fields, which caused all sorts of problems + I knew it was extremely inefficient.. I finally came up with the following code:

TDay:=@today; @if(Dates="";0;TDay>@texttotime(Dates);84;83);

The code creates a list of valid dates (Dates), removes the whitespace/blank entries and compares it to todays date. If one or more fail (ie. date is in the past), the down thumb icon is shown.


  • This might be a good tip, if we knew the structure before jumping into the code. How many date fields are there, what are their names, or are all dates store in one field... we need to know what the options are before we get thrown into the solution. That was very confusing and to test it on my end, I don't know how many fields to put on the form, named what and what data type they are. Need more details.—Ruth Inman

Dig Deeper on Domino Resources - Part 4

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...