358 Lotus blogs updated hourly. Who will post next? Home | Downloads | Events | Pods | Blogs | Search | myPL | About 
 
Latest 7 Posts
Mail Merge with XPages
Fri, Dec 12th 2014 211
Command line mail merge
Fri, Dec 12th 2014 149
Application Migration vs. XPage enablement
Mon, Dec 1st 2014 302
Poking around the iNotes HTTP API (Part 3) - retrieve a message
Sun, Nov 30th 2014 151
Poking around the iNotes HTTP API (Part 2) - Fun with Rhino
Thu, Nov 27th 2014 195
Poking around the iNotes HTTP API (Part 1)
Mon, Nov 24th 2014 300
Flashcards - German Version: Die Lernkartei
Sun, Nov 23rd 2014 187
Top 10
Domino Development - Back to Basics - Part 5: Finding data - Collections and Search
Thu, Jan 2nd 2014 708
A peek in my JavaScript Toolbox
Fri, Nov 14th 2014 315
Last usage of a mail file - for all users
Fri, Nov 21st 2014 310
Application Migration vs. XPage enablement
Mon, Dec 1st 2014 302
Poking around the iNotes HTTP API (Part 1)
Mon, Nov 24th 2014 300
Custom REST service in XPages using a service bean
Wed, Oct 22nd 2014 289
Building a shared approval frontend in XPages
Sun, Nov 16th 2014 283
Mustache Helper for Domino
Sun, Nov 16th 2014 278
Dear SingTel, please fix your routing performance!
Wed, Apr 24th 2013 265
Providing user information in JSON
Thu, Nov 20th 2014 227


Reuse web agents that use PRINT - Bean edition
Stephan H Wissel    

Using Java in XPages does have performance advantages especially when you can use EL instead of SSJS. So I created the Java version of the reuse web agents post. You need to copy the Java either into your NSF or include it in your own extension library. Calling an agent is limited to the same database as the XPage resides in, I leave it to an exercise for my readers to improve on that.
You define the Java class as a managed bean:
<managed-bean>
    <managed-bean-name>agentHelper</managed-bean-name>
    <managed-bean-class>com.notessensei.xsp.utilities.LsAgentHelper</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
</managed-bean>
and then simply include (e.g. in the value of a computed field) ${agentHelper.agentResult("SampleAgent")} as EL entry. You have to be careful to ensure your agent doesn't run twice. The agent side adjustments (the LotusScript stuff) is the same as for the SSJS version. The Java version is slightly more flexible since it allows String or Stream results and acting on a new or existing document.

---------------------
http://feedproxy.google.com/~r/Wisselnet/~3/g7vsR4n5HGQ/SHWL-8SLCXZ
Apr 03, 2012
29 hits



Recent Blog Posts
211


Mail Merge with XPages
Fri, Dec 12th 2014 7:11p   Stephan H Wissel
Being able to have individualized letters based on a template was one of the drivers to make Word processors popular. In the age of mass-communication of one. This tasks falls no longer to the printer, but your eMail processor. For a complete solution, check out Chris Toohey's excellent Mailer application, that is yours for USD 5.00 only. I was wondering what it would take to build something similar, minus the address management, in XPages. I defined a few constraints: I don't want to store [read] Keywords: domino ibm richtext xpages application email java openntf wiki
149


Command line mail merge
Fri, Dec 12th 2014 7:11p   Stephan H Wissel
As shown before mail merging with Notes and {{mustache}} is simple and easy to code. To be able to run merging on the command line, I modified the bean and removed the XPages dependency and added a static main function. Now you can run it off the command line easily. It requires 5 parameters: the database name the CSV file a file with a HTML message including {{mustache}} tags a file with a Text message including {{mustache}} tags The senders eMail [read] Keywords: ibm notes xpages database email
302


Application Migration vs. XPage enablement
Mon, Dec 1st 2014 5:12a   Stephan H Wissel
In a recent customer discussion a claim was made: "If Notes client application don't automagically can be converted into XPages applications, then we very well can migrate to another platform, it is just the same". An interesting claim, I'll subject it to a reality check. In any case it is a good idea to revisit your investment in your existing applications first. XPages Enablement A reasonable estimate for the required effort is up to 30% of the initial effort. It very much depends on the [read] Keywords: domino ibm lotus notes notes client xpages application applications bug mobile security
151


