<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: How to access form object?</title><link>https://www.infopathdev.com:443/forums/thread/15154.aspx</link><pubDate>Wed, 07 Mar 2007 18:40:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15154</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15154.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15154</wfw:commentRss><description>Correct - rows are dynamic... they can be added, removed, whatever. Or in the case of InfoPath 2007, you can use the horizontal control which allows columns to be dynamic. But there is no control which allows both columns and rows to be dynamic. InfoPath 2003 only supports dynamic rows (unless you hack the XSL to make it dynamic columns).&lt;br /&gt;&lt;br /&gt;What you are likely to end up with is a table which has all the required columns (though some might be blank because no values is provided as the column doesn't physically exist in the data), and dynamic rows.</description></item><item><title>Re: How to access form object?</title><link>https://www.infopathdev.com:443/forums/thread/15153.aspx</link><pubDate>Wed, 07 Mar 2007 12:39:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15153</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15153.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15153</wfw:commentRss><description>Yes you can do that of course. I guess what Greg ment is more that you cannot create any control out of nothing with infopath you can however append new childs to an existing node, see this for example for a repeating section:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;string myRepeat	= thisXDocument.DOM.selectSingleNode("my:myFields/my:Result/my:Results").xml;&lt;br /&gt;			IXMLDOMDocument oXml = thisXDocument.CreateDOM();&lt;br /&gt;			oXml.async = false;&lt;br /&gt;			oXml.loadXML(myRepeat);&lt;br /&gt;			IXMLDOMNode parentNode = thisXDocument.DOM.selectSingleNode("my:myFields/my:Result");&lt;br /&gt;			parentNode.appendChild(oXml.documentElement);&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;But anyway if your repeating table/section is bound to a secondary datasource (database) it will expand automatically.&lt;br /&gt;&lt;br /&gt;Does this help ?</description></item><item><title>Re: How to access form object?</title><link>https://www.infopathdev.com:443/forums/thread/15152.aspx</link><pubDate>Wed, 07 Mar 2007 06:39:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15152</guid><dc:creator>mrudula</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15152.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15152</wfw:commentRss><description>Hi Greg,&lt;br /&gt;&lt;br /&gt;But then How do I show table data on repeating table or any other control as my table is changing always and want to show data as report. &lt;br /&gt;&lt;br /&gt;I want to show data from table on form, I only know the tablename. Table columns are going to change as table changes so I want some datagrid kind of control on InfoPath which will dynamically change columns and rows which would help me to write in less code.&lt;br /&gt;&lt;br /&gt;Cannot I add/append child on repeating section and use this child as columns. And then add rows to it which would be same as datagrid then?&lt;br /&gt;&lt;br /&gt;Thanks in advance.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Mrudula</description></item><item><title>Re: How to access form object?</title><link>https://www.infopathdev.com:443/forums/thread/15151.aspx</link><pubDate>Tue, 06 Mar 2007 20:14:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15151</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15151.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15151</wfw:commentRss><description>You cannot dynamically add controls to the form. Add it in the designer, and use conditional formatting to choose when to show it.</description></item><item><title>How to access form object?</title><link>https://www.infopathdev.com:443/forums/thread/13075.aspx</link><pubDate>Tue, 06 Mar 2007 12:43:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13075</guid><dc:creator>mrudula</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13075.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13075</wfw:commentRss><description>Hi All,&lt;br /&gt;&lt;br /&gt;I am trying to add control on InfoPath form through coding (c# language VSTO) but couldnt do it. I am not able to fetch Active form in the project. &lt;br /&gt;&lt;br /&gt;Form frm=Form.ActiveForm;   //line 1&lt;br /&gt;frm.Controls.Add(tb);//tb=control object line 2&lt;br /&gt;&lt;br /&gt;line1 returns NULL in the frm so couldnt able to add control on the collection of controls on form.&lt;br /&gt;&lt;br /&gt;Can you please help me out? Wheather my approach is right or we need to follow some other approach?&lt;br /&gt;&lt;br /&gt;Thanks in advance.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Mrudula</description></item></channel></rss>