Friday, September 21, 2012

Working with lists

This is more a note to remind me in future but when dealing with lists in LiveCycle it can sometimes be a little tricky to just keep adding to a list without creating a loop.  An easy way to do this within one set value step is to use the collection size to determine the index for adding something to the list.

Here's an example XPath statement which will add to the end of the list (where "listAttachments" is your list variable):

/process_data/listAttachments[number(get-collection-size(/process_data/listAttachments)+1)]

Thursday, September 20, 2012

WebLogic LiveCycle ES3 Installation

On a recent installation of LiveCycle ES3 on WebLogic I realized that I had started creating a list of "extras" which I often needed to do before the installation would work properly.  These might not always be required and may in fact be buried in the documentation somewhere but here's the list regardless:


  • Setting up the servers (both Admin and Managed Server) as Windows Services.  Not strictly a LiveCycle step but useful nonetheless.  Just don't forget to copy the lines you added to "startManagedServer.cmd" into your new service. 
  • Adding the SQL driver to the classpath.  When using SQL Server we need the sqljdbc4 JAR file in the CLASSPATH.  Unfortunately the text LiveCycle gives you during the installation to copy into your startup script doesn't include this.  Again this might be the way we had configured WebLogic but I needed to add the path onto the end of the CLASSPATH supplied in order to get us talking to the database (we had setup the data source manually in WebLogic rather than bundling it into the LiveCycle EAR files.  
I'll keep adding to this as and when I come across other configurations.