<?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: AcroForm Objects</title>
	<atom:link href="http://forms.stefcameron.com/2006/06/10/acroform-objects/feed/" rel="self" type="application/rss+xml" />
	<link>http://forms.stefcameron.com/2006/06/10/acroform-objects/</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/10/acroform-objects/#comment-4963</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Tue, 29 Jun 2010 14:23:05 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=18#comment-4963</guid>
		<description>@Kurt Lukas, Europe, Germany,

&quot;@object&quot; was meant to be replaced by a reference to the drop down list object and &quot;@string&quot; was meant to be replaced by the drop down list&#039;s SOM expression.

The object reference variation is only supported in later versions. Have you tried this?

&lt;pre&gt;&lt;code&gt;xfa.host.openList(DropdownListe1.somExpression)&lt;/code&gt;&lt;/pre&gt;

(also note the capital &quot;L&quot; in &quot;openList&quot;).</description>
		<content:encoded><![CDATA[<p>@Kurt Lukas, Europe, Germany,</p>
<p>&#8220;@object&#8221; was meant to be replaced by a reference to the drop down list object and &#8220;@string&#8221; was meant to be replaced by the drop down list&#8217;s SOM expression.</p>
<p>The object reference variation is only supported in later versions. Have you tried this?</p>
<pre><code>xfa.host.openList(DropdownListe1.somExpression)</code></pre>
<p>(also note the capital &#8220;L&#8221; in &#8220;openList&#8221;).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2006/06/10/acroform-objects/#comment-4962</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Wed, 23 Jun 2010 12:39:50 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=18#comment-4962</guid>
		<description>@DebbieF,

Could this simply be that you&#039;re missing a semi-colon on the following line in your MouseUp event?

&lt;pre&gt;&lt;code&gt;var doc = &quot;BOEForm.pdf&quot;&lt;/code&gt;&lt;/pre&gt;

I don&#039;t see one in the code you provided... Otherwise, I don&#039;t see what would be going wrong.</description>
		<content:encoded><![CDATA[<p>@DebbieF,</p>
<p>Could this simply be that you&#8217;re missing a semi-colon on the following line in your MouseUp event?</p>
<pre><code>var doc = "BOEForm.pdf"</code></pre>
<p>I don&#8217;t see one in the code you provided&#8230; Otherwise, I don&#8217;t see what would be going wrong.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kurt Lukas, Europe, Germany</title>
		<link>http://forms.stefcameron.com/2006/06/10/acroform-objects/#comment-4961</link>
		<dc:creator>Kurt Lukas, Europe, Germany</dc:creator>
		<pubDate>Wed, 16 Jun 2010 12:19:26 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=18#comment-4961</guid>
		<description>ok, it works in MouseEnter-Event, but not in Enter-Event....what´s wrong, please?!</description>
		<content:encoded><![CDATA[<p>ok, it works in MouseEnter-Event, but not in Enter-Event&#8230;.what´s wrong, please?!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kurt Lukas, Europe, Germany</title>
		<link>http://forms.stefcameron.com/2006/06/10/acroform-objects/#comment-4960</link>
		<dc:creator>Kurt Lukas, Europe, Germany</dc:creator>
		<pubDate>Wed, 16 Jun 2010 12:04:41 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=18#comment-4960</guid>
		<description>Back, please, backward my question!!

it works in any event of another control, I have uesed it errorly
in the enter-event of the control itself;
what is th ecorrect event to fire this nice little utility?!</description>
		<content:encoded><![CDATA[<p>Back, please, backward my question!!</p>
<p>it works in any event of another control, I have uesed it errorly<br />
in the enter-event of the control itself;<br />
what is th ecorrect event to fire this nice little utility?!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kurt Lukas, Europe, Germany</title>
		<link>http://forms.stefcameron.com/2006/06/10/acroform-objects/#comment-4959</link>
		<dc:creator>Kurt Lukas, Europe, Germany</dc:creator>
		<pubDate>Wed, 16 Jun 2010 11:55:02 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=18#comment-4959</guid>
		<description>Hello, Dear Sir Stef!

Great area, your works!
I´m searching for examples of the openList-method,
because FormCalc,

xfa.host.openlist(Formular1.#subform[0].DropdownListe1)

doesn´t work;

at your hint you use &quot;@object&quot; and &quot;@string&quot;, I´m sorry,
what is some explicit syntax?!


it´s great for user when they enter with tab or mouse
a DateTime-Field and nothing more move to the little black
triangle to click.....!


please, what to do?!

the code is so cool and so much cool because shortend!


ThankYou Very Much! Yours Kurt Lukas.</description>
		<content:encoded><![CDATA[<p>Hello, Dear Sir Stef!</p>
<p>Great area, your works!<br />
I´m searching for examples of the openList-method,<br />
because FormCalc,</p>
<p>xfa.host.openlist(Formular1.#subform[0].DropdownListe1)</p>
<p>doesn´t work;</p>
<p>at your hint you use &#8220;@object&#8221; and &#8220;@string&#8221;, I´m sorry,<br />
what is some explicit syntax?!</p>
<p>it´s great for user when they enter with tab or mouse<br />
a DateTime-Field and nothing more move to the little black<br />
triangle to click&#8230;..!</p>
<p>please, what to do?!</p>
<p>the code is so cool and so much cool because shortend!</p>
<p>ThankYou Very Much! Yours Kurt Lukas.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DebbieF</title>
		<link>http://forms.stefcameron.com/2006/06/10/acroform-objects/#comment-4958</link>
		<dc:creator>DebbieF</dc:creator>
		<pubDate>Sun, 13 Jun 2010 02:30:45 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=18#comment-4958</guid>
		<description>Stefan,

I&#039;m using Adobe LiveCycle Designer ES 8.2.  I&#039;ve successfully connected to a database and can populate the form by making selections from 2 drop downs.  This works great thanks to the great posts shared in the forums.

What I need to do next is to dynamically save the form to a file location based on text in the form.  I&#039;ve read all the blogs on this subject and my code error in the JavaScript console reads:
doc is not defined.

I&#039;ve created and recreated many versions of the trusted function (folder level Javascripts - saved in the C:\Program Files\Adobe\Acrobat 9.0\Acrobat\Javascripts.

Please, how do I get the doc to be recognized by the Adobe LiveCycle form?  I&#039;ve restarted Acrobat, etc.  I&#039;ve made all of the gotcha settings like enabling menu item JavaScript execution.

Here&#039;s the folder level JS function:

// application folder function

	mySaveAs = app.trustPropagatorFunction(function(oDoc, cPath, cFlName)

	{

		app.beginPriv();

			oDoc.saveAs(oDoc, cPath, cFlName);

		app.endPriv();

	})

	myTrustedSpecialTaskFunc = app.trustedFunction(function(oDoc, cPath, cFlName)

        {

	// Check name of the current form
	var aDocumentFileName = this.documentFileName;

	// If name of the current form is ... save it to the following target
	if (aDocumentFileName == &quot;BOEForm.pdf&quot;)


		// Privileged and/or non-privileged code above

		app.beginPriv();

			mySaveAs(oDoc, cPath, cFlName);

		app.endPriv();

		// Privileged and/or non-privileged code below

	});


Here&#039;s the mouseup event code in the Adobe LiveCycle Form-

 topmostSubform.Form1.Page1.Button2::mouseUp - (JavaScript, client)
aDocumentFileName = this.documentFileName;

var doc = &quot;BOEForm.pdf&quot;

event.target.myTrustedSpecialTaskFunc(event.target, &quot;/c/BOEForm.pdf&quot;, &quot;mySavedDoc.pdf&quot;); //this should execute the save as js file

And the JS Console Error Reports:

doc is not defined
9:XFA:topmostSubform[0]:Form1[0]:Page1[0]:Button2[0]:mouseUp

I appreciate your help.  I&#039;m hoping to solve this so I can go on with life....

Thank you!</description>
		<content:encoded><![CDATA[<p>Stefan,</p>
<p>I&#8217;m using Adobe LiveCycle Designer ES 8.2.  I&#8217;ve successfully connected to a database and can populate the form by making selections from 2 drop downs.  This works great thanks to the great posts shared in the forums.</p>
<p>What I need to do next is to dynamically save the form to a file location based on text in the form.  I&#8217;ve read all the blogs on this subject and my code error in the JavaScript console reads:<br />
doc is not defined.</p>
<p>I&#8217;ve created and recreated many versions of the trusted function (folder level Javascripts &#8211; saved in the C:\Program Files\Adobe\Acrobat 9.0\Acrobat\Javascripts.</p>
<p>Please, how do I get the doc to be recognized by the Adobe LiveCycle form?  I&#8217;ve restarted Acrobat, etc.  I&#8217;ve made all of the gotcha settings like enabling menu item JavaScript execution.</p>
<p>Here&#8217;s the folder level JS function:</p>
<p>// application folder function</p>
<p>	mySaveAs = app.trustPropagatorFunction(function(oDoc, cPath, cFlName)</p>
<p>	{</p>
<p>		app.beginPriv();</p>
<p>			oDoc.saveAs(oDoc, cPath, cFlName);</p>
<p>		app.endPriv();</p>
<p>	})</p>
<p>	myTrustedSpecialTaskFunc = app.trustedFunction(function(oDoc, cPath, cFlName)</p>
<p>        {</p>
<p>	// Check name of the current form<br />
	var aDocumentFileName = this.documentFileName;</p>
<p>	// If name of the current form is &#8230; save it to the following target<br />
	if (aDocumentFileName == &#8220;BOEForm.pdf&#8221;)</p>
<p>		// Privileged and/or non-privileged code above</p>
<p>		app.beginPriv();</p>
<p>			mySaveAs(oDoc, cPath, cFlName);</p>
<p>		app.endPriv();</p>
<p>		// Privileged and/or non-privileged code below</p>
<p>	});</p>
<p>Here&#8217;s the mouseup event code in the Adobe LiveCycle Form-</p>
<p> topmostSubform.Form1.Page1.Button2::mouseUp &#8211; (JavaScript, client)<br />
aDocumentFileName = this.documentFileName;</p>
<p>var doc = &#8220;BOEForm.pdf&#8221;</p>
<p>event.target.myTrustedSpecialTaskFunc(event.target, &#8220;/c/BOEForm.pdf&#8221;, &#8220;mySavedDoc.pdf&#8221;); //this should execute the save as js file</p>
<p>And the JS Console Error Reports:</p>
<p>doc is not defined<br />
9:XFA:topmostSubform[0]:Form1[0]:Page1[0]:Button2[0]:mouseUp</p>
<p>I appreciate your help.  I&#8217;m hoping to solve this so I can go on with life&#8230;.</p>
<p>Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2006/06/10/acroform-objects/#comment-4957</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Mon, 25 May 2009 19:58:59 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=18#comment-4957</guid>
		<description>justin poyser,

Unfortunately, these dialogs are created by Acrobat/Reader and can&#039;t be modified.</description>
		<content:encoded><![CDATA[<p>justin poyser,</p>
<p>Unfortunately, these dialogs are created by Acrobat/Reader and can&#8217;t be modified.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: justin poyser</title>
		<link>http://forms.stefcameron.com/2006/06/10/acroform-objects/#comment-4956</link>
		<dc:creator>justin poyser</dc:creator>
		<pubDate>Sat, 23 May 2009 11:20:12 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=18#comment-4956</guid>
		<description>Hi Stefan,

I&#039;ve been looking around for a while for an example that would show me how to create a popup whereby I can control the font size and color. I&#039;ve had a look at the adobe javascript dialog reference and the xfa.host.messagebox api, but haven&#039;t had much luck. Do you have any idea on how I can achieve this.

Regards

Justin</description>
		<content:encoded><![CDATA[<p>Hi Stefan,</p>
<p>I&#8217;ve been looking around for a while for an example that would show me how to create a popup whereby I can control the font size and color. I&#8217;ve had a look at the adobe javascript dialog reference and the xfa.host.messagebox api, but haven&#8217;t had much luck. Do you have any idea on how I can achieve this.</p>
<p>Regards</p>
<p>Justin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2006/06/10/acroform-objects/#comment-4955</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Tue, 27 Jan 2009 03:27:18 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=18#comment-4955</guid>
		<description>Cheska,

I&#039;m not quite sure I understand the way in which you&#039;ve setup your checkboxes. On one hand, it sounds like you want them to be mutually-exclusive (i.e. users can only check one out of the set like radio buttons) however you also mention being able to select multiple checkboxes...

Mutual-exclusivity aside, let&#039;s say you had 7 checkboxes, each with an &quot;on&quot; value of 1 to 7 and an &quot;off&quot; value of 0, and you wanted to calculate the average based on the number of checkboxes checked. The numeric field that displays the average would have a Calculate script like this (with the language set to JavaScript):

&lt;pre&gt;&lt;code&gt;var total = 0;
var checkedCount = 0;

if (checkbox1.rawValue &gt; 0)
{
    total += checkbox1.rawValue;
    checkedCount++;
}

if (checkbox2.rawValue &gt; 0)
{
    total += checkbox2.rawValue;
    checkedCount++;
}

[...]

if (checkbox7.rawValue &gt; 0)
{
    total += checkbox7.rawValue;
    checkedCount++;
}

// Careful not to divide by zero if no checkboxes are checked!
if (checkedCount &gt; 0)
    this.rawValue = total / checkedCount;
else
    this.rawValue = 0;&lt;/code&gt;&lt;/pre&gt;

This isn&#039;t the simplest script you could write but I think it makes it easier to grasp the concept this way.</description>
		<content:encoded><![CDATA[<p>Cheska,</p>
<p>I&#8217;m not quite sure I understand the way in which you&#8217;ve setup your checkboxes. On one hand, it sounds like you want them to be mutually-exclusive (i.e. users can only check one out of the set like radio buttons) however you also mention being able to select multiple checkboxes&#8230;</p>
<p>Mutual-exclusivity aside, let&#8217;s say you had 7 checkboxes, each with an &#8220;on&#8221; value of 1 to 7 and an &#8220;off&#8221; value of 0, and you wanted to calculate the average based on the number of checkboxes checked. The numeric field that displays the average would have a Calculate script like this (with the language set to JavaScript):</p>
<pre><code>var total = 0;
var checkedCount = 0;

if (checkbox1.rawValue > 0)
{
    total += checkbox1.rawValue;
    checkedCount++;
}

if (checkbox2.rawValue > 0)
{
    total += checkbox2.rawValue;
    checkedCount++;
}

[...]

if (checkbox7.rawValue > 0)
{
    total += checkbox7.rawValue;
    checkedCount++;
}

// Careful not to divide by zero if no checkboxes are checked!
if (checkedCount > 0)
    this.rawValue = total / checkedCount;
else
    this.rawValue = 0;</code></pre>
<p>This isn&#8217;t the simplest script you could write but I think it makes it easier to grasp the concept this way.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cheska</title>
		<link>http://forms.stefcameron.com/2006/06/10/acroform-objects/#comment-4954</link>
		<dc:creator>Cheska</dc:creator>
		<pubDate>Sun, 25 Jan 2009 07:21:02 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=18#comment-4954</guid>
		<description>Hi Stefan,

I am desperate to get a solution to my problem with average calculation using checkboxes.  I hope you can help me.  I am a first time user of the designer but was successful on completing my form.  The problem came up when a numeric field to calculate average using checkbox values was not giving me the correct number.  My form has a section with 7 rows or questions.  I use 4 checkboxes to select answer. Boxes are set to global so only one check for each row.  All 4 boxes in a row have the same fieldname. To calculate the average: sum of the values of the checboxes (1-4) / count of the checkboxes which is 7.  The problem came up when only 5 rows are checked. How do I make the denominator a variable so that it will only count the checkboxes that are checked???
Please help.  Thanks in advance.

Cheska</description>
		<content:encoded><![CDATA[<p>Hi Stefan,</p>
<p>I am desperate to get a solution to my problem with average calculation using checkboxes.  I hope you can help me.  I am a first time user of the designer but was successful on completing my form.  The problem came up when a numeric field to calculate average using checkbox values was not giving me the correct number.  My form has a section with 7 rows or questions.  I use 4 checkboxes to select answer. Boxes are set to global so only one check for each row.  All 4 boxes in a row have the same fieldname. To calculate the average: sum of the values of the checboxes (1-4) / count of the checkboxes which is 7.  The problem came up when only 5 rows are checked. How do I make the denominator a variable so that it will only count the checkboxes that are checked???<br />
Please help.  Thanks in advance.</p>
<p>Cheska</p>
]]></content:encoded>
	</item>
</channel>
</rss>

