<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: XFA SOM Expression Generator</title>
	<atom:link href="http://forms.stefcameron.com/2006/06/05/xfa-som-expression-generator/feed/" rel="self" type="application/rss+xml" />
	<link>http://forms.stefcameron.com/2006/06/05/xfa-som-expression-generator/</link>
	<description>Building intelligent forms using Adobe LiveCycle Designer</description>
	<lastBuildDate>Thu, 19 Jan 2012 16:32:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2006/06/05/xfa-som-expression-generator/#comment-4928</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Mon, 08 Feb 2010 20:44:59 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=17#comment-4928</guid>
		<description>Paul Wesson,

SOM expressions haven&#039;t changed. Perhaps you need the fully-qualified SOM expression, rather than the abbreviated form you get when you use [Ctrl + Shift + {click}]?

Based on &quot;form1.frmTask.task&quot;, the fully-qualified version &lt;em&gt;could&lt;/em&gt; be &quot;form1[0].frmTask[0].task[0]&quot;, assuming the first instance of each object was being referenced.

My &lt;a href=&quot;http://forms.stefcameron.com/2006/06/14/acroform-field-name-generator/&quot; rel=&quot;nofollow&quot;&gt;AcroForm Field Name Generator&lt;/a&gt; script could be used to determine the definitive fully-qualified SOM expression if you aren&#039;t certain of what it might be.</description>
		<content:encoded><![CDATA[<p>Paul Wesson,</p>
<p>SOM expressions haven&#8217;t changed. Perhaps you need the fully-qualified SOM expression, rather than the abbreviated form you get when you use [Ctrl + Shift + {click}]?</p>
<p>Based on &#8220;form1.frmTask.task&#8221;, the fully-qualified version <em>could</em> be &#8220;form1[0].frmTask[0].task[0]&#8220;, assuming the first instance of each object was being referenced.</p>
<p>My <a href="http://forms.stefcameron.com/2006/06/14/acroform-field-name-generator/" rel="nofollow">AcroForm Field Name Generator</a> script could be used to determine the definitive fully-qualified SOM expression if you aren&#8217;t certain of what it might be.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Wesson</title>
		<link>http://forms.stefcameron.com/2006/06/05/xfa-som-expression-generator/#comment-4927</link>
		<dc:creator>Paul Wesson</dc:creator>
		<pubDate>Fri, 29 Jan 2010 19:08:47 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=17#comment-4927</guid>
		<description>Has this SOM hierarchy changed for LiveCycle ES and Acrobat Pro 9?

No matter what combination I try I keep getting &quot;invalid row&quot; on my import using importTextData

When I do the ctrl-shift V it gives me: form1.frmTask.task
but when I put that in as my column header in my tabbed delimited file I still get invalid row

Any thoughts?

Paul</description>
		<content:encoded><![CDATA[<p>Has this SOM hierarchy changed for LiveCycle ES and Acrobat Pro 9?</p>
<p>No matter what combination I try I keep getting &#8220;invalid row&#8221; on my import using importTextData</p>
<p>When I do the ctrl-shift V it gives me: form1.frmTask.task<br />
but when I put that in as my column header in my tabbed delimited file I still get invalid row</p>
<p>Any thoughts?</p>
<p>Paul</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2006/06/05/xfa-som-expression-generator/#comment-4926</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Sun, 27 Jul 2008 03:15:54 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=17#comment-4926</guid>
		<description>Vandana,

I&#039;m afraid I&#039;m going to need a little more context before I can take a guess at what&#039;s going wrong. I can&#039;t make sense of the script you posted.</description>
		<content:encoded><![CDATA[<p>Vandana,</p>
<p>I&#8217;m afraid I&#8217;m going to need a little more context before I can take a guess at what&#8217;s going wrong. I can&#8217;t make sense of the script you posted.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vandana</title>
		<link>http://forms.stefcameron.com/2006/06/05/xfa-som-expression-generator/#comment-4925</link>
		<dc:creator>Vandana</dc:creator>
		<pubDate>Mon, 21 Jul 2008 14:02:49 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=17#comment-4925</guid>
		<description>Hi Stefan,

I am adressing a subform and put this in a variable. In my if statement I want to access the variable and traverse down to the textfield. How to dot his in FormCalc.

var contentX = Message.content;

if( $.rawValue == 1) then
   contentX.option.presence = &quot;hidden&quot;

endif

The contentX.option.presence does not work.
option is a second subform.</description>
		<content:encoded><![CDATA[<p>Hi Stefan,</p>
<p>I am adressing a subform and put this in a variable. In my if statement I want to access the variable and traverse down to the textfield. How to dot his in FormCalc.</p>
<p>var contentX = Message.content;</p>
<p>if( $.rawValue == 1) then<br />
   contentX.option.presence = &#8220;hidden&#8221;</p>
<p>endif</p>
<p>The contentX.option.presence does not work.<br />
option is a second subform.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2006/06/05/xfa-som-expression-generator/#comment-4924</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Fri, 02 Feb 2007 21:48:56 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=17#comment-4924</guid>
		<description>smvo,

I see what you&#039;re trying to do. Unfortunately, I believe the &quot;..&quot; operator performs a depth-first search and returns the first match (or matches) it finds, which might explain why you&#039;re never finding both objects.

In fact, I think that the only way

&lt;blockquote&gt;resolveNodes(&quot;xfa.form..Test[*]&quot;)&lt;/blockquote&gt;

would return both the subform and the field is if they were siblings in the hierarchy.

It&#039;s difficult to tell without knowing what your form structure is but I&#039;m going to guess that the &quot;..&quot; operator won&#039;t be of much help.

Is there a reason why you can&#039;t cache a reference to each object in a script object variable (a variable declared in a script object)?

If you absolutely need to go looking for the objects, then you may need to write a recursive function that performs the search starting from the root subform and looking into all child nodes. You can find something similar in the &quot;ProcessAllFields&quot; function defined in the sample form from my &lt;a href=&quot;http://blogs.adobe.com/formbuilder/2006/06/process_all_fields.html&quot; rel=&quot;nofollow&quot;&gt;Process All Fields&lt;/a&gt; article.</description>
		<content:encoded><![CDATA[<p>smvo,</p>
<p>I see what you&#8217;re trying to do. Unfortunately, I believe the &#8220;..&#8221; operator performs a depth-first search and returns the first match (or matches) it finds, which might explain why you&#8217;re never finding both objects.</p>
<p>In fact, I think that the only way</p>
<blockquote><p>resolveNodes(&#8220;xfa.form..Test[*]&#8220;)</p></blockquote>
<p>would return both the subform and the field is if they were siblings in the hierarchy.</p>
<p>It&#8217;s difficult to tell without knowing what your form structure is but I&#8217;m going to guess that the &#8220;..&#8221; operator won&#8217;t be of much help.</p>
<p>Is there a reason why you can&#8217;t cache a reference to each object in a script object variable (a variable declared in a script object)?</p>
<p>If you absolutely need to go looking for the objects, then you may need to write a recursive function that performs the search starting from the root subform and looking into all child nodes. You can find something similar in the &#8220;ProcessAllFields&#8221; function defined in the sample form from my <a href="http://blogs.adobe.com/formbuilder/2006/06/process_all_fields.html" rel="nofollow">Process All Fields</a> article.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: smvo</title>
		<link>http://forms.stefcameron.com/2006/06/05/xfa-som-expression-generator/#comment-4923</link>
		<dc:creator>smvo</dc:creator>
		<pubDate>Mon, 29 Jan 2007 11:11:57 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=17#comment-4923</guid>
		<description>Stefan,

This was the post more closely related to the resolvenodes method I could find in your blogs, so I will make my question here:

In a form I have a subform named Test and a field named Test, too.

I would like to get a reference for each of them, so I used this:

xfa.resolveNodes(&quot;xfa.form..Test&quot;);

However, I realizes I can only get the field object. If I take the field object from the form, I will get the subform object as expected.

I also tried this:

xfa.resolveNodes(&quot;xfa.form..Test[*]&quot;);

But the problem is the same. does the method only returns one kind of object?

Are there any workaround?

Thank you</description>
		<content:encoded><![CDATA[<p>Stefan,</p>
<p>This was the post more closely related to the resolvenodes method I could find in your blogs, so I will make my question here:</p>
<p>In a form I have a subform named Test and a field named Test, too.</p>
<p>I would like to get a reference for each of them, so I used this:</p>
<p>xfa.resolveNodes(&#8220;xfa.form..Test&#8221;);</p>
<p>However, I realizes I can only get the field object. If I take the field object from the form, I will get the subform object as expected.</p>
<p>I also tried this:</p>
<p>xfa.resolveNodes(&#8220;xfa.form..Test[*]&#8220;);</p>
<p>But the problem is the same. does the method only returns one kind of object?</p>
<p>Are there any workaround?</p>
<p>Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2006/06/05/xfa-som-expression-generator/#comment-4922</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Sat, 10 Jun 2006 19:07:08 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=17#comment-4922</guid>
		<description>Arthur,

You&#039;re more than welcome to sign-up for Adobe&#039;s &lt;a href=&quot;http://partners.adobe.com/public/asn/developer/detail_edp.html&quot; rel=&quot;nofollow&quot;&gt;Enterprise Developer Program&lt;/a&gt;. Please follow the link to learn more about it.</description>
		<content:encoded><![CDATA[<p>Arthur,</p>
<p>You&#8217;re more than welcome to sign-up for Adobe&#8217;s <a href="http://partners.adobe.com/public/asn/developer/detail_edp.html" rel="nofollow">Enterprise Developer Program</a>. Please follow the link to learn more about it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arthur Maloney</title>
		<link>http://forms.stefcameron.com/2006/06/05/xfa-som-expression-generator/#comment-4921</link>
		<dc:creator>Arthur Maloney</dc:creator>
		<pubDate>Thu, 08 Jun 2006 15:48:04 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=17#comment-4921</guid>
		<description>good tip

I&#039;m a UK er why don&#039;t you let me pay the $1495 and I&#039;ll join Developer Programme</description>
		<content:encoded><![CDATA[<p>good tip</p>
<p>I&#8217;m a UK er why don&#8217;t you let me pay the $1495 and I&#8217;ll join Developer Programme</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SteveX</title>
		<link>http://forms.stefcameron.com/2006/06/05/xfa-som-expression-generator/#comment-4920</link>
		<dc:creator>SteveX</dc:creator>
		<pubDate>Wed, 07 Jun 2006 11:11:59 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=17#comment-4920</guid>
		<description>That&#039;s funny - yesterday I was thinking about blogging the same thing.  It&#039;s a good tip.</description>
		<content:encoded><![CDATA[<p>That&#8217;s funny &#8211; yesterday I was thinking about blogging the same thing.  It&#8217;s a good tip.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dimitri Munkirs</title>
		<link>http://forms.stefcameron.com/2006/06/05/xfa-som-expression-generator/#comment-4919</link>
		<dc:creator>Dimitri Munkirs</dc:creator>
		<pubDate>Tue, 06 Jun 2006 14:00:56 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=17#comment-4919</guid>
		<description>Nice tip Stefan! Very helpful.</description>
		<content:encoded><![CDATA[<p>Nice tip Stefan! Very helpful.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

