<?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: Connecting to a Schema</title>
	<atom:link href="http://forms.stefcameron.com/2009/08/03/connecting-to-a-schema/feed/" rel="self" type="application/rss+xml" />
	<link>http://forms.stefcameron.com/2009/08/03/connecting-to-a-schema/</link>
	<description>Building intelligent forms using Adobe LiveCycle Designer</description>
	<lastBuildDate>Tue, 07 Sep 2010 14:26:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2009/08/03/connecting-to-a-schema/comment-page-1/#comment-58747</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Thu, 29 Oct 2009 18:02:19 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2009/08/03/connecting-to-a-schema/#comment-58747</guid>
		<description>Paul,

That&#039;s OK, it happens to all of us. ;)

For the record, when creating a data connection based on sample XML data, you&#039;re really creating a Schema Data Connection whereby Designer interprets the XML data and extrapolates a schema based on its structure. So creating a Schema Data Connection and one based on &quot;sample XML data&quot; essentially results in the same type of data connection.

By &quot;n levels deep&quot;, do you mean your XML may look like this:

&lt;pre&gt;&lt;code&gt;&lt;data&gt;
    &lt;node1 name=&quot;L1&quot;&gt;
        &lt;property1/&gt;
        &lt;property2/&gt;
        &lt;property3/&gt;
    &lt;/node1&gt;
&lt;/data&gt;&lt;/code&gt;&lt;/pre&gt;

or like this:

&lt;pre&gt;&lt;code&gt;&lt;data&gt;
    &lt;node1 name=&quot;L1&quot;&gt;
        &lt;node2 name=&quot;L2&quot;&gt;
            &lt;node3 name=&quot;L3&quot;&gt;
                &lt;property1/&gt;
                &lt;property2/&gt;
                &lt;property3/&gt;
            &lt;/node3&gt;
        &lt;/node2&gt;
    &lt;/node1&gt;
&lt;/data&gt;&lt;/code&gt;&lt;/pre&gt;

and you would like to have one subform (or subform set) capable of binding to the element that contains the &lt;propertyX&gt; nodes, regardless of its depth in the data?

If so, I&#039;m sorry to say that I don&#039;t believe this is possible with simple data bindings since it would imply that you are dynamically changing the binding expression on the subform/Set which is currently not allowed.

You could achieve it using script, however, by not binding the subform/Set to data and inspecting the data upon initialization (the data will be loaded in xfa.datasets.data). At this point, you can access the XML structure and &quot;manually&quot; create subform instances, populating instances with data as appropriate.

