<?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: FormCalc Expressions (If and For)</title>
	<atom:link href="http://forms.stefcameron.com/2006/09/14/formcalc-expressions-if-and-for/feed/" rel="self" type="application/rss+xml" />
	<link>http://forms.stefcameron.com/2006/09/14/formcalc-expressions-if-and-for/</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/09/14/formcalc-expressions-if-and-for/#comment-5511</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Fri, 10 Sep 2010 11:30:35 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=40#comment-5511</guid>
		<description>@Ainhoa,

Once the value is overriden by the user, the calculation won&#039;t run anymore.

Also note the &lt;a href=&quot;http://forms.stefcameron.com/2006/08/29/bug-cannot-override-calculations/&quot; rel=&quot;nofollow&quot;&gt;bug&lt;/a&gt; on calculation overrides. It was fixed in Acrobat/Reader 8.0.</description>
		<content:encoded><![CDATA[<p>@Ainhoa,</p>
<p>Once the value is overriden by the user, the calculation won&#8217;t run anymore.</p>
<p>Also note the <a href="http://forms.stefcameron.com/2006/08/29/bug-cannot-override-calculations/" rel="nofollow">bug</a> on calculation overrides. It was fixed in Acrobat/Reader 8.0.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ainhoa</title>
		<link>http://forms.stefcameron.com/2006/09/14/formcalc-expressions-if-and-for/#comment-5510</link>
		<dc:creator>Ainhoa</dc:creator>
		<pubDate>Thu, 26 Aug 2010 06:52:24 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=40#comment-5510</guid>
		<description>Hi Stefan

Thank you for your reply, but I continue with the same problem, I did what you said but when I want to change the calculation value it does not allow. If i change Run at and select &quot; client&quot; then I can change it, but the calculation does not work any longer.

Thnks</description>
		<content:encoded><![CDATA[<p>Hi Stefan</p>
<p>Thank you for your reply, but I continue with the same problem, I did what you said but when I want to change the calculation value it does not allow. If i change Run at and select &#8221; client&#8221; then I can change it, but the calculation does not work any longer.</p>
<p>Thnks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2006/09/14/formcalc-expressions-if-and-for/#comment-5509</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Tue, 27 Jul 2010 18:55:29 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=40#comment-5509</guid>
		<description>@Ainhoa,

You need to set the &quot;Object palette &gt; Value tab &gt; Type property&quot; to &quot;Calculated -- User can override&quot; and choose &quot;script&quot; as the source for the calculation.</description>
		<content:encoded><![CDATA[<p>@Ainhoa,</p>
<p>You need to set the &#8220;Object palette > Value tab > Type property&#8221; to &#8220;Calculated &#8212; User can override&#8221; and choose &#8220;script&#8221; as the source for the calculation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ainhoa</title>
		<link>http://forms.stefcameron.com/2006/09/14/formcalc-expressions-if-and-for/#comment-5508</link>
		<dc:creator>Ainhoa</dc:creator>
		<pubDate>Thu, 22 Jul 2010 08:26:41 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=40#comment-5508</guid>
		<description>Hi Stefan,

I am just trytin to create a form in Adobe designer. My problem is  what follows:

I have the followin expression:

F.P2.numCiswitch::calculate - (FormCalc, client) ---------------------------------------------

if F.P1.numCurrency ne 2 then
F.P2.numCiswitch.rawValue=45
elseif
F.P1.numCurrency ne 1
F.P2.numCiswitch.rawValue= 64.5
endif

But I want also the possibility that an user can modify this prices, but even if I entered &quot;user entered- recommended&quot; it does not work, because once I click the enter it goes again to the if expression values.

Thanks,
Ainhoa</description>
		<content:encoded><![CDATA[<p>Hi Stefan,</p>
<p>I am just trytin to create a form in Adobe designer. My problem is  what follows:</p>
<p>I have the followin expression:</p>
<p>F.P2.numCiswitch::calculate &#8211; (FormCalc, client) &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>if F.P1.numCurrency ne 2 then<br />
F.P2.numCiswitch.rawValue=45<br />
elseif<br />
F.P1.numCurrency ne 1<br />
F.P2.numCiswitch.rawValue= 64.5<br />
endif</p>
<p>But I want also the possibility that an user can modify this prices, but even if I entered &#8220;user entered- recommended&#8221; it does not work, because once I click the enter it goes again to the if expression values.</p>
<p>Thanks,<br />
Ainhoa</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2006/09/14/formcalc-expressions-if-and-for/#comment-5507</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Thu, 17 Jun 2010 02:08:39 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=40#comment-5507</guid>
		<description>@Kiran,

This can be done quite simply using script that identifies the current page out of the number of pages. Knowing that each page gets an instance of the master page, you just need script in a hidden button, for example, on the same master page as the two images that does this:

&lt;pre&gt;&lt;code&gt;// JavaScript:
if (xfa.layout.page(this) == xfa.layout.pageCount())
    Image1.presence = &quot;hidden&quot;;
else
    Image2.presence = &quot;hidden&quot;;&lt;/code&gt;&lt;/pre&gt;

The code above will leave Image1 visible on all pages except the last one where Image2 will be the only visible image.</description>
		<content:encoded><![CDATA[<p>@Kiran,</p>
<p>This can be done quite simply using script that identifies the current page out of the number of pages. Knowing that each page gets an instance of the master page, you just need script in a hidden button, for example, on the same master page as the two images that does this:</p>
<pre><code>// JavaScript:
if (xfa.layout.page(this) == xfa.layout.pageCount())
    Image1.presence = "hidden";
else
    Image2.presence = "hidden";</code></pre>
<p>The code above will leave Image1 visible on all pages except the last one where Image2 will be the only visible image.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kiran</title>
		<link>http://forms.stefcameron.com/2006/09/14/formcalc-expressions-if-and-for/#comment-5506</link>
		<dc:creator>Kiran</dc:creator>
		<pubDate>Thu, 10 Jun 2010 03:30:26 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=40#comment-5506</guid>
		<description>Hi Stefan,

I have two images at the same location on the master page. I need to print the first image if the current page is not equal to number of pages and if the current page equals to number of pages then print the other image.

I have a table in the main window that overflows through n number of pages. I tried it using the java script but it did not work for me. Can you please provide me some inputs.

Thanks,
Kiran.</description>
		<content:encoded><![CDATA[<p>Hi Stefan,</p>
<p>I have two images at the same location on the master page. I need to print the first image if the current page is not equal to number of pages and if the current page equals to number of pages then print the other image.</p>
<p>I have a table in the main window that overflows through n number of pages. I tried it using the java script but it did not work for me. Can you please provide me some inputs.</p>
<p>Thanks,<br />
Kiran.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2006/09/14/formcalc-expressions-if-and-for/#comment-5505</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Tue, 01 Jun 2010 02:51:47 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=40#comment-5505</guid>
		<description>@Mr. K Luk,

You can force the list part of a drop down list to open programmatically by using the xfa.host.openList({object}) function where {object} is a reference to the drop down list.

To do this when the user clicks into the drop down list, you can call the function in the field&#039;s Enter event which occurs when the field receives input focus.</description>
		<content:encoded><![CDATA[<p>@Mr. K Luk,</p>
<p>You can force the list part of a drop down list to open programmatically by using the xfa.host.openList({object}) function where {object} is a reference to the drop down list.</p>
<p>To do this when the user clicks into the drop down list, you can call the function in the field&#8217;s Enter event which occurs when the field receives input focus.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mr. K Luk</title>
		<link>http://forms.stefcameron.com/2006/09/14/formcalc-expressions-if-and-for/#comment-5504</link>
		<dc:creator>Mr. K Luk</dc:creator>
		<pubDate>Tue, 25 May 2010 04:41:58 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=40#comment-5504</guid>
		<description>oh, Dear, Sir,

horrible, I can´t find good FormCalc hints:

my wish:
when an user entered a drop-down-field or
especcially a calendar-element:
open the list withoutr cklicking to the button, you know!?

I believe it into the enter-event,
but...
...$.open.show...

please, some snippeds or a very good link
inner join stefcameron...?!


ThankYouVeryMuch! Yours Kurt Lukas, Europe, Germany, Bayern.</description>
		<content:encoded><![CDATA[<p>oh, Dear, Sir,</p>
<p>horrible, I can´t find good FormCalc hints:</p>
<p>my wish:<br />
when an user entered a drop-down-field or<br />
especcially a calendar-element:<br />
open the list withoutr cklicking to the button, you know!?</p>
<p>I believe it into the enter-event,<br />
but&#8230;<br />
&#8230;$.open.show&#8230;</p>
<p>please, some snippeds or a very good link<br />
inner join stefcameron&#8230;?!</p>
<p>ThankYouVeryMuch! Yours Kurt Lukas, Europe, Germany, Bayern.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2006/09/14/formcalc-expressions-if-and-for/#comment-5503</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Sun, 16 May 2010 14:09:09 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=40#comment-5503</guid>
		<description>@prasanth,

When you talk about a &quot;Graphic node&quot;, I take it you&#039;re not referring to an XFA form...

To get these images into your form, you&#039;ll need to get their base64-encoded byte strings into some table, make a &lt;a href=&quot;http://forms.stefcameron.com/2006/10/12/displaying-all-records-from-an-odbc-data-connection/&quot; rel=&quot;nofollow&quot;&gt;data connection to that table&lt;/a&gt;, and bind the image byte column to a repeatable image field (i.e. an image field in a repeatable subform) on your form.</description>
		<content:encoded><![CDATA[<p>@prasanth,</p>
<p>When you talk about a &#8220;Graphic node&#8221;, I take it you&#8217;re not referring to an XFA form&#8230;</p>
<p>To get these images into your form, you&#8217;ll need to get their base64-encoded byte strings into some table, make a <a href="http://forms.stefcameron.com/2006/10/12/displaying-all-records-from-an-odbc-data-connection/" rel="nofollow">data connection to that table</a>, and bind the image byte column to a repeatable image field (i.e. an image field in a repeatable subform) on your form.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: prasanth</title>
		<link>http://forms.stefcameron.com/2006/09/14/formcalc-expressions-if-and-for/#comment-5502</link>
		<dc:creator>prasanth</dc:creator>
		<pubDate>Wed, 12 May 2010 12:29:10 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=40#comment-5502</guid>
		<description>Hi Stefan,
The Images are stored in DMS and Iam able to pull them into an internal table of type XSTRING.When I try to map this table to an Image field, the images are not displayed. But when I try with a single variable and map it to Graphic node, it works fine.Iam looking for an option on how I can map a table to graphic node ( probably through scripting).</description>
		<content:encoded><![CDATA[<p>Hi Stefan,<br />
The Images are stored in DMS and Iam able to pull them into an internal table of type XSTRING.When I try to map this table to an Image field, the images are not displayed. But when I try with a single variable and map it to Graphic node, it works fine.Iam looking for an option on how I can map a table to graphic node ( probably through scripting).</p>
]]></content:encoded>
	</item>
</channel>
</rss>

