<?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: oneOfChild Scripting Property</title>
	<atom:link href="http://forms.stefcameron.com/2006/11/09/oneofchild-scripting-property/feed/" rel="self" type="application/rss+xml" />
	<link>http://forms.stefcameron.com/2006/11/09/oneofchild-scripting-property/</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/11/09/oneofchild-scripting-property/#comment-6194</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Sat, 20 Dec 2008 21:10:24 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=53#comment-6194</guid>
		<description>fursten,

The processing instruction inside the field&#039;s //ui/{oneOfChild}/border node is just there to help Designer easily remember what the appearance property&#039;s setting is when it&#039;s set to one of the presets in the property&#039;s drop down list. In reality, the &quot;Object palette &gt; Field tab &gt; Appearance property&quot; is a combination of the elements under the //ui/{oneOfChild}/border node which specify border edges and corners as well as fill color and style.

If you want to set the &quot;appearance&quot; at runtime using script, you would use the oneOfChild property to get to the &lt;border&gt; node inside the field&#039;s &lt;ui&gt; element and you would go from there. For example, to set the fill colour of a text field&#039;s content area, you would do this:

&lt;pre&gt;&lt;code&gt;TextField1.ui.oneOfChild.border.fill.color.value = &quot;255,0,0&quot;; // red&lt;/code&gt;&lt;/pre&gt;

I actually have a post on setting various fill colors if you&#039;re interested: &lt;a href=&quot;http://forms.stefcameron.com/2008/03/14/field-background-color-fill/&quot; rel=&quot;nofollow&quot;&gt;Field Background Color Fill&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>fursten,</p>
<p>The processing instruction inside the field&#8217;s //ui/{oneOfChild}/border node is just there to help Designer easily remember what the appearance property&#8217;s setting is when it&#8217;s set to one of the presets in the property&#8217;s drop down list. In reality, the &#8220;Object palette > Field tab > Appearance property&#8221; is a combination of the elements under the //ui/{oneOfChild}/border node which specify border edges and corners as well as fill color and style.</p>
<p>If you want to set the &#8220;appearance&#8221; at runtime using script, you would use the oneOfChild property to get to the &lt;border&gt; node inside the field&#8217;s &lt;ui&gt; element and you would go from there. For example, to set the fill colour of a text field&#8217;s content area, you would do this:</p>
<pre><code>TextField1.ui.oneOfChild.border.fill.color.value = "255,0,0"; // red</code></pre>
<p>I actually have a post on setting various fill colors if you&#8217;re interested: <a href="http://forms.stefcameron.com/2008/03/14/field-background-color-fill/" rel="nofollow">Field Background Color Fill</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fursten</title>
		<link>http://forms.stefcameron.com/2006/11/09/oneofchild-scripting-property/#comment-6193</link>
		<dc:creator>fursten</dc:creator>
		<pubDate>Fri, 19 Dec 2008 16:38:28 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=53#comment-6193</guid>
		<description>sorry, like this: templateDesigner StyleID aped2</description>
		<content:encoded><![CDATA[<p>sorry, like this: templateDesigner StyleID aped2</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fursten</title>
		<link>http://forms.stefcameron.com/2006/11/09/oneofchild-scripting-property/#comment-6192</link>
		<dc:creator>fursten</dc:creator>
		<pubDate>Fri, 19 Dec 2008 16:37:39 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=53#comment-6192</guid>
		<description>Hello Stefan,

I have one question for you about this topic:

What about changing the appearance property of an object (for instance, a dropdown) in runtime? As far as I understood, this property points to a processing instruction like this:










Thank you.</description>
		<content:encoded><![CDATA[<p>Hello Stefan,</p>
<p>I have one question for you about this topic:</p>
<p>What about changing the appearance property of an object (for instance, a dropdown) in runtime? As far as I understood, this property points to a processing instruction like this:</p>
<p>Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marijn Sponselee</title>
		<link>http://forms.stefcameron.com/2006/11/09/oneofchild-scripting-property/#comment-6191</link>
		<dc:creator>Marijn Sponselee</dc:creator>
		<pubDate>Thu, 11 Jan 2007 15:18:41 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=53#comment-6191</guid>
		<description>Hi Stefan,
I&#039;m sure you know, but it&#039;s not mentioned here: the oneOfChild property is already available in Designer 7.0 &lt;i&gt;see XFA spec 2.2&lt;/i&gt; and it works like a charm.

Kind regards, Marijn Sponselee</description>
		<content:encoded><![CDATA[<p>Hi Stefan,<br />
I&#8217;m sure you know, but it&#8217;s not mentioned here: the oneOfChild property is already available in Designer 7.0 <i>see XFA spec 2.2</i> and it works like a charm.</p>
<p>Kind regards, Marijn Sponselee</p>
]]></content:encoded>
	</item>
</channel>
</rss>

