<?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: Creation of views programatically</title><link>https://www.infopathdev.com:443/forums/thread/49028.aspx</link><pubDate>Fri, 13 Nov 2009 05:44:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49028</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49028.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=49028</wfw:commentRss><description>&lt;p&gt;hi ben,&lt;/p&gt;
&lt;p&gt;as far as i know there i no way you can create views dynamically, or use conditional formatting directly through code. albeit there is a work arouund&amp;nbsp;for using conditional formatting via code, but that is not purely code based. &lt;/p&gt;
&lt;p&gt;create a textbox on your form (say textbox_conditional_section_1 and set its initial value to &amp;quot;hide&amp;quot;) and put conditional formatting on your form (if textbox_conditional_section_1 = &amp;quot;hide&amp;quot;) hide the section. similar with all the sections you are going to use. &lt;/p&gt;
&lt;p&gt;in code determine what sections the user should be able to view and for those sections set the associated textboxes(textbox_conditional_section_1) to something other than hide. that should hide other sections and project only the required sections.&lt;/p&gt;</description></item><item><title>Re: Creation of views programatically</title><link>https://www.infopathdev.com:443/forums/thread/48968.aspx</link><pubDate>Thu, 12 Nov 2009 11:01:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48968</guid><dc:creator>nebuk</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48968.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=48968</wfw:commentRss><description>I really need to do this programatically as I am looking at doing this on sections and doing it over several 1000 sections in one form do you know if this is possible?
Cheers
Ben</description></item><item><title>Re: Creation of views programatically</title><link>https://www.infopathdev.com:443/forums/thread/48921.aspx</link><pubDate>Wed, 11 Nov 2009 15:10:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48921</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48921.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=48921</wfw:commentRss><description>&lt;p&gt;right click the control/field you want to hide, click on conditional formatting, and use conditions when to hide.&lt;/p&gt;</description></item><item><title>Re: Creation of views programatically</title><link>https://www.infopathdev.com:443/forums/thread/48919.aspx</link><pubDate>Wed, 11 Nov 2009 15:03:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48919</guid><dc:creator>nebuk</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48919.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=48919</wfw:commentRss><description>What do you mean by conditional formatting?
I cant seem to find any way to setting infopath parts to be invisible
Many thanks again for your help</description></item><item><title>Re: Creation of views programatically</title><link>https://www.infopathdev.com:443/forums/thread/48850.aspx</link><pubDate>Tue, 10 Nov 2009 10:18:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48850</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48850.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=48850</wfw:commentRss><description>&lt;p&gt;hi nebuk, &lt;/p&gt;
&lt;p&gt;you can always use conditional formatting to decide which parts to show and which parts to hide, that would be the easiest way out for you&lt;/p&gt;</description></item><item><title>Re: Creation of views programatically</title><link>https://www.infopathdev.com:443/forums/thread/48846.aspx</link><pubDate>Tue, 10 Nov 2009 09:45:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48846</guid><dc:creator>nebuk</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48846.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=48846</wfw:commentRss><description>I think you could be right but anyone who would like to disagree please do :) do you know if there is anyway to programmatically modify the content of views?
If not then I may just have to come up with a new plan :P</description></item><item><title>Re: Creation of views programatically</title><link>https://www.infopathdev.com:443/forums/thread/48840.aspx</link><pubDate>Tue, 10 Nov 2009 07:24:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48840</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48840.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=48840</wfw:commentRss><description>&lt;p&gt;Hi nebuk,&lt;/p&gt;
&lt;p&gt;I dont think views can be created programatically, because that will attribute to changing of schema at run time. I would be more than happy if anybody has a positive response for this.&lt;/p&gt;</description></item><item><title>Creation of views programatically</title><link>https://www.infopathdev.com:443/forums/thread/48812.aspx</link><pubDate>Mon, 09 Nov 2009 15:21:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48812</guid><dc:creator>nebuk</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48812.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=48812</wfw:commentRss><description>Hi I am more just wondering if this is possible
I have divided up my infopath form into sections using groups (with uniform names) so that I can identify them separately in the datasource, I was then looking to be able to copy the contents of these groups and create new views and paste them in. The copying of all of the parts is not the problem but I cant seem to find any resources on creating views programatically in infopath
Any help would be greatly appreciated 
Many thanks
Ben</description></item></channel></rss>