Stefan Cameron on Forms
Building intelligent forms using Adobe LiveCycle Designer

'Scripting' Category Archive

LC Designer ES2 Action Builder First Peek

Steve, on the LC Designer Team, has posted a good introduction to LC Designer ES2‘s Action Builder feature. This feature is going to be very useful, especially if you’re not comfortable with writing scripts and need to get some basic but powerful logic to function properly. Actions will take care of it all for you so that you don’t have to write a line of code!

Check-out more posts on Actions and the Action Builder feature:

Aug 10, 2009 — Added links to more Action Builder posts from the LC Designer Team.
Aug 31, 2009 — Added links to more Action Builder posts from the LC Designer Team.

Posted by Stefan Cameron on August 6th, 2009
Filed under Designer,Scripting

More details about the next Designer

Mark Szulc has posted a nice article on a few more features you can look forward to in the next version of Designer. Since the new version is now in beta, as part of the LiveCycle ES2 Beta Program, we can start talking about what the team has been working on for the past year.

One feature I’m sure will help-out a lot of folks starting-out is Actions. With this feature, you can now tell Designer that you want to do things like “make {text field B} appear when {check box A} is checked” and it will do all the heavy lifting for you — no need to write the script you normally would’ve needed to (or even know how to script it yourself)! In fact, you may find this handy even if you’re an XFA form scripting veteran since you will no longer have to worry about scripting all the simpler things and spend more time on your advanced scripts.

Posted by Stefan Cameron on July 20th, 2009
Filed under Designer,Scripting

Object Assist Enhancement Preview

Stephanie, from the LC Designer Team, has posted a nice article on up-coming enhancements she made to the Object Assist and other aspects of the Script Editor. This will be available in the next release of Designer. Looks pretty cool! I know it’ll help me out a lot when I write form scripts.

Posted by Stefan Cameron on July 17th, 2009
Filed under Designer,Scripting

Creating and Loading Data Nodes

Have you ever needed to create data nodes in the Data DOM on-the-fly? How about a need to parse XML obtained from a web service data connection in order to find a value for some property? If that’s the case, then you’ll find-out how to do it in this article.

Creating Data Nodes

In a similar article, John Brinkman showed how to create form variable nodes at runtime however what’s not obvious about data nodes is that you don’t create them using

a class name of your choice.

For example, say you wanted to create the following data node structure:

    <message>Hello World!</message>


Continue reading…

Posted by Stefan Cameron on June 1st, 2009
Filed under CM,Data Binding,Instance Manager,Scripting,Tables,Tutorials,XFA

Pre-Process Web Service Responses

Connecting to a web service usually means using import bindings to capture the response but what if you wanted to do something special with the response? What if the response wasn’t exactly correct for merging into your form (e.g. you just wanted to extract a part of the response and push it into your form somewhere)?

You could still use import bindings (set using the “Object palette > Bindings tab > Import/Export Bindings property”) but then you might have to hide most — or all — of those fields if you didn’t want to expose them. You would wait for the web service data connection to execute, then find the field that contains the piece of data you want and set it where it needs to go. This isn’t ideal, however, because Designer doesn’t expose any events, in the Script Editor, that would let you know that you now have data from the web service response in your form. Furthermore, having those extra fields around could add a lot of unnecessary weight (read: file size).

Continue reading…

Posted by Stefan Cameron on March 23rd, 2009
Filed under Data Binding,Designer,Events,Scripting,Tutorials,XFA