<?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: Creating and Loading Data Nodes</title>
	<atom:link href="http://forms.stefcameron.com/2009/06/01/creating-and-loading-data-nodes/feed/" rel="self" type="application/rss+xml" />
	<link>http://forms.stefcameron.com/2009/06/01/creating-and-loading-data-nodes/</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/2009/06/01/creating-and-loading-data-nodes/#comment-7064</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Wed, 14 Apr 2010 11:54:09 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2009/06/01/creating-and-loading-data-nodes/#comment-7064</guid>
		<description>@Akshat,

textfield2 on page_02 isn&#039;t being filled because the merging algorithm finds textfield1 on page_01 to bind the data first. Therefore, there&#039;s no data left to bind to textfield2.

If you want textfield2 on page_02 to duplicate the &lt;em&gt;instances&lt;/em&gt; of textfield1 on page_01, you would have to remove the binding on textfield2 and use script to duplicate what the state of textfield1.

For example, you could script the Initialize event (which happens after data has been merged into the form) of the root subform (top-most subform in the Hierarchy palette) in order to inspect the instance of textfield1 and create mirror instances of textfield2.</description>
		<content:encoded><![CDATA[<p>@Akshat,</p>
<p>textfield2 on page_02 isn&#8217;t being filled because the merging algorithm finds textfield1 on page_01 to bind the data first. Therefore, there&#8217;s no data left to bind to textfield2.</p>
<p>If you want textfield2 on page_02 to duplicate the <em>instances</em> of textfield1 on page_01, you would have to remove the binding on textfield2 and use script to duplicate what the state of textfield1.</p>
<p>For example, you could script the Initialize event (which happens after data has been merged into the form) of the root subform (top-most subform in the Hierarchy palette) in order to inspect the instance of textfield1 and create mirror instances of textfield2.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Akshat</title>
		<link>http://forms.stefcameron.com/2009/06/01/creating-and-loading-data-nodes/#comment-7063</link>
		<dc:creator>Akshat</dc:creator>
		<pubDate>Mon, 12 Apr 2010 09:23:23 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2009/06/01/creating-and-loading-data-nodes/#comment-7063</guid>
		<description>Hi,

We have textfield1 on page_01 which is getting repeated according to data coming in xml, we have another textfield2 on the page_02 which is having same binding  (used in the page_01 on textfield1) and also repeating one, but the data is not coming in it.
Its looks like a complicated issue and this functionality needed to be worked   as per our requirement, so need your valuable inputs to resolve it.



Inresting thing   is that if we delete the  textfield1 on page_01 then textfield2 on the page_02 is working properlly.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>We have textfield1 on page_01 which is getting repeated according to data coming in xml, we have another textfield2 on the page_02 which is having same binding  (used in the page_01 on textfield1) and also repeating one, but the data is not coming in it.<br />
Its looks like a complicated issue and this functionality needed to be worked   as per our requirement, so need your valuable inputs to resolve it.</p>
<p>Inresting thing   is that if we delete the  textfield1 on page_01 then textfield2 on the page_02 is working properlly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2009/06/01/creating-and-loading-data-nodes/#comment-7062</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Tue, 22 Sep 2009 20:27:27 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2009/06/01/creating-and-loading-data-nodes/#comment-7062</guid>
		<description>duane,

Looks like you got your answer &lt;a href=&quot;http://blogs.adobe.com/formfeed/2008/10/form_variables.html#comment-2097922&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;... I&#039;m glad John was able to help you out!</description>
		<content:encoded><![CDATA[<p>duane,</p>
<p>Looks like you got your answer <a href="http://blogs.adobe.com/formfeed/2008/10/form_variables.html#comment-2097922" rel="nofollow">here</a>&#8230; I&#8217;m glad John was able to help you out!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: duane</title>
		<link>http://forms.stefcameron.com/2009/06/01/creating-and-loading-data-nodes/#comment-7061</link>
		<dc:creator>duane</dc:creator>
		<pubDate>Tue, 15 Sep 2009 07:50:35 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2009/06/01/creating-and-loading-data-nodes/#comment-7061</guid>
		<description>Hi Stefan,

I&#039;ve been using xfa.form.createNode and extras.nodes.append to create and append new nodes on form objects (I don&#039;t want to persist the information into the xml data).

However, this seems to break the Reader Extension usage rights on the form.  If I open the form, perform an action which causes these nodes to be created and appended, then save and re-open the form; I get the &quot;This document enabled extended features in Adobe Reader.  The document has been changed since it was created and use of extended features is no longer available.&quot;  message.

Any advise as to how I can persist dynamically created object properties without invalidating Reader Extension usage rights?

thanks
- duane</description>
		<content:encoded><![CDATA[<p>Hi Stefan,</p>
<p>I&#8217;ve been using xfa.form.createNode and extras.nodes.append to create and append new nodes on form objects (I don&#8217;t want to persist the information into the xml data).</p>
<p>However, this seems to break the Reader Extension usage rights on the form.  If I open the form, perform an action which causes these nodes to be created and appended, then save and re-open the form; I get the &#8220;This document enabled extended features in Adobe Reader.  The document has been changed since it was created and use of extended features is no longer available.&#8221;  message.</p>
<p>Any advise as to how I can persist dynamically created object properties without invalidating Reader Extension usage rights?</p>
<p>thanks<br />
- duane</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2009/06/01/creating-and-loading-data-nodes/#comment-7060</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Mon, 22 Jun 2009 15:42:09 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2009/06/01/creating-and-loading-data-nodes/#comment-7060</guid>
		<description>Justin,

I&#039;m glad to hear you find useful things on my blog!

I believe the problems you&#039;re experiencing are related to the fact that with bindings to database data connections, there can only be one record that is active at any given time. When you do the &quot;addNew()&quot; call, the data in the fields currently bound to nodes in the data connection is set into the current record and a new record is created.

While you can &lt;i&gt;display&lt;/i&gt; multiple database records at once in a form, you can&#039;t edit multiple records at the same time.

To do this, I would recommend you read my post on &lt;a href=&quot;http://forms.stefcameron.com/2006/12/18/databases-inserting-updating-and-deleting-records/&quot; rel=&quot;nofollow&quot;&gt;inserting, updating and deleting records&lt;/a&gt; in a database. Using this technique, you could have the user add and fill multiple rows in the table and then have a single submit button that they click when they&#039;re done. The submit button&#039;s script would then insert new records into the database, one for each row in the table.</description>
		<content:encoded><![CDATA[<p>Justin,</p>
<p>I&#8217;m glad to hear you find useful things on my blog!</p>
<p>I believe the problems you&#8217;re experiencing are related to the fact that with bindings to database data connections, there can only be one record that is active at any given time. When you do the &#8220;addNew()&#8221; call, the data in the fields currently bound to nodes in the data connection is set into the current record and a new record is created.</p>
<p>While you can <i>display</i> multiple database records at once in a form, you can&#8217;t edit multiple records at the same time.</p>
<p>To do this, I would recommend you read my post on <a href="http://forms.stefcameron.com/2006/12/18/databases-inserting-updating-and-deleting-records/" rel="nofollow">inserting, updating and deleting records</a> in a database. Using this technique, you could have the user add and fill multiple rows in the table and then have a single submit button that they click when they&#8217;re done. The submit button&#8217;s script would then insert new records into the database, one for each row in the table.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin</title>
		<link>http://forms.stefcameron.com/2009/06/01/creating-and-loading-data-nodes/#comment-7059</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Wed, 17 Jun 2009 00:08:12 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2009/06/01/creating-and-loading-data-nodes/#comment-7059</guid>
		<description>Hi Stefan,
excellent blog, I think that everything I&#039;ve done has been based on solutions that I&#039;ve found here. Thanks for sharing!

I&#039;ve designed a simple time sheet for our work, the worker basically fills out their name, week ending, then goes to a table with date picker, the hour started and finished. The next field automatically calculate their hours and overtime if it applies. There are also text fields to describe the job location and description.

I then have a button to add a row to make another entry, because they may be half day at one job and half day at another. They can continue to add rows until they have filled out the whole week&#039;s work.

I have the form connected to an access database with each field in the row bound; an update button to update the new record that was inserted into the database when the form was opened using this scripted in form1 form:ready:

xfa.sourceSet.DataConnection.addNew()



When the user enters one entry and updates, this works perfectly.
When the user clicks to add a new row, the new row contains the data of the first row and when you change one, it changes the other.
When I set the data bindings to incorporate the [*] wildcard, then the new row is empty.
Before:
$record.DataConnection.Start
After:
$record.DataConnection.Start[*]

The problem that I&#039;m running across now is that the update button will only update the info in row[1] and not add the info in row[2].
I set the following command on the click event for when the table has a new row added:
xfa.sourceSet.DataConnection.addNew()

but this didn&#039;t work.
I&#039;m kinda at a loss now what to do, all I need is for the form to be able to add multiple records to the database with one button without having to open it and add each time separtately.
Does LiveCycle support multiple fields with the same name in a dataconnection?
Eg. Hours[1]
Hours[2]

Thanks in advance!
Justin</description>
		<content:encoded><![CDATA[<p>Hi Stefan,<br />
excellent blog, I think that everything I&#8217;ve done has been based on solutions that I&#8217;ve found here. Thanks for sharing!</p>
<p>I&#8217;ve designed a simple time sheet for our work, the worker basically fills out their name, week ending, then goes to a table with date picker, the hour started and finished. The next field automatically calculate their hours and overtime if it applies. There are also text fields to describe the job location and description.</p>
<p>I then have a button to add a row to make another entry, because they may be half day at one job and half day at another. They can continue to add rows until they have filled out the whole week&#8217;s work.</p>
<p>I have the form connected to an access database with each field in the row bound; an update button to update the new record that was inserted into the database when the form was opened using this scripted in form1 form:ready:</p>
<p>xfa.sourceSet.DataConnection.addNew()</p>
<p>When the user enters one entry and updates, this works perfectly.<br />
When the user clicks to add a new row, the new row contains the data of the first row and when you change one, it changes the other.<br />
When I set the data bindings to incorporate the [*] wildcard, then the new row is empty.<br />
Before:<br />
$record.DataConnection.Start<br />
After:<br />
$record.DataConnection.Start[*]</p>
<p>The problem that I&#8217;m running across now is that the update button will only update the info in row[1] and not add the info in row[2].<br />
I set the following command on the click event for when the table has a new row added:<br />
xfa.sourceSet.DataConnection.addNew()</p>
<p>but this didn&#8217;t work.<br />
I&#8217;m kinda at a loss now what to do, all I need is for the form to be able to add multiple records to the database with one button without having to open it and add each time separtately.<br />
Does LiveCycle support multiple fields with the same name in a dataconnection?<br />
Eg. Hours[1]<br />
Hours[2]</p>
<p>Thanks in advance!<br />
Justin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2009/06/01/creating-and-loading-data-nodes/#comment-7058</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Tue, 02 Jun 2009 17:58:42 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2009/06/01/creating-and-loading-data-nodes/#comment-7058</guid>
		<description>John Brinkman,

Thanks! That&#039;s a great time-saving tip about assignNode().</description>
		<content:encoded><![CDATA[<p>John Brinkman,</p>
<p>Thanks! That&#8217;s a great time-saving tip about assignNode().</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Brinkman</title>
		<link>http://forms.stefcameron.com/2009/06/01/creating-and-loading-data-nodes/#comment-7057</link>
		<dc:creator>John Brinkman</dc:creator>
		<pubDate>Tue, 02 Jun 2009 16:41:20 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2009/06/01/creating-and-loading-data-nodes/#comment-7057</guid>
		<description>Stefan:

Nice article.  Lately when I&#039;m creating a simple hierarchy in the data dom I&#039;ve taken to using the assignNode() method.  For example, your sample could have been written as:

xfa.datasets.data.form1.assignNode(&quot;custom.message&quot;, &quot;Hello World!&quot;, 0);

assignNode() will create the necessary hierarchy.  Intermediate nodes are created as dataGroup objects and leaf nodes as dataValue objects.

  John</description>
		<content:encoded><![CDATA[<p>Stefan:</p>
<p>Nice article.  Lately when I&#8217;m creating a simple hierarchy in the data dom I&#8217;ve taken to using the assignNode() method.  For example, your sample could have been written as:</p>
<p>xfa.datasets.data.form1.assignNode(&#8220;custom.message&#8221;, &#8220;Hello World!&#8221;, 0);</p>
<p>assignNode() will create the necessary hierarchy.  Intermediate nodes are created as dataGroup objects and leaf nodes as dataValue objects.</p>
<p>  John</p>
]]></content:encoded>
	</item>
</channel>
</rss>

