Archive for July, 2009

Action Builder, Part 1

What is Action Builder? Action Builder is a new feature coming in the next version of LiveCycle Designer, the LiveCycle form design tool. Action Builder is a tool for building interactivity into dynamic forms that doesn’t require you to write script.

Building interactive forms is nothing new, but it wasn’t an easy task. Most common forms of interactivity required that you write script either in FormCalc or JavaScript. Action Builder writes and maintains this script for you.

Let’s take a look at the UI.

Actionsdialogsimple-1



On the left side is a list of all the Actions defined in your form, and on the right is a list of the Conditions and Results that make up the selected Action. Each Action can have multiple conditions (which can be combined in various ways – more on this in a future post), and can have multiple results.

A new condition row starts out asking you to choose an object that the condition will be based on:

200907310717

Most objects have conditions available. Once you choose one, you’re given the conditions available for that object:

200907310718-1

I picked a button, which only has one condition (“is clicked”) so there aren’t any options to choose. The conditions for this Action will be met when the button is clicked, and when the conditions are met, all of the results defined for the Action execute, in the order they are listed.

When you create a new Result row, you’re prompted to choose the type of result you want this row to be:

200907310719

I’ll choose “Go to a Web Page”, and the row changes into the parameters for that result:

200907310720

The completed Action is given the automatically generated name “Button1.click”, which you can rename. This new action will launch a web page when I click a button on my form.

200907310721

Not exactly rocket science, but even this simple activity required writing script in earlier versions of Designer.

Action Builder is designed to be flexible enough that even if we didn’t specifically think of something you might want to do with it, there’s still a pretty good chance it’s possible. We’re looking forward to seeing what you build with it – and what you wish you could build with it, so we can extend it in future versions.

New Features in LiveCycle Designer

Now that the next version of LiveCycle ES is in beta (some info here and you can join here), we can start talking about some of the new features that we’re planning to deliver in LiveCycle Designer, the form design tool that’s part of LiveCycle. We’ve been working on a lot of interesting things.

One of the themes of this version is form simplification. By simplification I don’t mean making simpler forms – I mean making it easier to make complex forms. Reducing the amount of script you have to write, for example, while giving you even richer ways to validate data and show validation problems, and build interaction into your forms.

Validations in particular can account for hundreds or even thousands of lines of JavaScript code in complex forms, but with the new Designer, much of this script is no longer necessary!

And let’s say you wanted a form that had an optional section, with a checkbox that would show or hide that section. In Designer 8.2, this required writing script. Now? A few clicks and you’re done. We’ve built a way for you to write script for the most common types of form interactions that we see in dynamic forms, without having to write script.

It’s called Actions, and there’s a sneak preview over at Mark Szulc’s blog.

Between now and when the new Designer is released, you’ll see some members of the team posting about new features. It’s great to be able to talk about them and I hope you find them useful.