<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/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>Force data refresh for published diagrams</title><link>http://blogs.msdn.com/b/chhopkin/archive/2010/09/28/force-data-refresh-for-published-diagrams.aspx</link><description>When you publish Visio diagrams with Visio 2010 Professional or Visio 2010 Premium using the new Web Diagram file format (VDW), Visio Services can render these diagrams in the browser.&amp;#160; Better yet, if these published diagrams are linked to a supported</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Force data refresh for published diagrams</title><link>http://blogs.msdn.com/b/chhopkin/archive/2010/09/28/force-data-refresh-for-published-diagrams.aspx#10387984</link><pubDate>Thu, 24 Jan 2013 16:35:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10387984</guid><dc:creator>Martin Neuhard</dc:creator><description>&lt;p&gt;For the JS refresh, check out Chris&amp;#39;s other blog posting: &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/b/chhopkin/archive/2011/11/14/enable-visio-services-data-refresh-using-script.aspx"&gt;blogs.msdn.com/.../enable-visio-services-data-refresh-using-script.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Starting from this, I modified the AutoRefresh.js script line 51 to send a false instead of a true for the second parameter. &amp;nbsp;Then in the VWAHelpers file, vwalib-1.0.4.js I modified the if/then/else in the enableRefresh function to the following.&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (entry &amp;amp;&amp;amp; entry.get_visible())&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (always)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;entry.onAction(&amp;quot;RefreshAlways&amp;quot;); // this is the Enable Always button&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else if (!always)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt;	 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;entry.set_visible(false); // this is the Close Button&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;entry.onAction(&amp;quot;RefreshOnce&amp;quot;); // this is the Enable Session button&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10387984" width="1" height="1"&gt;</description></item><item><title>re: Force data refresh for published diagrams</title><link>http://blogs.msdn.com/b/chhopkin/archive/2010/09/28/force-data-refresh-for-published-diagrams.aspx#10386055</link><pubDate>Thu, 17 Jan 2013 22:38:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10386055</guid><dc:creator>Jeremy Taylor</dc:creator><description>&lt;p&gt;It may be worth mentioning here that this is a FARM wide change. In other words, this applies irrespective of the Web Application/Site Collection. Im looking for a ForceRefresh in one Web Application rather than across the farm.&lt;/p&gt;
&lt;p&gt;Also modifying any files directly in the SharePoint root folder makes me cringe because its not part of a WSP/feature and you can loose this modification if you do an upgrade/migrate.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10386055" width="1" height="1"&gt;</description></item><item><title>re: Force data refresh for published diagrams</title><link>http://blogs.msdn.com/b/chhopkin/archive/2010/09/28/force-data-refresh-for-published-diagrams.aspx#10378798</link><pubDate>Mon, 17 Dec 2012 21:19:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10378798</guid><dc:creator>Richard Te Moananui</dc:creator><description>&lt;p&gt;I&amp;#39;m also looking for a way to disable the refresh. &amp;nbsp;Martin mentions &amp;quot;digging through the libraries and just turning off the refresh&amp;quot;. &amp;nbsp;Which &amp;quot;libraries&amp;quot; are you talking about? and what &amp;quot;refresh&amp;quot; option? and is the magic a library option or a document option or something else? &lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10378798" width="1" height="1"&gt;</description></item><item><title>re: Force data refresh for published diagrams</title><link>http://blogs.msdn.com/b/chhopkin/archive/2010/09/28/force-data-refresh-for-published-diagrams.aspx#10378110</link><pubDate>Fri, 14 Dec 2012 14:28:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10378110</guid><dc:creator>Martin Neuhard</dc:creator><description>&lt;p&gt;I actually fixed this by digging through the libraries and just turning off the refresh. &amp;nbsp;That way I didn&amp;#39;t get the pop up. &amp;nbsp;I didn&amp;#39;t want the refresh anyway due to cross site security concerns. &amp;nbsp;Thanks for this article though it lead me to the solution.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10378110" width="1" height="1"&gt;</description></item><item><title>re: Force data refresh for published diagrams</title><link>http://blogs.msdn.com/b/chhopkin/archive/2010/09/28/force-data-refresh-for-published-diagrams.aspx#10360799</link><pubDate>Thu, 18 Oct 2012 13:20:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10360799</guid><dc:creator>Martin Neuhard</dc:creator><description>&lt;p&gt;This is great for forcing a refresh, but I want to disable the refresh and not allow a user to refresh the data. &amp;nbsp;Is there anyway I can just close the window without allowing users the options? &amp;nbsp;Reason is my drawing draws data from a different sharepoint farm, I have no control over the config settings of the farm and if they refresh it will cause an error. &amp;nbsp;Basically I want to publish teh web viewable version, but I want the data refresh disabled and no option to pop up.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10360799" width="1" height="1"&gt;</description></item></channel></rss>