| May 23, 2013 |
Create Iframe Using Computed Text |
XPages |
Sure, you can use regular HTML to create an iframe, but this gives you a lot more flexibility as the |
Michael McGarel |
| May 9, 2013 |
ListPicker dataProvider for Value Picker |
Java |
Pass a List or Set into the dataProvider. Say we have a bean myBean with a method getKeyTree() that |
Paul S Withers |
| May 9, 2013 |
View Panel Simulator |
XPages |
Put the code in a custom control. Add a control definition for Text.Blank to a theme (themes are XML |
Paul S Withers |
| May 7, 2013 |
Use TreeSet to get keyword values, avoiding duplicates and sorting |
Java |
Gets values from the second column of the Keywords view, passing in a key. Designed as a static meth |
Paul S Withers |
| Apr 26, 2013 |
Date field (dojo) with popup to choose Day+Month+Year, Month+Year, Month or Year |
XPages |
Xpage to show how to assign a spesific popupClass to the dateTimeHelper.
The example shows 4 differ |
Petter Kjeilen |
| Apr 15, 2013 |
XRPL - is*Phase() API |
XPages |
Custom application code to introspect XPages Request Processing Lifecycle execution complete with a |
Tony McGuckin |
| Apr 15, 2013 |
Manually fire attached event |
JavaScript (Client) |
Through the way client side events are added through XPages it's a bit harder to call them from clie |
Thimo Jansen |
| Apr 11, 2013 |
Render a D3JS Bar chart - Part 2 |
JavaScript (Server) |
Extract JSON from a categorized view to be used to render a D3JS graphic. You need a categorized vie |
Stephan H. Wissel |
| Apr 11, 2013 |
Render a D3JS Bar chart - Part 1 |
JavaScript (Client) |
You need a xp:DIV tag with the ID chartSurface (or alter the script) and parameters in the custom co |
Stephan H. Wissel |
| Mar 28, 2013 |
Generic BreadCrumbBean |
Java |
The genericBreadCrumb snippets allows you to track the path of a user in Application.
Follwo the in |
Christian Güdemann |
| Mar 2, 2013 |
Go previous and next in Pager control using left and right arrow keys |
XPages |
This is a simple JavaScript code snippet that allows you to move to previous / next pages in a Pager |
Naveen Maurya |
| Feb 28, 2013 |
Download all attachments (Java) |
Java |
I always loved the feature of “Download all attachments” in Gmail. So I decided we should have this |
Naveen Maurya |
| Feb 22, 2013 |
Scope Variable visualizer |
XPages |
Custom control to visualize all scoped variables on every XPage. Useful for debugging SSJS. |
Fernando Levi |
| Feb 21, 2013 |
Simple front-end XPage for OpenLog |
XPages |
This is a simple web front-end for OpenLog. It lets you open all non-hidden views (filtered in xp:na |
Tommy Valand |
| Feb 21, 2013 |
DebugHelper |
Java |
A helper class, for debugging the usage of memory |
David Schiffer |
| Feb 21, 2013 |
getInstance() in a Java bean |
Java |
Easy way to get a reference to a Managed Bean from within Java code. As explained in more detail her |
Thimo Jansen |
| Feb 19, 2013 |
XAgent in beforeRenderResponse with cache headers |
XPages |
Using the beforeRenderResponse gives you more control over the Expires header. In my case in the aft |
Thimo Jansen |
| Feb 14, 2013 |
Create Entry in Activity Stream from XPages via the Social SDK and OAuth2 |
Java |
Create Entry in Activity Stream in IBM Conenctions from XPages via the IBM Social Business Toolkit S |
Niklas Heidloff |
| Feb 13, 2013 |
Pure Java version of DbLookup & DbColumn, with cache, sort and unique |
Java |
This is a completely rewritten version of the SSJS equivalent in pure Java, but without the 64k limi |
F. Kranenburg |
| Feb 13, 2013 |
Display and Download any files from the server file system or from a mapped drive |
Java |
This code will display all files from any directory including subfolders from the server in a repeat |
Thomas Adrian |
| Feb 13, 2013 |
Fix TypeAhead on dijit.Dialog |
JavaScript (Client) |
Fixes type ahead control on dialog box created manually using dijit.Dialog (not by extlib, but for e |
Mariusz Jakubowski |
| Feb 12, 2013 |
A non-closeable xe:dialog |
XPages |
This is one simple way to prevent the dialog from closing. |
F. Kranenburg |
| Feb 8, 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 6, 2013 |
Update Field |
LotusScript |
Interactively updates field value of selected documents. Accepts string numeric, date and multiple |
Fernando Levi |
| Feb 6, 2013 |
Show UNID |
LotusScript |
Small agent that shows the selected document UNID. Useful when you need to paste this UNID somewhere |
Fernando Levi |
| Jan 28, 2013 |
Link to attachments in Rich Text Fields from XPages and XPinC |
JavaScript (Server) |
The complete, correct format how to link to Attachments inside Rich Text Fields from XPages In Clien |
Arne Menting |
| Jan 27, 2013 |
Reverse Engineering Notes Apps Sample Code |
Java |
These methods were used in the IBM Connection 2013 1453 Master Class on analyzing Notes applications |
Nathan T Freeman |
| Jan 23, 2013 |
Make floating Banner, Title Bar and Place Bar in Application Layout control of Extension Library |
Cascaded Style Sheets |
The idea here is to make the Banner, Title Bar and Place Bar in Application Layout control of Extens |
Naveen Maurya |
| Jan 23, 2013 |
Cache Prevention for Dojo xhr requests |
JavaScript (Client) |
This small snippet prevents caching of all Dojo's xhr request (which includes Partial Refreshs)
Just |
Sven Hasselbach |
| Jan 23, 2013 |
Image Download JavaAgent - URL to Local Drive |
Java |
Use this sample to download images from URL based on similarly available names (having digit(s) at t |
Köll S Cherizard |
| Jan 22, 2013 |
Combo Box Filler via SelectItems (Java and CSV File) |
Java |
Use this bad boy to grab CSV file records into your combo box on your Xpages, pretty much in the sam |
Köll S Cherizard |
| Jan 22, 2013 |
Combo Box via SelectItems (Xpages) |
XPages |
Use this XSnippet in conjunction with the Java code submitted earlier to return list of files contai |
Köll S Cherizard |
| Jan 22, 2013 |
Combo Box Filler via SelectItems (Java) |
Java |
Use this XSnippet in your Xpages form to load a list obtained from your C\ Drive, having a list of s |
Köll S Cherizard |
| Jan 22, 2013 |
isSmartphone function |
XPages |
Use this simple function in XPages Mobile applications if you want to determine if the client device |
Paul Hannan |
| Jan 22, 2013 |
Bacon Ipsum |
Java |
derived from http://loremipsum.sourceforge.net/
|
Ulrich Krause |
| Jan 17, 2013 |
OneUI On-The-Fly Theme Changer |
XPages |
This is a simple theme changer for your XPages application that works on the fly. Works best if you |
Paul Hannan |
| Jan 15, 2013 |
Make data table row clickable using dojo |
JavaScript (Client) |
Arguments:
@dataTable : Id of the data table
Prerequisite : Make first column of the data table as |
Rashid Azar |
| Jan 9, 2013 |
session expire / ACL controll phaselistener |
Java |
this phase listener contains two fucntional perspectives
1. checks if a session has expired, if posi |
weihang chen |
| Dec 30, 2012 |
get a list of available .properties / .theme files in an application |
Java |
Sample usage:
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core |
Ulrich Krause |
| Dec 11, 2012 |
jQuery Selector in XPages |
JavaScript (Client) |
|
Rashid Azar |
| Dec 11, 2012 |
Make data table row clickable |
JavaScript (Client) |
|
Rashid Azar |
| Dec 5, 2012 |
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 |
| Nov 28, 2012 |
Set vertical alignment of all table rows |
Themes |
This snippets adds a vertical-align:top style to all table rows. |
Mark Leusink |
| Nov 28, 2012 |
viewPanelHelper - To keep selection of documents in a view |
XPages |
This snippet helps to keep the selection of documents in a view panel. Works with pagination and cat |
Sven Hasselbach |
| Nov 26, 2012 |
DB2 Records Into Xpages Form |
XPages |
This XSnippet can be used to Retrieve DB2 Data into Xpages form. Information that can be used to se |
Köll S Cherizard |
| Nov 26, 2012 |
DB2 Records Into Xpages Backing Bean |
Java |
Use this XSnippet in conjunction with the JavaBean submitted earlier to retrieve records into Xpages |
Köll S Cherizard |
| Nov 26, 2012 |
DB2 Records Into Xpages JavaBean |
Java |
Use previous connector class for DB2 and run this XSnippet via Xpages form to collect resultset. |
Köll S Cherizard |
| Nov 22, 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 20, 2012 |
Set the active menu option in an (Extension Library) Navigator control |
JavaScript (Client) |
If you use the Navigator control from the Extension Library in combination with the Dynamic Content |
Mark Leusink |
| Nov 12, 2012 |
Phase listener to set IE to edge or X-UA-Compatible value |
Java |
//this is put in the Faces config
<lifecycle>
<phase-listener>com.refchem.app.UACompatibleHeade |
mark t hughes |
| Nov 7, 2012 |
Remove Properties from a Design that stop Elements from being updated during a Design Replace |
LotusScript |
I've seen many environments where Production Databases have Design Elements that are prohibited from |
John V Jardin |
| Nov 4, 2012 |
DB2 Run from LotusScript into Notes Form |
LotusScript |
Use Lotus Connector, Lotus Connector Session, Lotus Connector FieldList to grab data from DB2 and su |
Köll S Cherizard |
| Nov 4, 2012 |
DB2 Run from JavaAgent |
Java |
Create a DB2 database, configure a DataSource, connect to the back-end, add records and retrieve DB2 |
Köll S Cherizard |
| Nov 4, 2012 |
DB2 Run from Xpages Button |
XPages |
You have a connector class and a JavaBean rigged to submit and retrieve data from DB2 database (DOMI |
Köll S Cherizard |
| Nov 4, 2012 |
DB2 Run from Java and LotusScript |
Java |
Use this XSnippet to run LotusScript code, in turn, connect to DB2 and retrieve data into Notes View |
Köll S Cherizard |
| Oct 31, 2012 |
Find the Domino HTTPS port from the NAB |
Java |
This can be used, for example, when a page wants to redirect to another page which is HTTPS enabled |
Philippe Riand |
| Oct 29, 2012 |
Drag-and-drop attachment links from file download control to Operating System to download |
XPages |
This script block modifies the download links in file download control so that if the user drags-n-d |
Naveen Maurya |
| Oct 19, 2012 |
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 |
Check / Uncheck all check boxes in check box group |
XPages |
Assuming that the name of your check box group is "checkBoxGroup" this code snippet will check / unc |
Naveen Maurya |
| Oct 18, 2012 |
Create, Read and Delete cookies |
JavaScript (Client) |
Here are 3 methods for handling own cookies for an application. I think they are quite useful.
I di |
Matthias Nicklisch |
| Oct 18, 2012 |
Encode & Decode Base 64 |
JavaScript (Client) |
Those are 2 scripts which I found quite useful. I wasn't sure about the dojo methods because it says |
Matthias Nicklisch |
| Oct 6, 2012 |
JavaAgent to search CSV File for appLog.nsf Docs |
Java |
Use this JavaAgent sample as guide to search CSV File for appLog.nsf documents added prior and creat |
Köll S Cherizard |
| Oct 6, 2012 |
LotusScript code to fetch other error types from the appLog.nsf |
LotusScript |
Use this LotusScript code to fetch other error types from the appLog.nsf database, create a CSV file |
Köll S Cherizard |
| Oct 6, 2012 |
LotusScript code to fetch HTTP appLog.nsf (CSV) |
LotusScript |
Use this LotusScript code to fetch HTTP errors from the appLog.nsf database, create a CSV file with |
Köll S Cherizard |
| Oct 6, 2012 |
Java and Xpage run LS Agents (CSV Create) |
Java |
Java code working in conjunction with Xpage supplied earlier to run LS Agents, use this XSnippet to |
Köll S Cherizard |
| Oct 6, 2012 |
Xpage to run LS Agents (Log.NSF) |
XPages |
Copy and paste this XSnippet to your environment, run two LS Agents against Log(applog.nsf) document |
Köll S Cherizard |
| Oct 4, 2012 |
Email Validator |
JavaScript (Server) |
Posting this here for quick access. I take no credit for the regexp as they were found on the intern |
Thomas Adrian |
| Oct 2, 2012 |
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 |
| Sep 30, 2012 |
DynamicViewCustomizer |
Java |
This is a dynamic view customizer class intended for use with the customizerBean property of the Ext |
Jesse Gallagher |
| Sep 29, 2012 |
Simple StopWatch |
Java |
|
Ulrich Krause |
| Sep 24, 2012 |
Dynamic View Panel Customizer Bean |
Java |
This is an example of base code that can be used for the Extension Libraries Dynamic View Panel Cust |
Paul T. Calhoun |
| Sep 23, 2012 |
userIs... VariableResolver to Check Roles |
Java |
VariableResolvers perform checks quickest for reusable code. The UserBean gives access to all roles |
Paul S Withers |
| Sep 23, 2012 |
Display Stackoverflow entries |
JavaScript (Client) |
With just a few lines of code, you can display entries from Stackoverflow on an XPage in your custom |
Ulrich Krause |
| Sep 21, 2012 |
Enhanced Error Messages control |
XPages |
Shows messages for any control with validation errors.
Shows link on label if present, message if n |
Tommy Valand |
| Sep 20, 2012 |
Access datasources of custom controls |
JavaScript (Server) |
This function let's you access a datasource contained by a custom control from everywhere on your XP |
Sven Hasselbach |
| Sep 20, 2012 |
recycleObject - Helper for recycling of objects |
Java |
Helper method for recycling of Domino objects.
Here is a small code example how to use:
try{
Se |
Sven Hasselbach |
| Sep 18, 2012 |
Wrap The Items In A xe:djextListTextBox |
Cascaded Style Sheets |
More info( and screenshots ) here http://www.eknori.de/2012-09-18/wrap-the-items-in-a/ |
Ulrich Krause |
| Sep 16, 2012 |
Search view using database search |
JavaScript (Server) |
use this snippet to search a view using the database search syntax. by using the view.getSelectionFo |
Thomas Adrian |
| Sep 14, 2012 |
Keeping your XPage session alive – without keepSessionAlive |
JavaScript (Client) |
There appears to be an issue keeping XPage sessions alive – even with the ExtLib keepSessionAlive co |
mark roden |
| Sep 11, 2012 |
Use Regex with JavaScript split() |
JavaScript (Server) |
I you have a string that, for whatever reason, is concatenated using different delimiters, you can |
Ulrich Krause |
| Sep 9, 2012 |
Simple example of Windows native library declaration and usage in XPages |
Java |
From your XPage you can now make a call to the class in a button
var beep:de.eknori.c.Beeper = new |
Ulrich Krause |
| Sep 8, 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 3, 2012 |
Xpages Admin Only Search Feature |
XPages |
Use this XSnippet in conjunction with the Java search feature added earlier to fetch user security i |
Köll S Cherizard |
| Sep 3, 2012 |
Java Search Feature: Read View data into Xpage |
Java |
Hide/show form control(s) on the Xpages form based on user access to SecurityAccessView element... |
Köll S Cherizard |
| Sep 3, 2012 |
User ACL Read via Xpages Link Control |
XPages |
Copy and paste this XSnippet to your environment, areas of interest have been highlighted for your c |
Köll S Cherizard |
| Sep 3, 2012 |
ACL Read/Render Form Controls |
Java |
Use prior Login JavaBean and Xpages samples as guide, build a connection to a Lotus Notes Domino Dat |
Köll S Cherizard |
| Aug 29, 2012 |
Rich Text Editor - NSF Custom Plugin Extension |
XPages |
Example of providing a custom toolbar option c/w custom command handler and icon for the Rich Text E |
Tony McGuckin |
| Aug 23, 2012 |
Get current method name |
Java |
Sometimes it can be useful to print the name of the current method to the console in case of an erro |
Ulrich Krause |
| Aug 21, 2012 |
Single Blank Space |
XPages |
The above code will allow you to quickly and easily add a single blank space into any XPage |
Paul S Withers |
| Aug 15, 2012 |
You Have x Message(s) On The Page |
XPages |
Rather than (or as well as) notifying the user of all error messages, this code will tell the user h |
Paul S Withers |
| Aug 14, 2012 |
Redirect to another database on the server |
JavaScript (Server) |
|
Michael McGarel |
| Aug 13, 2012 |
Send a serverside redirect to a new window |
XPages |
The view.postScript() method allows you to send (clientside) JavaScript to the browser after an even |
Mark Leusink |
| Aug 9, 2012 |
Store a Date in a DateTime field (and cleanup afterwards) |
Java |
Domino/ XWork is very sensitive about recycling objects. Use this utility function to store a java.u |
Mark Leusink |
| Jul 31, 2012 |
Repeat with Header and Footer facets |
XPages |
Simple Repeat example demonstrating use of the Header and Footer facets to provide column header ele |
Tony McGuckin |
| Jul 31, 2012 |
View Panel Column CSJS Partial Refresh issuing POST request with params and immediate option |
XPages |
Simple example demonstrating use of the CSJS XSP.partialRefreshPost function to issue a POST request |
Tony McGuckin |
| Jul 31, 2012 |
View Panel Column CSJS Partial Refresh issuing GET request with params |
XPages |
Simple example demonstrating use of the CSJS XSP.partialRefreshGet function to issue a GET request c |
Tony McGuckin |
| Jul 6, 2012 |
Use HTML5 elements in Internet Explorer 6-8 |
XML |
Put this in your theme's <resources> section to get IE 6-8 to accept HTML5 elements.
For a full ex |
Thimo Jansen |
| Jul 6, 2012 |
Just Simple PickList Dialog |
XPages |
Simple PickList Dialog
Sample Screenshot : http://www.bestcoder.net/wp-content/uploads/2012/07/Pick |
Ferhat BULUT |
| Jul 5, 2012 |
Function to create a random, complex password |
LotusScript |
This is not my work, just want to share it with you.
Source: http://www.tek-tips.com/faqs.cfm?fid=5 |
Matthias Nicklisch |
| Jun 29, 2012 |
Hide Pager for one page views |
JavaScript (Server) |
Add call to this function in rendered property of a pager to hide it when only 1 page is available. |
Mariusz Jakubowski |