Create HTML mails in SSJS using MIME
See the description at the top of the class for a description on how to use this class or read this article on my blog:
http://linqed.eu/?p=45
JavaScript (Server)
Mark Leusink
Overall rating is 4.86 by 14 person(s)
You have to login first to use 'My Favorites' feature
15 user(s) has marked as favorite:
Eric McCormick
Eric Tomenga
Fredrik Norling
Gavin Luo
Gunawan T Wicaksono
Joacim Boive
Johan Sundin
Leonardo Bertelli LB Bertelli
martin meijer
Michele Malaguti
Mike R Kelly
Niklas Heidloff
Petter Kjeilen
Steve Pridemore
Venkat T Jagaduri
Added 2011-Dec-07
Standby Dialog Custom control
This version is tested and works with Domino 10
Add this to a custom control and add that to your xpages to get a standby dialog on every partial refresh
that takes more than 200 millisec. Prevents the user to be to fast, and get Xhr cancel dialogs.
Thanks for the help Serdar Başeğmez and Tim Tripcony
Version 3.2 Fixes a problem so IE 8 works again
Version 3.1b Fix for problem if ActiveElement is nothing
Version 3.1a Minor fix in the load once code for the hijack function
Version 3.1 adds load once check for the hijack function and also bugfixes for field focus
Version 3.0 adds scrolling problems when you do a partialrefresh and also selecting the previous selected field
Check out the new Bootstrap version
http://openntf.org/XSnippets.nsf/snippet.xsp?id=bootstrap-standby-dialog
XPages
Fredrik Norling
Overall rating is 5.00 by 14 person(s)
You have to login first to use 'My Favorites' feature
11 user(s) has marked as favorite:
Andrew Barickman
Eric McCormick
Farhan Azam
Fredrik Norling
Grégory DEVISE
Larry Helwig
Mikael Grevsten
Mike R Kelly
mitsuru katoh
P Solano
Tom MC Mennes
Added 2012-Jan-18
Download all attachments
I always loved the feature of “Download all attachments” in Gmail. So I decided we should have this option available in XPages also. Create an XPage with the code above and save it as say, "xDownloadAllAttachments.xsp". Now just call the XPage xDownloadAllAttachments by passing the document UNID in query string to it.
For e.g. http://// xDownloadAllAttachments.xsp? documentUNID=&zipFileName=
That’s it, you are done!
Parameters to query string
1. documentUNID – Universal ID of the document in which attachments are present. This is a mandatory parameter.
2. zipFileName – Name of zip file when the download box is shown to the user. This is optional and if this parameter is not specified then by default AllAttachments.zip name is taken.
Java version of the above code is available at: http://openntf.org/XSnippets.nsf/snippet.xsp?id=download-all-attachments-java
XPages
Naveen Maurya
Overall rating is 4.11 by 9 person(s)
You have to login first to use 'My Favorites' feature
6 user(s) has marked as favorite:
Dani Soft
Eric McCormick
Ferhat BULUT
F. Kranenburg
Grégory DEVISE
Gunnar Dyb
Added 2012-Mar-13
XPages Advanced Search Options
This snippet demonstrates the new options to modify Full Text Search results in Domino 8.5.3 in XPages. It contains two panels - 'dbindexed' and 'searchQueryView'.
The 'dbindexed' panel will only display if the database has been indexed for FTSearch and it's main function is to contain a search query. It then has other options to modify those search results. All of these options refresh the 'searchQueryView'.
The 'searchQueryView' contains an example of a viewPanel which will not work out of the box. The developer who uses this snippet will have to modify the Domino View Data source. This example uses a viewPanel, but the data source configuration will also work on a Repeat, Data Table or Data View.
XPages
Paul Hannan
Overall rating is 5.00 by 1 person(s)
You have to login first to use 'My Favorites' feature
1 user(s) has marked as favorite:
Ferhat BULUT
Added 2012-Jan-31
LtpaToken Generator for Multi-server SSO Configurations
This Java class generates a valid LtpaToken valid for any user name.
When using, you should sign the database with a user that is listed as 'Owner' or 'Administrator' in the SSO configuration. This version only supports Domino keys. Tokens imported from Websphere will not generate valid tokens. Since WAS token generation is not based on public API, it doesn't seem possible to do it without native libraries.
This class can be used for any customized login operations. You may specify any user with any name while creating the token.
UPDATE on 9th July, 2012:
- LMBCS encoding support has been added (see comments for details)
Java
Serdar Basegmez
Overall rating is 4.42 by 12 person(s)
You have to login first to use 'My Favorites' feature
6 user(s) has marked as favorite:
Eric N McCormick
Guglielmo Farina
Michele Malaguti
Serdar Basegmez
Steve Cochrane
Vikas Tiwari
Added 2012-May-26
Use @Transform to build JSON and consume the output in an XAgent
An FAST and easy way to build a complex JSON String / (Almost) No need to calculate at runtime.
Can be used i.e. in the xGrid project http://www.openntf.org/Internal/home.nsf/project.xsp?databaseName=CN=NotesOSS2/O=NotesOSS!!Projects\pmt.nsf&documentId=8147C9C5EC59C08E86257A0C006FD1F8&action=openDocument
JavaScript (Server)
Ulrich Krause
Overall rating is 4.67 by 6 person(s)
You have to login first to use 'My Favorites' feature
5 user(s) has marked as favorite:
Dani Soft
Dwain A Wuerfel
jimmy fan
Venkatesh Ramasamy
Vikas Tiwari
Added 2012-Jun-01
Custom Error Page c/w Cause and Stacktrace Information
Use this snippet to create a custom error XPage. Remember to set the Error Page in the Application Properties to point at your new custom error XPage.
If an exception occurs in your application, you'll see error output in the custom error page like this example:
An error has occurred:
com.ibm.xsp.exception.EvaluationExceptionEx: Error while executing JavaScript computed expression In the control : computedField7 At line 1, column 19 of: #{javascript:nonexistentObject.isDebugMode()}
com.ibm.xsp.binding.javascript.JavaScriptValueBinding.getValue(JavaScriptValueBinding.java:132)
javax.faces.component.UIOutput.getValue(UIOutput.java:159)
com.ibm.xsp.util.FacesUtil.convertValue(FacesUtil.java:1120)
com.ibm.xsp.renderkit.html_basic.OutputTextRenderer.encodeEnd(OutputTextRenderer.java:97)
com.ibm.xsp.renderkit.ReadOnlyAdapterRenderer.encodeEnd(ReadOnlyAdapterRenderer.java:180)
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:1005)
com.ibm.xsp.util.FacesUtil.renderComponent(FacesUtil.java:856)
com.ibm.xsp.util.FacesUtil.renderComponent(FacesUtil.java:851)
com.ibm.xsp.util.FacesUtil.renderComponent(FacesUtil.java:851)
com.ibm.xsp.util.FacesUtil.renderComponent(FacesUtil.java:851)
com.ibm.xsp.component.UIViewRootEx._renderView(UIViewRootEx.java:1317)
com.ibm.xsp.component.UIViewRootEx.renderView(UIViewRootEx.java:1255)
com.ibm.xsp.application.ViewHandlerExImpl.doRender(ViewHandlerExImpl.java:641)
com.ibm.xsp.application.ViewHandlerExImpl._renderView(ViewHandlerExImpl.java:320)
com.ibm.xsp.application.ViewHandlerExImpl.renderView(ViewHandlerExImpl.java:335)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:103)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:210)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:120)
com.ibm.xsp.controller.FacesControllerImpl.render(FacesControllerImpl.java:264)
com.ibm.xsp.webapp.FacesServlet.serviceView(FacesServlet.java:248)
com.ibm.xsp.webapp.FacesServletEx.serviceView(FacesServletEx.java:205)
com.ibm.xsp.webapp.FacesServlet.service(FacesServlet.java:160)
com.ibm.xsp.webapp.FacesServletEx.service(FacesServletEx.java:138)
com.ibm.xsp.webapp.DesignerFacesServlet.service(DesignerFacesServlet.java:103)
com.ibm.designer.runtime.domino.adapter.ComponentModule.invokeServlet(ComponentModule.java:576)
com.ibm.domino.xsp.module.nsf.NSFComponentModule.invokeServlet(NSFComponentModule.java:1281)
com.ibm.designer.runtime.domino.adapter.ComponentModule$AdapterInvoker.invokeServlet(ComponentModule.java:847)
com.ibm.designer.runtime.domino.adapter.ComponentModule$ServletInvoker.doService(ComponentModule.java:796)
com.ibm.designer.runtime.domino.adapter.ComponentModule.doService(ComponentModule.java:565)
com.ibm.domino.xsp.module.nsf.NSFComponentModule.doService(NSFComponentModule.java:1265)
com.ibm.domino.xsp.module.nsf.NSFService.doServiceInternal(NSFService.java:661)
com.ibm.domino.xsp.module.nsf.NSFService.doService(NSFService.java:481)
com.ibm.designer.runtime.domino.adapter.LCDEnvironment.doService(LCDEnvironment.java:350)
com.ibm.designer.runtime.domino.adapter.LCDEnvironment.service(LCDEnvironment.java:306)
com.ibm.domino.xsp.bridge.http.engine.XspCmdManager.service(XspCmdManager.java:272)
XPages
Tony McGuckin
Overall rating is 5.00 by 6 person(s)
You have to login first to use 'My Favorites' feature
4 user(s) has marked as favorite:
Eric McCormick
F. Kranenburg
mitsuru katoh
Vincent BOITEUX
Added 2012-May-08
Export ACLList to an Excel file.
Exporting ACL details of all the databases under Domino\data folder to an Excel file.
Note : This agent need to be run from Admin Client with Full Access Admin enabled.
To export the ACL List to an Excel file, please create 'acllist.xls' file and place in C drive.
Keep the Agent properties as below :
Under Runtime, Select 'Action Menu Selection' and Target as 'None'
LotusScript
Sudhakar K Reddy
Overall rating is 4.00 by 4 person(s)
You have to login first to use 'My Favorites' feature
1 user(s) has marked as favorite:
Jamie Wester
Added 2015-Apr-12
getComponentValue
Sometimes you use getValue() or getSubmittedValue() to get the value of component, this function will handle this problem
JavaScript (Server)
F van der Linden
Overall rating is 4.80 by 5 person(s)
You have to login first to use 'My Favorites' feature
4 user(s) has marked as favorite:
Dwain A Wuerfel
Eric McCormick
Martin Perrie
Mike R Kelly
Added 2011-Nov-15
XPages Request Processing Lifecycle explorer code...
XPages
Tony McGuckin
Overall rating is 4.29 by 7 person(s)
You have to login first to use 'My Favorites' feature
3 user(s) has marked as favorite:
Eric McCormick
Rashid Azar
Steve Cochrane
Added 2012-Mar-01
Dojo Login Dialog Custom Control
Place this in a custom control. Place the control on to your XPage. To call the dialog use a client side Javascript event, e.g. "onClick" of a button. Call the CSJS function called "dialogLogin()".
The image is not included so you may want to change it.
XPages
Oliver Busse
Overall rating is 5.00 by 1 person(s)
You have to login first to use 'My Favorites' feature
2 user(s) has marked as favorite:
Jeffery A Lay
Jozef Plachy
Added 2013-Sep-01
How to access CGI variables in XPages
This snippet was written by Thomas Gumz in 2008, as part of the following wiki article: http://www-10.lotus.com/ldd/ddwiki.nsf/dx/xpages-cgi-variables.htm
Question:
In the traditional Domino web server, CGI variables are available by creating fields with the names of such CGI variables, for example QUERY_STRING
How can I easily access CGI variables in XPages?
Answer:
In XPages, CGI variables are also available, but you need to write some code to get them via the JSF context.
First you need to call facesContext.getExternalContext() which returns an http://java.sun.com/javaee/javaserverfaces/1.0/docs/api/javax/faces/context/ExternalContext.html" target="_blank">ExternalContext object
Next, you need to get the http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpServletRequest.html" target="_blank">servlet request by calling getRequest() on the ExternalContext object
Then you can call various .getXYZ() methods of the request object to retrieve the values of CGI variables.
For example, to retrieve the remote IP address of a browser session, use request.getRemoteAddr()
Here is a complete, functional JavasScript example of how to get and print the remote address of the incoming browser request:
print("Remote Address: " + facesContext.getExternalContext().getRequest().getRemoteAddr());
XPages
B Gleeson
Overall rating is 5.00 by 1 person(s)
You have to login first to use 'My Favorites' feature
2 user(s) has marked as favorite:
Bhaskar Arkal
Eric Tomenga
Added 2015-Nov-06
Keeping your XPage session alive – without keepSessionAlive
There appears to be an issue keeping XPage sessions alive – even with the ExtLib keepSessionAlive control – which keeps the web session alive from the server’s perspective but does not keep the XPages session alive.
This is a solution which works – especially for those people who are unable to use the Extension Library Add the following to the bottom of your XPage and what it will do is refresh the XP:DIV periodically based on your setting (in milliseconds) (3000000 = 3000 seconds = 50 minutes)
You need to set a value at least one minute less than the session timeout length set in the application properties for your database.
See - http://xomino.com/2012/09/13/keeping-your-xpage-session-alive-without-keepsessionalive/ for more detail
JavaScript (Client)
mark roden
Overall rating is 4.75 by 4 person(s)
You have to login first to use 'My Favorites' feature
2 user(s) has marked as favorite:
Eric N McCormick
Marco Gajardo
Added 2012-Sep-14
Twitter Bootstrap Pager Template
Use this XSP code to add a Pager control that has a similar look and feel as the Twitter Bootstrap Pagination component. The following URL opens an example of Twitter Bootstrap's Pagination Component for reference:
http://getbootstrap.com/components/#disabled-and-active-states
To finalise this Pager control, reference the following Bootstrap Pager Stylesheet XSnippet, which works hand in hand with this Custom XPages Pager Control:
http://openntf.org/XSnippets.nsf/snippet.xsp?id=twitter-bootstrap-pager-template-stylesheet
See below video tutorial explaining these 2 XSnippets:
http://johnjardin.ukuvuma.co.za/2015/06/24/video-tutorial-bootstrap-style-your-xpages-pager-control/
XPages
John V Jardin
Overall rating is 4.00 by 1 person(s)
You have to login first to use 'My Favorites' feature
1 user(s) has marked as favorite:
Erskine Harris
Added 2015-May-24
Bootstrap Standby Dialog
This version is tested and works with Domino 10
The continues work of the Original control
http://openntf.org/XSnippets.nsf/snippet.xsp?id=standby-dialog-custom-control
Update with some fixes for taking down the dialog
Add this to a custom control and add that to your xpages to get a standby dialog on every partial refresh
that takes more than 200 millisec. Prevents the user to be to fast, and get Xhr cancel dialogs.
Thanks for the help Serdar Başeğmez and Tim Tripcony
XPages
Fredrik Norling
Overall rating is 5.00 by 2 person(s)
You have to login first to use 'My Favorites' feature
So far, no one has added to favorites
Added 2015-Dec-08