A Shortcut for Inserting SOM Expressions into your Script

| 2 Comments

The XFA scripting model can be a bit... overwhelming... sometimes.  It can be hard to figure out what SOM expression you need need to use.  But there is an alternative to typing out a long, many-layered-SOM-expression.  While typing in the script editor, if you hold down the CTRL key and click on an object on the canvas, the object's SOM expression will be inserted into your script.  The SOM expression will be relative to the object hosting the script. 

If you want the absolute SOM, then hold down CTRL+SHIFT and click on the object.

Please note that this trick only works when clicking on objects on the canvas, not in the hierarchy dialog.

2 Comments

Wow, thank you very much!

Thanks for posting this. I've been looking for this answer for over 2 days!

Leave a comment

About this Entry

This page contains a single entry by Stephanie Legault published on November 26, 2007 4:49 PM.

xfa.host.setFocus() was the previous entry in this blog.

FormCalc Syntax Error Tips is the next entry in this blog.

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

Categories

Pages

Powered by Movable Type 4.261