Poking around the iNotes HTTP API (Part 3) - retrieve a message
Sun, Nov 30th 2014 9:15p   Stephan H Wissel
So far we learned about the URLs, how to retrieve the Outline that contains folders and views and how to utilize JavaScript to deal with an API tha hadn't been designed for language neutral access. This part will deal with the retrieval of messages. There are quite some formats, strategies and tweaks to consider: A message consists of headers (fields), and message parts that can be plain text, HTML, embedded images, attachments or other stuff (like the JSON used for embedded experiences). When [read] Keywords: ibm inotes notes css java javascript network
195


Poking around the iNotes HTTP API (Part 2) - Fun with Rhino
Thu, Nov 27th 2014 10:15a   Stephan H Wissel
The iNotes HTTP API wasn't designed for consumption outside the iNotes web client. This becomes apparent when looking at Form=l_GetOutline_JSON or Form=l_JSVars that return JavaScript and not JSON! The difference? JSON contains data only, while JavaScript contains function definitions too. To make use of data included in the JavaScript there are 2 possibilities: do some elaborate String operation actually run JavaScript Since Java 6, the JDK contains a JavaScript engine, that originally was de [read] Keywords: ibm inotes notes java javascript
300


Poking around the iNotes HTTP API (Part 1)
Mon, Nov 24th 2014 11:12a   Stephan H Wissel
With the rise of web applications, something interesting happened: applications gained an observable API. Delivered over HTTP(s) with a few commands (GET, POST etc.) it became easier to find out "what is going on". Tools like Wireshark, Fiddler, Charlesproxy or TCPMon sit between your HTTP consuming client and the HTTP generating server. In browser applications the build in developer tools (Ctrl-Shift-I) provide the same level of access. So anything flowing over HTTP is effectively an API. Th [read] Keywords: ibm inotes ldd lotus notes applications google server twitter
187


Flashcards - German Version: Die Lernkartei
Sun, Nov 23rd 2014 6:12a   Stephan H Wissel
The offspring and SWMBO had an argument about the need for Chinese tuition when attending Singapore's oldest school. You can guess who had what position. Disecting the positions and looking at interest (you remember your basic negotiation skills, do you?) it boiled down to the wish of self directed learning vs. fear of failure. Having gone through both (I remember my Latin tuition teacher well. I loathed him and in return he pushed me within 6 month from F to A), I concluded: self direction ne [read] Keywords: application google wiki




310


Last usage of a mail file - for all users
Fri, Nov 21st 2014 8:18a   Stephan H Wissel
My admin is getting a little rusty. When I was asked: "How can I indentify a dormant mailbox?" I couldn't name a place in admin where to look. Of course, there is the NotesDatabase.LastModified property, but that would get updated on a design refresh too. So I asked innocently: "dormant, how?" After an amusing 2 hour discussion between the stake holders (only the popcorn was missing) we concluded that it is either No document has been created for a while (including incoming) No email has [read] Keywords: admin ibm lotusscript notes email
227


Providing user information in JSON
Thu, Nov 20th 2014 5:12a   Stephan H Wissel
In the MUSE project we encountered the need to retrieve user information in JSON format. Easy done one would think. The trouble starts, when you have multiple directories and you need reasonable speed. Sometimes falling back to @Fomulas gives you what you need, fast and easy. @NameLookup knows where to look and you don't need any extra configuration. A simple call to an form will give you all you need: https://yourserver/somedb.nsf/namelookup?Readform for yourself or add &User=John Doe for [read] Keywords: domino dxl ibm email
283


Building a shared approval frontend in XPages
Sun, Nov 16th 2014 8:18p   Stephan H Wissel
The saying goes: "God would not have been able to create the world in 7 days, if there would have been an installed base to take care of". As much as we wish to have divine powers, we need to make with less and look after an installed base. Point in case: You have a set of approval applications in classic Notes client code, like: Travel, Leave, Expenses, Gifts, Training, BoM changes etc. You are challenged to provide a web and/or mobile interface for them. Considering your options you have to [read] Keywords: lotusscript notes notes client policies xpages application applications development interface java mobile wiki




Created and Maintained by Yancy Lent - About - Blog Submission - Suggestions - Change Log - Blog Widget - Advertising - Mobile Edition