Manage Learn to apply best practices and optimize your operations.

Create A Calendar Picker To A Form For 4.X

R5 users now can add the Calendar applet to view the current date in that
month, but for 4.x, they now can to this. How?

Create a layout and add the TIME field in it and call it StartDate. Ensure the
field is editable! Stick the formula in the field's programmers pane and save.

Click on Design/ Test Form to see it work in action!
@If(@IsNewDoc; ""; @Return(StartDateTime));

newDateTime := @Now;
minutes := @Minute(newDateTime);
seconds := 0 - @Second(newDateTime);

REM "adjust time to the next 15 minute interval";
FIELD StartDateTime := @If(minutes > 45; @Adjust(newDateTime; 0; 0; 0; 0; 60 -
minutes; seconds); minutes > 30; @Adjust(newDateTime; 0; 0; 0; 0; 45 - minutes;
seconds); minutes > 15; @Adjust(newDateTime; 0; 0; 0; 0; 30 - minutes;
seconds); minutes > 0; @Adjust(newDateTime; 0; 0; 0; 0; 15 - minutes; seconds);
@Adjust(newDateTime; 0; 0; 0; 0; 0; seconds));

MinuteDur := @GetProfileField("CalendarProfile"; "DefaultDuration");
MinuteDuration := @If( (MinuteDur <= 0) | (MinuteDur = ""); 60 ; MinuteDur);

FIELD EndDateTime := @Adjust(StartDateTime; 0; 0; 0; 0; MinuteDuration; 0);

StartDateTime

Dig Deeper on Lotus Notes Domino Administration Tools

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com'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 ...

SearchDataCenter

SearchContentManagement

Close