<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Dynamic Control</title><link>https://www.infopathdev.com:443/forums/thread/20877.aspx</link><pubDate>Mon, 18 Jun 2007 09:11:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20877</guid><dc:creator>romaik</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20877.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=20877</wfw:commentRss><description>&lt;p&gt;Hello Matt&lt;/p&gt;&lt;p&gt;For now, I only need to have Text Field or ComboBox. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;The structure of the XML has changed a bit.&lt;/p&gt;&lt;p&gt;it would be : &lt;/p&gt;&lt;p&gt;&amp;lt;turbos&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;turbo name=&amp;quot;bathtub&amp;quot;&amp;gt;&amp;lt;/turbo&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;turbo name=&amp;quot;ground&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sub&amp;gt;tile&amp;lt;/sub&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sub&amp;gt;carpet&amp;lt;/sub&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/turbo&amp;gt;&lt;br /&gt;&amp;lt;/turbos&amp;gt; &lt;/p&gt;&lt;p&gt;which means that I do not know how many turbo element I can have.&lt;br /&gt;I guess I have to use a extensible table : on the left the name to display, on the right the control.&lt;/p&gt;&lt;p&gt;The problem is on how to say that : IF &amp;quot;turbo&amp;quot; element has no child then display a textfield&lt;/p&gt;&lt;p&gt;ELSE display a combobox with what is in &amp;quot;sub&amp;quot; tags&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks for the help&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Dynamic Control</title><link>https://www.infopathdev.com:443/forums/thread/20847.aspx</link><pubDate>Fri, 15 Jun 2007 18:51:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20847</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20847.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=20847</wfw:commentRss><description>&lt;p&gt;If you are trying to do this in a truly generic fashion, then no, there is no way to do it.&amp;nbsp; However, if you know all of the possible schemas that might occur in the secondary data source, then you should be&amp;nbsp;able to implement the controls for each one, and then use conditional formatting to display only the one that needs to be displayed.&lt;/p&gt;&lt;p&gt;Good luck!&lt;/p&gt;</description></item><item><title>Dynamic Control</title><link>https://www.infopathdev.com:443/forums/thread/20839.aspx</link><pubDate>Fri, 15 Jun 2007 15:09:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20839</guid><dc:creator>romaik</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20839.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=20839</wfw:commentRss><description>&lt;p&gt;Hello every one&lt;/p&gt;&lt;p&gt;I have a problem and I don&amp;#39;t know how to sort it out.&lt;/p&gt;&lt;p&gt;I would like to know if there is a way to have different control depending on a secondadry data source ?&lt;/p&gt;&lt;p&gt;Example :&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&amp;nbsp;In my secondary data source, there is a line : &lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;price&amp;gt;&amp;lt;/price&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and it automaticaly creates a text field&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&amp;nbsp;Or I could have a data like this : &lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;lt;actors&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;lt;actor&amp;gt;bob&amp;lt;/actor&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;lt;actor&amp;gt;John&amp;lt;/actor&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;lt;actor&amp;gt;Jenny&amp;lt;/actor&amp;gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/actors&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  And it automatically creates a combo box with those names&lt;/p&gt;&lt;p&gt;Even worst : tags may not be actors or price, but text1, text2, not knowing to what it is refering (the process of the data is made through a java app)&lt;/p&gt;&lt;p&gt;Is there a way to make this ?&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>