Action Builder, Part 2: Conditions

| No Comments

As we discovered in Part 1, an Action is a list of Conditions, and a list of Results. Lets take a look at the Conditions. What choice are available in a particular condition row depends on the type of object you selected. A new, empty condition row just asks you to pick a node:

200908071315

Click on "(object)" and a dialog appears with a list of all the nodes in the form that support conditions:

200908071316

We saw previously that if you choose a button, you don't get any further choices:

200908071317

But let's choose the Decimal Field:

200908071319

Ah, more options. The condition and result rows are designed to read somewhat naturally, so although the spacing is a bit weird, it reads understandably.

Note that once you pick an object type for a condition row, the type is set - if you click on "DecimalField1", the object picker window will only show you other decimal fields. If you want to start over with an empty row, hit the red minus button at the right of the row.

Here's the complete list of conditions for a decimal field:

200908071321

Some of these are more obvious than others, and the mapping from Actions to the XFA scripting events that exists under the hood is intentionally blurred a bit. For example, "is initialized" is pretty obviously related to the "initialize" event for fields, but what event does "is not" map to? That's where Actions starts to get interesting.

200908071324

This set of conditions will fire when the value entered into the field is >= 10 and <= 20. These two condition rows wind up generating a single line of script in a single event - DecimalField1's change event. With Action Builder, you express your intentions and Action Builder figures out what code to write and where to put it.

200908071327

This time the two condition rows each reference a different object: TextField1 and TextField2. This results in script being generated in the exit event of both TextField1 and TextField2.

But some conditions can't be checked with an "and" relationship. For example it doesn't make any sense to say "When Button1 is clicked AND when Button2 is clicked", because you can't click two buttons at the exact same time. If you try to create an Action that we can't generate script for, we will try to tell you why:

200908071331

Stephanie is going to talk more about trigger conditions and state conditions over on the LiveCycle Designer Exposed blog, so make sure you're subscribed to that as well if you're interested in this ongoing Action Builder saga. One last screenshot:

200908071334

Next time, we'll talk about results.

Leave a comment

About this Entry

This page contains a single entry by Steve Tibbett published on August 7, 2009 1:17 PM.

Action Builder, Part 1 was the previous entry in this blog.

Action Builder, Part 3: Results is the next entry in this blog.

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

Pages

Powered by Movable Type 4.261