I know it sounds very awkward, and it is! We&#039;re definitely thinking of ways to make this sort of thing easier in the future.</description>
		<content:encoded><![CDATA[<p>Paul,</p>
<p>That&#8217;s OK, it happens to all of us. ;)</p>
<p>For the record, when creating a data connection based on sample XML data, you&#8217;re really creating a Schema Data Connection whereby Designer interprets the XML data and extrapolates a schema based on its structure. So creating a Schema Data Connection and one based on &#8220;sample XML data&#8221; essentially results in the same type of data connection.</p>
<p>By &#8220;n levels deep&#8221;, do you mean your XML may look like this:</p>
<pre><code>&lt;data>
    &lt;node1 name="L1">
        &lt;property1/>
        &lt;property2/>
        &lt;property3/>
    &lt;/node1>
&lt;/data></code></pre>
<p>or like this:</p>
<pre><code>&lt;data>
    &lt;node1 name="L1">
        &lt;node2 name="L2">
            &lt;node3 name="L3">
                &lt;property1/>
                &lt;property2/>
                &lt;property3/>
            &lt;/node3>
        &lt;/node2>
    &lt;/node1>
&lt;/data></code></pre>
<p>and you would like to have one subform (or subform set) capable of binding to the element that contains the &lt;propertyX> nodes, regardless of its depth in the data?</p>
<p>If so, I&#8217;m sorry to say that I don&#8217;t believe this is possible with simple data bindings since it would imply that you are dynamically changing the binding expression on the subform/Set which is currently not allowed.</p>
<p>You could achieve it using script, however, by not binding the subform/Set to data and inspecting the data upon initialization (the data will be loaded in xfa.datasets.data). At this point, you can access the XML structure and &#8220;manually&#8221; create subform instances, populating instances with data as appropriate.</p>
<p>I know it sounds very awkward, and it is! We&#8217;re definitely thinking of ways to make this sort of thing easier in the future.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://forms.stefcameron.com/2009/08/03/connecting-to-a-schema/comment-page-1/#comment-58358</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Mon, 26 Oct 2009 13:24:58 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2009/08/03/connecting-to-a-schema/#comment-58358</guid>
		<description>Hello again--

I just thought I&#039;d post back and confess to user error regarding the template. My template now works as intended.

One remaining question I have--and I havent seen a tutorial about this anywhere: how do you create a dynamic template that can call subform sets programmatically instead of by xpath? As I mentioned above, our XML data can be n levels deep. To get my template working I hardwired each subform set to distinct level of nodes in the XML data and my templates can only support a depth of ten levels. Ideally we&#039;d be able to render a subform set recursively for any node or condition in our XML.

I&#039;d love to see a tutorial on this ;)

thx
Paul</description>
		<content:encoded><![CDATA[<p>Hello again&#8211;</p>
<p>I just thought I&#8217;d post back and confess to user error regarding the template. My template now works as intended.</p>
<p>One remaining question I have&#8211;and I havent seen a tutorial about this anywhere: how do you create a dynamic template that can call subform sets programmatically instead of by xpath? As I mentioned above, our XML data can be n levels deep. To get my template working I hardwired each subform set to distinct level of nodes in the XML data and my templates can only support a depth of ten levels. Ideally we&#8217;d be able to render a subform set recursively for any node or condition in our XML.</p>
<p>I&#8217;d love to see a tutorial on this ;)</p>
<p>thx<br />
Paul</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://forms.stefcameron.com/2009/08/03/connecting-to-a-schema/comment-page-1/#comment-58017</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Thu, 22 Oct 2009 16:46:35 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2009/08/03/connecting-to-a-schema/#comment-58017</guid>
		<description>Hi Cameron--

Thanks for this informative article. My company is an Adobe Solutions Provider and I am working on a template to display data from a complicated/nested XML data source. All of the examples I&#039;ve seen for rendering data from external XML files are 1 or two levels deep. We need to design a flexible template that can handle n levels of data.

I&#039;ve been building my template using a sample XML file as both a preview source and data binding and have created a few fields that are bound to this source. The problem Im having is that no matter what I do I cant get more than 2 levels of data to render in my form. Is there some inherent limitation when binding data to XML instead of XSD/schema?

If you&#039;re willing Im happy to send/post my template and data source for a future tutorial ;)

Thanks again and kind regards,
Paul</description>
		<content:encoded><![CDATA[<p>Hi Cameron&#8211;</p>
<p>Thanks for this informative article. My company is an Adobe Solutions Provider and I am working on a template to display data from a complicated/nested XML data source. All of the examples I&#8217;ve seen for rendering data from external XML files are 1 or two levels deep. We need to design a flexible template that can handle n levels of data.</p>
<p>I&#8217;ve been building my template using a sample XML file as both a preview source and data binding and have created a few fields that are bound to this source. The problem Im having is that no matter what I do I cant get more than 2 levels of data to render in my form. Is there some inherent limitation when binding data to XML instead of XSD/schema?</p>
<p>If you&#8217;re willing Im happy to send/post my template and data source for a future tutorial ;)</p>
<p>Thanks again and kind regards,<br />
Paul</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2009/08/03/connecting-to-a-schema/comment-page-1/#comment-54465</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Mon, 24 Aug 2009 02:09:47 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2009/08/03/connecting-to-a-schema/#comment-54465</guid>
		<description>Carsten M, Carsten Meyer,

You two comments seem to be asking the same basic question about this unbound data node whose value you need to get within a repeating data set.

Each form object that is bound to data has a &quot;dataNode&quot; property that you can use to access its underlying data node in the Data DOM. Since the checkbox isn&#039;t bound to data but the parent (repeating) subform is, you can use an expression like this one to get the value of the VISIBLE data node inside the instance of the repeating data group node bound to the current instance of the repeating subform:

&lt;pre&gt;&lt;code&gt;this.parent.dataNode.VISIBLE.value;&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Carsten M, Carsten Meyer,</p>
<p>You two comments seem to be asking the same basic question about this unbound data node whose value you need to get within a repeating data set.</p>
<p>Each form object that is bound to data has a &#8220;dataNode&#8221; property that you can use to access its underlying data node in the Data DOM. Since the checkbox isn&#8217;t bound to data but the parent (repeating) subform is, you can use an expression like this one to get the value of the VISIBLE data node inside the instance of the repeating data group node bound to the current instance of the repeating subform:</p>
<pre><code>this.parent.dataNode.VISIBLE.value;</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2009/08/03/connecting-to-a-schema/comment-page-1/#comment-54100</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Sat, 15 Aug 2009 03:20:58 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2009/08/03/connecting-to-a-schema/#comment-54100</guid>
		<description>Sandeep,

Please see &lt;a href=&quot;http://forms.stefcameron.com/2006/11/11/instance-manager-object-reference/comment-page-3/#comment-54099&quot; rel=&quot;nofollow&quot;&gt;my response&lt;/a&gt; to your original comment on the other post.

I&#039;m backlogged about 10 days with comments to respond to at the moment which is why I hadn&#039;t yet responded to your first one.</description>
		<content:encoded><![CDATA[<p>Sandeep,</p>
<p>Please see <a href="http://forms.stefcameron.com/2006/11/11/instance-manager-object-reference/comment-page-3/#comment-54099" rel="nofollow">my response</a> to your original comment on the other post.</p>
<p>I&#8217;m backlogged about 10 days with comments to respond to at the moment which is why I hadn&#8217;t yet responded to your first one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sandeep</title>
		<link>http://forms.stefcameron.com/2009/08/03/connecting-to-a-schema/comment-page-1/#comment-54015</link>
		<dc:creator>Sandeep</dc:creator>
		<pubDate>Thu, 13 Aug 2009 13:22:52 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2009/08/03/connecting-to-a-schema/#comment-54015</guid>
		<description>Hello Stefan,

I have already posted this question in instance manager category. I haven&#039;t seen any activity in that category since april, i am reposting the same question here again, though this topic does not belong to this section.

I have a form with 5 paragraphs. I wrapped each paragraph in a subform(sf1, sf2, sf3, sf4), also wrapped all these subforms in a flowed subform. Now, I want to hide and unhide these paragraphs based on a condition. This condition is sent through a payload XML.

Let us say, i have a sequence
1,2,3 sent in the payload XML to render the form. Based on this condition, I have to display first three paragraphs and I never had a problem to display this sequence.

Now if i have a sequence,
3,1,4.
How can i change the sequence of the paragraphs in a flowed subform?
All i know is, subforms in a flowed container are displayed in the order they are built in the hierarchy.

Can you please let me know whether my approach is correct or not? Also, can you give me a solution to change the sequence of the subforms in a flowed container.

Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Hello Stefan,</p>
<p>I have already posted this question in instance manager category. I haven&#8217;t seen any activity in that category since april, i am reposting the same question here again, though this topic does not belong to this section.</p>
<p>I have a form with 5 paragraphs. I wrapped each paragraph in a subform(sf1, sf2, sf3, sf4), also wrapped all these subforms in a flowed subform. Now, I want to hide and unhide these paragraphs based on a condition. This condition is sent through a payload XML.</p>
<p>Let us say, i have a sequence<br />
1,2,3 sent in the payload XML to render the form. Based on this condition, I have to display first three paragraphs and I never had a problem to display this sequence.</p>
<p>Now if i have a sequence,<br />
3,1,4.<br />
How can i change the sequence of the paragraphs in a flowed subform?<br />
All i know is, subforms in a flowed container are displayed in the order they are built in the hierarchy.</p>
<p>Can you please let me know whether my approach is correct or not? Also, can you give me a solution to change the sequence of the subforms in a flowed container.</p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carsten Meyer</title>
		<link>http://forms.stefcameron.com/2009/08/03/connecting-to-a-schema/comment-page-1/#comment-53975</link>
		<dc:creator>Carsten Meyer</dc:creator>
		<pubDate>Wed, 12 Aug 2009 09:16:52 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2009/08/03/connecting-to-a-schema/#comment-53975</guid>
		<description>hello,

I have a repeating table row that is bound to data structure such as movie.data[*]. Within that row I have different UI elements such as checkbox, textinput, etc. 
Depending on the value of movie.data[*].category I want to use just one of the UI elements.
(e.g. if category == &quot;drama&quot; make checkbox visible)
Therefore I want to use the initialize event of the table row and read the movie.data[*].category data.
Q: How do I access this data? I have used quite a number of statements, such as:

xfa.resolveNode(&quot;$record.movie.data[*].category&quot;).value
xfa.resolveNode(&quot;category&quot;).value
and many more, without success.

Basically I just want to have scripting access to the data of the structure my table row is bound to. 

Thx a lot</description>
		<content:encoded><![CDATA[<p>hello,</p>
<p>I have a repeating table row that is bound to data structure such as movie.data[*]. Within that row I have different UI elements such as checkbox, textinput, etc.<br />
Depending on the value of movie.data[*].category I want to use just one of the UI elements.<br />
(e.g. if category == &#8220;drama&#8221; make checkbox visible)<br />
Therefore I want to use the initialize event of the table row and read the movie.data[*].category data.<br />
Q: How do I access this data? I have used quite a number of statements, such as:</p>
<p>xfa.resolveNode(&#8220;$record.movie.data[*].category&#8221;).value<br />
xfa.resolveNode(&#8220;category&#8221;).value<br />
and many more, without success.</p>
<p>Basically I just want to have scripting access to the data of the structure my table row is bound to. </p>
<p>Thx a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carsten M</title>
		<link>http://forms.stefcameron.com/2009/08/03/connecting-to-a-schema/comment-page-1/#comment-53958</link>
		<dc:creator>Carsten M</dc:creator>
		<pubDate>Tue, 11 Aug 2009 23:20:18 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2009/08/03/connecting-to-a-schema/#comment-53958</guid>
		<description>hello,

I am struggeling with quite a nasty problem. 

I have a repeating subform that is bound to structure/ table (ROOT.DATA[*]) such as in your article. In this subform there is a checkbox that is not bound to anything!
(Normal binding works! (without scripting) as I have used a Textfild that I have bound to data called &quot;VISIBLE&quot;) 
However, in the initialize event of checkbox I need to access the element ROOT.DATA[*].VISIBLE using the data DOM by myself. 
How can I accomblish that. As the the parrent subform repeates for each ROOT.DATA, I want to read the VISIBLE element of the current subform-instance in the initialize event of the checkbox.

I have tried:
xfa.resolveNode(&quot;$record.ROOT.DATA[*].VISIBLE&quot;).value
xfa.resolveNode(&quot;ROOT.DATA[*].VISIBLE&quot;).value
this.resolveNode(&quot;VISIBLE&quot;).value

and a looooooooot more fancy expressions.
I guess its not much of a problem, but I would be realy grateful.

Thx</description>
		<content:encoded><![CDATA[<p>hello,</p>
<p>I am struggeling with quite a nasty problem. </p>
<p>I have a repeating subform that is bound to structure/ table (ROOT.DATA[*]) such as in your article. In this subform there is a checkbox that is not bound to anything!<br />
(Normal binding works! (without scripting) as I have used a Textfild that I have bound to data called &#8220;VISIBLE&#8221;)<br />
However, in the initialize event of checkbox I need to access the element ROOT.DATA[*].VISIBLE using the data DOM by myself.<br />
How can I accomblish that. As the the parrent subform repeates for each ROOT.DATA, I want to read the VISIBLE element of the current subform-instance in the initialize event of the checkbox.</p>
<p>I have tried:<br />
xfa.resolveNode(&#8220;$record.ROOT.DATA[*].VISIBLE&#8221;).value<br />
xfa.resolveNode(&#8220;ROOT.DATA[*].VISIBLE&#8221;).value<br />
this.resolveNode(&#8220;VISIBLE&#8221;).value</p>
<p>and a looooooooot more fancy expressions.<br />
I guess its not much of a problem, but I would be realy grateful.</p>
<p>Thx</p>
]]></content:encoded>
	</item>
</channel>
</rss>
