LiveCycle ES2 uses encryption to store the datasource information. Here is a quick how-to create your own encrypted datasource:

STEP 1)
In a cmd window, navigate to "C:\Adobe\Adobe LiveCycle ES2\jboss"
Perform this command on the sesrver:
java -cp lib/jboss-common.jar;lib/jboss-jmx.jar;server/lc_turnkey/lib/jbosssx.jar;server/lc_turnkey/lib/jboss-jca.jar org.jboss.resource.security.SecureIdentityLoginModule YOUR_PASSWORD_HERE
Don't forget to swap out "YOUR_PASSWORD_HERE" and then copy the resultant, encrypted password for use in Step 3. 

STEP 2)
Edit and copy the mydatasource-ds.xml datasource file to: "C:\Adobe\Adobe LiveCycle ES2\jboss\server\lc_turnkey\deploy".
You should only have to change "YOUR_DATABASE_SERVER_NAME_HERE" if your particular datasource is for an Oracle XE database.


STEP 3)
Add this node to the very bottom (just above </policy> of "C:\Adobe\Adobe LiveCycle ES2\jboss\server\lc_turnkey\conf\login-config.xml"

</application-policy>
        <application-policy name="EncryptDBPassword_MY_ENCRYPTED_DS">
            <authentication>
                <login-module code="org.jboss.resource.security.SecureIdentityLoginModule" flag="required">
                    <module-option name="username">USER_NAME_HERE</module-option>
                    <module-option name="password">THE_ENCRYPTED_PASSWORD_FROM_STEP_1</module-option>
                    <module-option name="managedConnectionFactoryName">jboss.jca:name=ICCD_DS,service=LocalTxCM</module-option>
                </login-module>
            </authentication>
    </application-policy>

Change USER_NAME_HERE to the datasource username and THE_ENCRYPTED_PASSWORD_FROM_STEP_1 to the result of step 1.


You'll have to restart JBoss for the login-config.xml to take.

Populate a drop-down with a web service in a PDF.

| 2 Comments
I get this question a lot so let's record my answer.

How do you populate a drop-down with the returned results of a web service? Let's say the web service returns a repeating XML node (FirstName, LastName).

Do not try to use Dynmaic Data Bindings just yet. They only work the first time you call them as per Adobe's own: http://forms.stefcameron.com/2006/07/29/dynamic-properties/ (Read to the bottom).

You'll have to do it manually with JavaScript. It's real easy though...

How To Install LiveCycle 8.2.2 with MSSQL 2005

| No Comments

I thought I would share this article that I had on our internal wiki that was originally created by myself and updated by a colleague of mine. It's proven to be quite useful.

 
This article is designed to aid in the manual installation of LiveCycle 8.2.2 with MSSQL 2005. Attached is a zip file with all the files that I reference that should be easily dropped.
 
This article was intended to create development environments.
 

Disable or Cancel Printing on Required Fields

| No Comments

I looked many places to find an example of disabling printing if all required fields were not filled in. Follwing this post:

 
and a little tweaking, I created a form that lets you turn on and off required fields and disables printing if required fields are not filled in. It's a very basic example but remember to read the link above for the key ingredient.
 

How to configure Flex Builder 3 with DataServices

| No Comments

Getting something running with LiveCycle Data Services proved to be quite troublesome in Flex Builder 2. Then Flex Builder 3 came along and made everything so much better. It's much easier and following these instructions should move you along nicely.

Merge Data with a Template Using LC Output within a Process

| 6 Comments

The following post walks you through creating a LiveCycle process within Workbench that generates a PDF document using LiveCycle Output 8.2. First a request is received via SOAP, then we look up configuration parameters in a properties file, then we retrieve records and data from a database, then we merge this data with a form template, and finally we write the file out to disk.  

I had a recent need to call a webservice to receive some display data. I thought the task was quite easy and in reality it is but trying to Google webservice and Flex brings you back more information than you want. I've attached an example of 4 ways to call a webservice in Flex.

Find recent content on the main index or look in the archives to find all content.

Recent Comments

  • Anonymous: The result that comes back from the webservice is an read more
  • Ramon Lee: Hi Brad, I want to convert my webservice response into read more
  • Brad White: The portion of the orchestration that you are referring to read more
  • Brad White: Setting up a cross-domain policy "correctly" is a bigger conversation read more
  • Ambika Mittal: hi... Brad... Its a great article and gives good insight read more
  • Jan Lin: Hi, thanks so much for your sharing.. it's very helpful! read more
  • Brad White: I placed a link at the bottom of the blog read more
  • Elaine Schmitz: Do you have the customerForm1.xdp form you can send me? read more
  • Brad White: Have you created your datasource? In my "Prerequisites" I mention read more
  • jone: I had a problem when I tried to implement this read more

Recent Assets

  • BlogFB3_06.JPG
  • BlogFB3_05.JPG
  • BlogFB3_04.JPG
  • BlogFB3_02.JPG
  • BlogFB3_01.JPG
  • Blog_11.JPG
  • Blog_10.JPG
  • Blog_09.JPG
  • Blog_08.JPG

Categories