<?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: Dynamic Properties</title>
	<atom:link href="http://forms.stefcameron.com/2006/07/29/dynamic-properties/feed/" rel="self" type="application/rss+xml" />
	<link>http://forms.stefcameron.com/2006/07/29/dynamic-properties/</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/2006/07/29/dynamic-properties/comment-page-1/#comment-46262</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Fri, 17 Apr 2009 17:37:51 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=29#comment-46262</guid>
		<description>Alex,

If your schema defines an element that can contain a predefined list of values, creating a data connection based on that schema should give you a node which, when dragged onto your form, produces a list box or drop down list object with the items already created.</description>
		<content:encoded><![CDATA[<p>Alex,</p>
<p>If your schema defines an element that can contain a predefined list of values, creating a data connection based on that schema should give you a node which, when dragged onto your form, produces a list box or drop down list object with the items already created.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://forms.stefcameron.com/2006/07/29/dynamic-properties/comment-page-1/#comment-46196</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Thu, 16 Apr 2009 08:50:57 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=29#comment-46196</guid>
		<description>Hi, Stefan

Have you any idea how to populate drop-down list from attached XML schema element enumerations. I use Altova products to deal with XML and I definetly know that Altova StyleVision can do in that way

thanks</description>
		<content:encoded><![CDATA[<p>Hi, Stefan</p>
<p>Have you any idea how to populate drop-down list from attached XML schema element enumerations. I use Altova products to deal with XML and I definetly know that Altova StyleVision can do in that way</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2006/07/29/dynamic-properties/comment-page-1/#comment-44569</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Sat, 28 Mar 2009 17:23:48 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=29#comment-44569</guid>
		<description>ganesh,

I&#039;m not sure what you mean by &#039;badi&#039;. In any case, you&#039;ll probably want to use a Change event script on the first listbox which gets the selected value and populates the second listbox accordingly:

&lt;pre&gt;&lt;code&gt;// JavaScript:
var selection = xfa.event.newText;
// if the list has text and value data for each item, then enable this line to get the value associated with the item
// selection = this.boundItem(selection);

// reset the second list
MyList2.clearItems();

if (selection == &quot;something&quot;)
{
    MyList2.addItem(&quot;text1&quot;, &quot;value1&quot;);
}
else if (selection == &quot;something else&quot;)
{
    MyList2.addItem(&quot;text2&quot;, &quot;value2&quot;);
}&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>ganesh,</p>
<p>I&#8217;m not sure what you mean by &#8216;badi&#8217;. In any case, you&#8217;ll probably want to use a Change event script on the first listbox which gets the selected value and populates the second listbox accordingly:</p>
<pre><code>// JavaScript:
var selection = xfa.event.newText;
// if the list has text and value data for each item, then enable this line to get the value associated with the item
// selection = this.boundItem(selection);

// reset the second list
MyList2.clearItems();

if (selection == "something")
{
    MyList2.addItem("text1", "value1");
}
else if (selection == "something else")
{
    MyList2.addItem("text2", "value2");
}</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: ganesh</title>
		<link>http://forms.stefcameron.com/2006/07/29/dynamic-properties/comment-page-1/#comment-44160</link>
		<dc:creator>ganesh</dc:creator>
		<pubDate>Tue, 24 Mar 2009 18:46:11 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=29#comment-44160</guid>
		<description>stefan
           thanks for the reply for this listbox showing only 50 values, iam populating the list from the badi.
but this is solved as in the basis settings the node is restricted to only 50 values,now it is made 500 and i can see 500 values.
                 but now i have two drop down list boxes and based on the first list box value i have to show the 2nd list box values. my problem will be solved if i can call the backend badi after the first value is selected, can you please tell me what script i have to write.

thanks in advance
ganesh</description>
		<content:encoded><![CDATA[<p>stefan<br />
           thanks for the reply for this listbox showing only 50 values, iam populating the list from the badi.<br />
but this is solved as in the basis settings the node is restricted to only 50 values,now it is made 500 and i can see 500 values.<br />
                 but now i have two drop down list boxes and based on the first list box value i have to show the 2nd list box values. my problem will be solved if i can call the backend badi after the first value is selected, can you please tell me what script i have to write.</p>
<p>thanks in advance<br />
ganesh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2006/07/29/dynamic-properties/comment-page-1/#comment-43272</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Tue, 17 Mar 2009 02:31:32 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=29#comment-43272</guid>
		<description>Nick Armstrong,

Yes, just put

&lt;pre&gt;&lt;code&gt;xfa.sourceSet.MoviesInCat.#command.query.commandType = “text”&lt;/code&gt;&lt;/pre&gt;

in your code but keep in mind that &quot;MoviesInCat&quot; must be replaced by the name of &lt;i&gt;your&lt;/i&gt; data connection.

As for the second statement, it&#039;s building an SQL Query statement using FormCalc&#039;s &lt;i&gt;concat&lt;/i&gt; function which takes a series of arguments and concatenates them into a single string. In this case, the string is then assigned to the MoviesInCat data connection&#039;s &lt;select&gt; node which specifies its query statement.

Note that your data connections should use your tables...

Also, if you&#039;re doing this with Designer/Acrobat 8.0 or later, you&#039;ll need to first clone the data connection (only the second one that you modify at runtime), then set the query, as demonstrated in my post on &lt;a href=&quot;http://forms.stefcameron.com/2006/12/07/better-form-design-with-xfa-25/ rel=&quot;nofollow&quot;&gt;better form design with XFA 2.5&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>Nick Armstrong,</p>
<p>Yes, just put</p>
<pre><code>xfa.sourceSet.MoviesInCat.#command.query.commandType = “text”</code></pre>
<p>in your code but keep in mind that &#8220;MoviesInCat&#8221; must be replaced by the name of <i>your</i> data connection.</p>
<p>As for the second statement, it&#8217;s building an SQL Query statement using FormCalc&#8217;s <i>concat</i> function which takes a series of arguments and concatenates them into a single string. In this case, the string is then assigned to the MoviesInCat data connection&#8217;s &lt;select&gt; node which specifies its query statement.</p>
<p>Note that your data connections should use your tables&#8230;</p>
<p>Also, if you&#8217;re doing this with Designer/Acrobat 8.0 or later, you&#8217;ll need to first clone the data connection (only the second one that you modify at runtime), then set the query, as demonstrated in my post on <a href="http://forms.stefcameron.com/2006/12/07/better-form-design-with-xfa-25/ rel="nofollow">better form design with XFA 2.5</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2006/07/29/dynamic-properties/comment-page-1/#comment-43271</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Tue, 17 Mar 2009 02:26:01 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=29#comment-43271</guid>
		<description>Paul,

Just take my tutorial on &lt;a href=&quot;http://forms.stefcameron.com/2006/09/29/selecting-specific-database-records/&quot; rel=&quot;nofollow&quot;&gt;selecting specific database records&lt;/a&gt; and change the first data connection&#039;s query to return a list of actors instead of categories and then change the second dynamically-generated query (for the second data connection) to filter on actorId instead of categoryId.</description>
		<content:encoded><![CDATA[<p>Paul,</p>
<p>Just take my tutorial on <a href="http://forms.stefcameron.com/2006/09/29/selecting-specific-database-records/" rel="nofollow">selecting specific database records</a> and change the first data connection&#8217;s query to return a list of actors instead of categories and then change the second dynamically-generated query (for the second data connection) to filter on actorId instead of categoryId.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2006/07/29/dynamic-properties/comment-page-1/#comment-42838</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Fri, 13 Mar 2009 02:49:26 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=29#comment-42838</guid>
		<description>Jason Sipman,

To get fields to expand to fit their value, you have to set their width and/or height to &quot;expandable&quot; by checking the box at &quot;Layout palette &gt; Width/Height &gt; Expand To Fit&quot;.

Also, you have to make sure that the expandable fields are &lt;b&gt;inside&lt;/b&gt; subforms that have flowed content (&quot;Object palette &gt; Subform tab &gt; Content Type property&quot; set to &quot;Flowed&quot;) otherwise objects below the expandable fields won&#039;t flow downward to accommodate the new height of the fields.</description>
		<content:encoded><![CDATA[<p>Jason Sipman,</p>
<p>To get fields to expand to fit their value, you have to set their width and/or height to &#8220;expandable&#8221; by checking the box at &#8220;Layout palette > Width/Height > Expand To Fit&#8221;.</p>
<p>Also, you have to make sure that the expandable fields are <b>inside</b> subforms that have flowed content (&#8220;Object palette > Subform tab > Content Type property&#8221; set to &#8220;Flowed&#8221;) otherwise objects below the expandable fields won&#8217;t flow downward to accommodate the new height of the fields.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick Armstrong</title>
		<link>http://forms.stefcameron.com/2006/07/29/dynamic-properties/comment-page-1/#comment-42776</link>
		<dc:creator>Nick Armstrong</dc:creator>
		<pubDate>Wed, 11 Mar 2009 21:03:59 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=29#comment-42776</guid>
		<description>Stefan,

Ok, i&#039;ve been looking more at your &quot;selectspeficifDBRecord.PDF&quot; and the post. What do you mean in the spots i&#039;ve highlighted with *****

First, get the category selected by the user and determine it’s associated ID:

var sCategoryName = xfa.event.newText
var sCategoryId = $.boundItem(sCategoryName)

Given the XML structure of the (sourceSet&gt; packet displayed above, ******you first set the query’s command type to “text”:*****

(just put this in the FormCalc script?): xfa.sourceSet.MoviesInCat.#command.query.commandType = &quot;text&quot;

This ensures that the data connection will use an SQL statement. Note the pound (#) prefix to the command property of the MoviesInCat node.

Then, set the SQL statement, on the MoviesInCat data connection, which will filter the records from the movie table in order to show only those that belong to the selected category:

******xfa.sourceSet.MoviesInCat.#command.query.select =
  concat(&quot;SELECT title, showTime FROM movies WHERE categoryId = &quot;,
    sCategoryId, &quot; ORDER BY title;&quot;)***?? (can i just replace the &quot;showTime&quot; and &quot;movies&quot; with my appropriate tables and columns?)

thanks</description>
		<content:encoded><![CDATA[<p>Stefan,</p>
<p>Ok, i&#8217;ve been looking more at your &#8220;selectspeficifDBRecord.PDF&#8221; and the post. What do you mean in the spots i&#8217;ve highlighted with *****</p>
<p>First, get the category selected by the user and determine it’s associated ID:</p>
<p>var sCategoryName = xfa.event.newText<br />
var sCategoryId = $.boundItem(sCategoryName)</p>
<p>Given the XML structure of the (sourceSet&gt; packet displayed above, ******you first set the query’s command type to “text”:*****</p>
<p>(just put this in the FormCalc script?): xfa.sourceSet.MoviesInCat.#command.query.commandType = &#8220;text&#8221;</p>
<p>This ensures that the data connection will use an SQL statement. Note the pound (#) prefix to the command property of the MoviesInCat node.</p>
<p>Then, set the SQL statement, on the MoviesInCat data connection, which will filter the records from the movie table in order to show only those that belong to the selected category:</p>
<p>******xfa.sourceSet.MoviesInCat.#command.query.select =<br />
  concat(&#8220;SELECT title, showTime FROM movies WHERE categoryId = &#8220;,<br />
    sCategoryId, &#8221; ORDER BY title;&#8221;)***?? (can i just replace the &#8220;showTime&#8221; and &#8220;movies&#8221; with my appropriate tables and columns?)</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://forms.stefcameron.com/2006/07/29/dynamic-properties/comment-page-1/#comment-42769</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Wed, 11 Mar 2009 20:14:55 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=29#comment-42769</guid>
		<description>Stefan,

Thank you for a great website. I have question regarding your post above. 

I was wondering if you could tell me how I can use a drop down list to select an Actor from your movieData and then show all the movies that actor is associated with in a second drop down list.  Which would then display the time for that movie in a text field.  

I would like to limit each drop down to a unique value. Is this possible?

Thanks for your help.

Paul</description>
		<content:encoded><![CDATA[<p>Stefan,</p>
<p>Thank you for a great website. I have question regarding your post above. </p>
<p>I was wondering if you could tell me how I can use a drop down list to select an Actor from your movieData and then show all the movies that actor is associated with in a second drop down list.  Which would then display the time for that movie in a text field.  </p>
<p>I would like to limit each drop down to a unique value. Is this possible?</p>
<p>Thanks for your help.</p>
<p>Paul</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick Armstrong</title>
		<link>http://forms.stefcameron.com/2006/07/29/dynamic-properties/comment-page-1/#comment-42763</link>
		<dc:creator>Nick Armstrong</dc:creator>
		<pubDate>Wed, 11 Mar 2009 17:24:11 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=29#comment-42763</guid>
		<description>Stefan,

For the SQL Query error, i took out &quot;GROUP BY name ORDER BY name;&quot; and it works fine. I don&#039;t know how it would have acted different, but i&#039;m looking that up on (http://www.w3schools.com/sql/sql_groupby.asp) for examples.

I will work with your example to try and learn by back stepping, but i think i would benefit greatly from a &quot;how-to&quot; like i posted above. 

Thanks!</description>
		<content:encoded><![CDATA[<p>Stefan,</p>
<p>For the SQL Query error, i took out &#8220;GROUP BY name ORDER BY name;&#8221; and it works fine. I don&#8217;t know how it would have acted different, but i&#8217;m looking that up on (<a href="http://www.w3schools.com/sql/sql_groupby.asp" rel="nofollow">http://www.w3schools.com/sql/sql_groupby.asp</a>) for examples.</p>
<p>I will work with your example to try and learn by back stepping, but i think i would benefit greatly from a &#8220;how-to&#8221; like i posted above. </p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
