JavaScript for XPages: An Introduction to Server-Side JavaScript

Scott Good, President, Teamwork Solutions, Inc.


May, 2010


Get started writing server-side JavaScript functions for your XPages applications. You’ll learn how to create and call a server-side function, shortcuts for simplifying your code, and how to extend the same techniques to create other functions based on your knowledge of LotusScript and Lotus @Functions.


This is the second in my series of articles on JavaScript in XPages. In the first installment, Writing Successful Client-Side Code, I showed you a few of the capabilities of client-side JavaScript in XPages and some of the challenges it presents developers. That was important information and a good place to start explaining some of the basic concepts of working with JavaScript in the XPages environment, but you won’t get very far into an XPages application before you will need to write some server-side code to make things happen in your application’s back end.
If you’re new to XPages, a quick explanation of server-side JavaScript may be in order, so that’s where I’ll start. If you’re already conversant with the basic concepts, skip down to “A Quick Look Around” to familiarize yourself with the IBM Lotus Domino Designer layout and tools for working with server-side JavaScript before getting to the actual coding.

Would you like to see the full version of this article?

If you are an electronic license holder to THE VIEW, please log in to view this article.

If you would like information about becoming an electronic license holder — and having 24/7 unrestricted access to all articles and content in THE VIEW Online Knowledgebase — click here to see the available subscription options.

Or call 1-781-751-8813 to speak directly with a subscription and licensing specialist about customized access for you and your team.