|
|
|
|
|
|
|
|
|
|
|
|
|
|
Build a Domino pop-up calendar widget using formula language (continued)
Line 10 checks the nDate variable and compares its month to the one in tMonth which is the one we want. If they are not the same, an empty cell with class "otherMonth" gets created. If they do match, then an HTML table cell is created with either the class "thisMonth" or "today". You can use these in CSS style sheets to customize the look and behaviour of the calendar.
Line 11 checks to see if the current slot number (n) is divisible by 7, meaning we've created table cells for a whole week. If it is, an end of table row and a new table row HTML tags are added to start a new week.
Finally, in lines 12 and 13, the values from the loop are added to a list which is then printed out to screen. When the calendar field is displayed in a browser, it will create a calendar for whatever month is specified in the DateVal field.
That's it. Save everything and try clicking on the Calendar link on while viewing "MyForm" in a browser. You should see a small version of calpop appear.
Daniel Koffler is a freelance writer and IT consultant based in Montreal, Canada. Daniel can be reached at dkoffler@users.sourceforge.net
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Advertisement --
Learn Notes and Domino 8 at your place and pace!
Learn Notes and Domino in your office and/or home! TLCC's highly acclaimed distance learning courses for users, developers, and admins will enhance your career and your resume.
The many included activities and demos will make you a pro! Expert instructor help is a click away.
Click here to try a FREE demo course!! |
-- Advertisement --
Mark your calendar for in-depth Lotus training, May 12-14, Boston
Join experts and peers May 12-14 in Boston for educational and networking events that deliver real-world Lotus training so you can increase productivity and efficiency in your company, advance your skills, and squeeze the most from your current environment. One registration gets you into THE VIEW's Admin2010 and Lotus Developer2010.
Register by April 10 to save $200. |
|
|
|
|
|
|
|
|
|
|