<?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>Views</title><link>https://www.infopathdev.com:443/forums/42.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Programatically set a view to read only</title><link>https://www.infopathdev.com:443/forums/thread/57069.aspx</link><pubDate>Sat, 17 Jul 2010 23:12:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57069</guid><dc:creator>Skarn</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57069.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=57069</wfw:commentRss><description>&lt;p&gt;I was able to do this using jScript - I&amp;#39;ll get the code on Monday night. It works by using the change event of&amp;nbsp;root level groups.&amp;nbsp;Group change events get&amp;nbsp;fired any time there is a change in one of their containing fields in&amp;nbsp;the XDocument. I use a global variable which tells the event whether to allow the change to occur or reject it which a user message. If you can wait until Monday you might have a solution.&lt;/p&gt;</description></item><item><title>Re: Programatically set a view to read only</title><link>https://www.infopathdev.com:443/forums/thread/53707.aspx</link><pubDate>Thu, 15 Apr 2010 00:53:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53707</guid><dc:creator>emdc2</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53707.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=53707</wfw:commentRss><description>&lt;p&gt;That&amp;#39;s the conclusion I came to too. Yuck. Lots of extra code!&lt;/p&gt;</description></item><item><title>Re: Programatically set a view to read only</title><link>https://www.infopathdev.com:443/forums/thread/53661.aspx</link><pubDate>Wed, 14 Apr 2010 07:53:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53661</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53661.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=53661</wfw:commentRss><description>&lt;p&gt;i dont think this is doable, you will have to create extra views or use conditional formatting. to set the controls on the view to readonly&lt;/p&gt;</description></item><item><title>Programatically set a view to read only</title><link>https://www.infopathdev.com:443/forums/thread/53494.aspx</link><pubDate>Thu, 08 Apr 2010 16:35:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53494</guid><dc:creator>emdc2</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53494.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=53494</wfw:commentRss><description>&lt;p&gt;Is there a way to programatically set the readonly attribute of&amp;nbsp;a view? I know you can do it through the view properties in the GUI, but I need to do it in code based on a status change (and I will be setting about&amp;nbsp;8 different views to readonly when the status changes). I do not want to make a&amp;nbsp;copy of&amp;nbsp;each view&amp;nbsp;and set the copied set to readonly and then programatically change views based on a status change because I have&amp;nbsp;8 different (and very complex)&amp;nbsp;views with tabs on the top and the left and the user still has to be able to navigate to all of the views in readonly. I don&amp;#39;t want the overhead of having all of the extra views and have to manage the readonly vs readwrite in the navigation. I want to simply set all of the views to readonly in code when the status changes and set them all back to readwrite with another status change.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Anyone ever set the readonly programatically? Is it possible?&lt;/p&gt;</description></item></channel></rss>