| Add meta tag via themes |
XML |
This example snippet adds the following meta tag:
<meta name="Description" content="Content"> |
Per Henrik Lausten |
Feb 24, 2012 |
| Compare dates |
JavaScript (Server) |
This simple snippet shows how to compare dates using the java.util.Date compareTo method. The exampl |
Per Henrik Lausten |
Apr 30, 2012 |
| Controlling the HTTP response status code in XPages |
JavaScript (Server) |
In an XAgent you can set the HTTP response status code using the .setStatus() method on the response |
Per Henrik Lausten |
Nov 17, 2011 |
| Add content to inputRichText control (CKEditor) |
JavaScript (Server) |
This small snippet of code add rich text content to an inputRichText control. The trick is to use th |
Per Henrik Lausten |
Dec 5, 2012 |
| Recycle function for SSJS |
JavaScript (Server) |
Use this to recyce Notes objects in SSJS. Example:
var db = sessionAsSigner.getDatabase(database.ge |
Per Henrik Lausten |
Jun 21, 2013 |
| Get MIME entity as text |
Java |
This function returns the contents of a MIME entity as text. It uses the printMIME function which is |
Per Henrik Lausten |
Oct 12, 2013 |
| OneUI 2.1 print stylesheet |
Cascaded Style Sheets |
This snippet of CSS is a simpe print stylesheet for OneUI 2.1. It removes the banner, titlebar, left |
Per Henrik Lausten |
Oct 2, 2012 |
| Using a customConverter to remove font formatting from rich text |
XPages |
This example of a customConverter uses regular expression to remove all occurences of HTML font tags |
Per Henrik Lausten |
Mar 27, 2012 |
| Load a default facet for a Dynamic Content control client-side |
JavaScript (Client) |
When using a Dynamic Content control, you can set a property to load a default facet. However, if yo |
Per Henrik Lausten |
Nov 22, 2012 |
| Test for a dirty form (simulate enableModifiedFlag) |
JavaScript (Client) |
This emulates the server-side enableModifiedFlag property and the related modifiedMessage property a |
Per Henrik Lausten |
Sep 8, 2012 |
| Sorting a NotesDocumentCollection by multiple field values |
LotusScript |
Also available on http://per.lausten.dk/blog/2006/10/sorting-notesdocumentcollection-by.html |
Per Henrik Lausten |
Dec 9, 2011 |
| Print MIME entities including MIME children |
Java |
A funtion to print MIME entities and children. Highly inspired by this export logic http://www.nsfto |
Per Henrik Lausten |
Oct 12, 2013 |
| Number converters for a theme |
Themes |
Inspired by Sven Hasselbachs answer on Stack Overflow (http://stackoverflow.com/questions/14715649/s |
Per Henrik Lausten |
Feb 8, 2013 |
| Display warning message if Internet Explorer uses Compatibility View mode |
XPages |
Add this custom control to e.g. the top of your front page (or every page) and it will display a war |
Per Henrik Lausten |
Oct 19, 2012 |
| Optimized partial refresh with support for server-side actions |
XPages |
Here's an example of using the optimized partial refresh for an eventhandler:
<xp:button id="butto |
Per Henrik Lausten |
Sep 20, 2014 |