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
emailBean : Send DominoDocument HTML Emails c/w Embedded Images, Attachments, Custom Header/Footer
Use the emailBean to create and send HTML/MIME emails based on a DominoDocument datasource. Use CKEditor bound to the datasource to compose the email content that can also include Embedded Images. Use the File Upload bound to the datasource to also include Attachments in the email. You can also specify your own custom Header and Footer (Signature) HTML content for the email.
Example:
emailBean.setSendTo("frank@renovations.com");
emailBean.setSubject("Todays Finance Report");
emailBean.setSenderEmail("samantha@renovations.com");
emailBean.setSenderName("Samantha - Renovations");
emailBean.setDocument(document1);
emailBean.setFieldName("Body");
emailBean.setBannerHTML("Hi,
");
emailBean.setFooterHTML("Kind regards,
Samantha
0012 3456 789
");
emailBean.send();
XPages
Tony McGuckin
Overall rating is 5.00 by 9 person(s)
You have to login first to use 'My Favorites' feature
14 user(s) has marked as favorite:
Angelo Pampalone
Cristian DAloisio
Dwain A Wuerfel
Grégory DEVISE
Jan1 Krunniniva
Joe L Bedolla
Leonardo Bertelli LB Bertelli
Marco Gajardo
Michele Malaguti
Mikael Grevsten
Serdar Basegmez
Son T Le
Terry Traphagen
Ulrich Krause
Added 2012-Apr-04
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
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
Send Notes document as PDF attachment
This script is ideally placed on a form and allows the user to mail entire document as a PDF. The logic is as follows
- Copy and Paste UI doc into a temporary MS Word object
- Save MS Word as PDF
- Closes MS Word OLE Object
- Opens new mail & attaches PDF file
- Kills temporary file
LotusScript
Ben Menesi
Overall rating is 5.00 by 7 person(s)
You have to login first to use 'My Favorites' feature
2 user(s) has marked as favorite:
Erskine Harris
Wanda M Rosioara
Added 2015-May-19
Pure Java version of DbLookup & DbColumn, with cache, sort and unique
This is a completely rewritten version of the SSJS equivalent in pure Java, but without the 64k limit.
Now includes various tweaks to make it even faster.
Java
F. Kranenburg
Overall rating is 4.22 by 9 person(s)
You have to login first to use 'My Favorites' feature
4 user(s) has marked as favorite:
Eric McCormick
Erskine Harris
Tom MC Mennes
V. Watson
Added 2013-Feb-13
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
Custom XPage file upload handler
Use this code if you want to implement a custom file upload solution like PLUpload or jQuery File Upload with XPages. See also: http://stackoverflow.com/questions/19723731/how-to-upload-a-file-from-mobile-phone-camera-to-xpages-with-phonegap-filetransf/19739712#19739712
Java
Mark Leusink
Overall rating is 5.00 by 2 person(s)
You have to login first to use 'My Favorites' feature
4 user(s) has marked as favorite:
Eric McCormick
Michele Malaguti
Serdar Basegmez
Steve Cochrane
Added 2014-Jul-04
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
Link to attachments in Rich Text Fields from XPages and XPinC
The complete, correct format how to link to Attachments inside Rich Text Fields from XPages In Client:
http(s)://127.0.0.1:[theRandomXPINCPort]/xsp/[currentServer]!![yourCurrentApplication.nsf] /xsp/.ibmmodres/domino/OpenAttachment/[yourTargetServer]!![yourTargetapplication.nsf]/[UNID]/$File/[AttachmentName]?Open
see: http://techdriveactive.blogspot.com/2012/11/open-attachments-in-xpage-in-client.html
JavaScript (Server)
Arne Menting
Overall rating is 5.00 by 2 person(s)
You have to login first to use 'My Favorites' feature
1 user(s) has marked as favorite:
Lukas Slavicek
Added 2013-Jan-28
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
MakeDir recursive directory creation
The MkDir function of LotusScript is limited in that it can only create a single folder in a folder that already exists. This subroutine will, if necessary, create the entire path.
LotusScript
Andre Guirard
Overall rating is 5.00 by 1 person(s)
You have to login first to use 'My Favorites' feature
So far, no one has added to favorites
Added 2011-Nov-21