<?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>Fri, 12 Mar 2010 02:03:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2009/06/01/creating-and-loading-data-nodes/comment-page-1/#comment-56086</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-56086</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-page-1/#comment-55629</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-55629</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-page-1/#comment-50933</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-50933</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-page-1/#comment-50428</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-50428</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-page-1/#comment-49514</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-49514</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-page-1/#comment-49509</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-49509</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>
