November 13, 2009

Changing the fill color of a field based on a condition

It is easy to change the fill color of a field based on a condition, such as when a number exceeds a certain amount. For example, the script (JavaScript) below changes the fill color of a field to yellow when the value is below 100 and red when the value is 100 and up.

Try it
1) From LiveCycle Designer, open the "Dynamic Purchase Order" sample form (Purchase Order Dynamic.xdp).
2) Select the Quantity field (numQty).
3) Select and the "exit" event if a user will be entering data in the field or select the "initialize" event when the field is populated with data.
4) Copy and paste the following script into the Script Editor and edit the fill color to suit your purpose. If you would like the fill color to change for both user entered data and populated data, copy and paste the script into both the "exit" and "initialize" events.

if (this.rawValue >= 100) //red
{
this.fillColor = "255,0,0";
}
else
this.fillColor = "255,255,0"; //yellow

5) Test the script using the Preview PDF tab.

Tips
Use a numeric field with this script.
Make sure that you select JavaScript and run at the client.
Make sure that the "Preview Adobe XML Form As" property (in Form Properties) is set to "Dynamic XML Form".
Use the "initialize" event to make the fill color change when the form is populated with data.
Use the "exit" event to make the fill color change when a user enters data.

For more LiveCycle Designer scripting samples, visit the LiveCycle Developer Center at http://www.adobe.com/devnet/livecycle/designer_scripting_samples.html/.

November 5, 2009

Should I use the Output service or Forms service?

Recently, when I was automating a process, part of the requirement was to merge XML data with a form design that was created in Adobe LiveCycle Designer ES. When you are merging a form design with data from an XML file, you can use either the Forms service or Output service in LiveCycle ES. Depending on how you use the resultant merged form design and data, determines which service best meets your requirements.

Continue reading "Should I use the Output service or Forms service?" »

October 30, 2009

Adobe Announces LiveCycle Mosaic ES2

You may have missed it during the MAX 2009 conference, among all of the announcements, but Adobe has publicly announced a new product that allows users to create composite Rich Internet Applications (RIAs).

Continue reading "Adobe Announces LiveCycle Mosaic ES2" »

October 23, 2009

What I heard at MAX 2009

I had a great time at Adobe MAX 2009. I talked to many users of LiveCycle ES and got some great feedback about the documentation. I don't mean you all love our docs, but I mean you provided some great insights into how we can improve. (But some of you do apparently love our docs!)

Some of the things you asked for:


  • More examples

  • PDF versions of Help

  • More access points to Help via F1

  • Make it easier to find information on Adobe.com


These issues are all on our radar.

For one, we are working on mining the Adobe.com LiveCycle ES forums for examples. I also hope for more suggestions from you on our LiveDocs pages.

Also, take a look at the Beta version of the Community Help AIR application. Let us know what you think. This new tool makes all the information that you need available from one location, and includes 'Livedocs' commenting and other easy ways to keep in touch with the user community. This is only implemented for a few Adobe products right now. Would you like to see it used for LiveCycle?

September 30, 2009

Recent Tech Notes

Here's the list of Knowledge Base tech notes that the LiveCycle ES team has published in the past two months: