<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: When is a default view not a default view?</title><link>https://www.infopathdev.com:443/forums/thread/6363.aspx</link><pubDate>Wed, 24 Nov 2004 16:24:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6363</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6363.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6363</wfw:commentRss><description>Thanx for the compliment!&lt;br /&gt;&lt;br /&gt;I ran a quick test to rebind the main DOM to the database to see if InfoPath would add the queryView property back in -- it didn't.&lt;br /&gt;&lt;br /&gt;It is my (unverified) assumption that InfoPath ONLY places this property when the form is first created. If you discover otherwise in your work, please let us know!&lt;br /&gt;&lt;br /&gt;Greg Collins [InfoPath MVP]</description></item><item><title>Re: When is a default view not a default view?</title><link>https://www.infopathdev.com:443/forums/thread/6362.aspx</link><pubDate>Wed, 24 Nov 2004 09:09:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6362</guid><dc:creator>jonbrave</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6362.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6362</wfw:commentRss><description>Greg,&lt;br /&gt;&lt;br /&gt;Thanks for the work and explanantion.  At least it all ties up with the situation I was in.&lt;br /&gt;&lt;br /&gt;Of course I'm not satisfied with the behaviour! :)  I am, however, &lt;i&gt;very&lt;/i&gt; satisfied with the support you provide :)  MS not sufficiently documenting is probably what is at issue.  If I set a view as a default, I expect it to be the default.  If they want this behaviour when starting out from a data connection, then either document it, or disable the "Default View" property in the designer when this attribute is present.  Doesn't that seem sensible?&lt;br /&gt;&lt;br /&gt;Just one last quick question: if I get rid of the &lt;b&gt;queryView&lt;/b&gt; property line in &lt;b&gt;manifest.xsf&lt;/b&gt;, do you know whether/when/how/if it will "reappear"?  My main DOM is still a data connection, and I continue putting data connections on other views, just wondered...  I guess I'm going to &lt;i&gt;have to&lt;/i&gt; do rules/code to be quite sure anyhow...</description></item><item><title>Re: When is a default view not a default view?</title><link>https://www.infopathdev.com:443/forums/thread/6361.aspx</link><pubDate>Wed, 24 Nov 2004 00:13:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6361</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6361.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6361</wfw:commentRss><description>Ok, a little research -- this is, of course, actually a feature of the product.&lt;br /&gt;&lt;br /&gt;There are two key elements to make happen what you are experiencing:&lt;br /&gt;&lt;br /&gt;1. &amp;lt;xsf:xDocumentClass... dataFormSolution="yes" ...&amp;gt;&lt;br /&gt;2. &amp;lt;xsf:property name="queryView" type="string" value="yes"/&amp;gt;&lt;br /&gt;&lt;br /&gt;If either of these are not present you will not see the view change as you have described.&lt;br /&gt;&lt;br /&gt;Also, if you have more than one &lt;i&gt;queryView&lt;/i&gt; property, the first one will win.&lt;br /&gt;&lt;br /&gt;Why is this the expected behavior? Because you designed your form with a data connection as your main DOM rather than an XML file. Data connection main data sources typically require a query to be useful. Therefore the form automatically loads up in the query view to allow the user to enter a query and use the form.&lt;br /&gt;&lt;br /&gt;This can be overriden by use of Open Rules or code in the OnLoad event handler. Or, you can remove the &lt;i&gt;queryView&lt;/i&gt; property from the manifest.xsf file. This will not harm your form at all. But do not remove the &lt;i&gt;dataFormSolution="yes"&lt;/i&gt; attribute.&lt;br /&gt;&lt;br /&gt;I hope this answers your questions to your satisfaction. If not, please reply with further details.&lt;br /&gt;&lt;br /&gt;Greg Collins [InfoPath MVP]</description></item><item><title>Re: When is a default view not a default view?</title><link>https://www.infopathdev.com:443/forums/thread/6360.aspx</link><pubDate>Tue, 23 Nov 2004 08:21:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6360</guid><dc:creator>jonbrave</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6360.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6360</wfw:commentRss><description>&lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;&lt;i&gt;Originally posted by Patrick Halstead&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;As you now know, it isn't. The designer opens whichever view you are on when you preview.&lt;br /&gt;&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;&lt;br /&gt;&lt;br /&gt;And as you now know from my bug report, deisgner preview does &lt;i&gt;not&lt;/i&gt; always open whichever view you are on...&lt;br /&gt;&lt;br /&gt;Patrick/Greg, I'm reporting a bug here in the post above.  I would be most appreciative if you could clarify what "queryView" property is all about and what I ought to be doing about getting rid of it.  TIA.</description></item><item><title>Re: When is a default view not a default view?</title><link>https://www.infopathdev.com:443/forums/thread/6359.aspx</link><pubDate>Mon, 22 Nov 2004 18:53:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6359</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6359.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6359</wfw:commentRss><description>&lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;&lt;i&gt;Originally posted by jonbrave&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;OK, I'm starting to look into this.&lt;br /&gt;&lt;br /&gt;Can I *please* have an answer first off to a very simple question: is "Default View" taken into account when previewing from *design* mode?&lt;br /&gt;&lt;br /&gt;&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;&lt;br /&gt;&lt;br /&gt;As you now know, it isn't. The designer opens whichever view you are on when you preview.</description></item><item><title>Re: When is a default view not a default view?</title><link>https://www.infopathdev.com:443/forums/thread/6358.aspx</link><pubDate>Sat, 20 Nov 2004 15:28:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6358</guid><dc:creator>jonbrave</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6358.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6358</wfw:commentRss><description>OK, after exhaustive investigation, what we seem to have here is an IP bug(?).&lt;br /&gt;&lt;br /&gt;The Question:&lt;br /&gt;=============&lt;br /&gt;&lt;br /&gt;&lt;i&gt;When is a Default View not a Default View?&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The Answer:&lt;br /&gt;===========&lt;br /&gt;&lt;br /&gt;&lt;i&gt;A Default View is not a Default View when another view has "queryView" property....&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The Problem:&lt;br /&gt;============&lt;br /&gt;&lt;br /&gt;I have an IP .XSN file.  One particular view inside it --- the very fisrt view I designed originally --- is determined to be the default and come up first, no matter what I set as the actual default view.  This happens whether running from Open or Design/Preview mode.  (Forget anything about different behaviour on different machines.)  Note that I am *not* using any script/code/rules/roles (deliberately).&lt;br /&gt;&lt;br /&gt;I can delete *everything* from all the views, all the data connections (except main), rename all the views, change the default etc. etc. and still that view comes up first.  The *only* thing which works is delete the view completely and recreate it.  Then all is well from then on.&lt;br /&gt;&lt;br /&gt;You/Microsoft can have the XSN if you want, but see below, 'coz I don't think it's necessary.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The Reason:&lt;br /&gt;===========&lt;br /&gt;&lt;br /&gt;Exported the Form Files and started looking/playing (coz I'm sad, and this has been bugging me).  In &lt;b&gt;manifest.xsf&lt;/b&gt;, found this line:&lt;br /&gt;&lt;pre&gt;    &amp;lt;xsf:property name="queryView" type="string"value="yes"&amp;gt;&amp;lt;/xsf:property&amp;gt; &lt;/pre&gt;&lt;br /&gt;inside &lt;br /&gt;&lt;pre&gt;    &amp;lt;xsf:file name="view1.xsl"&amp;gt;&lt;br /&gt;      &amp;lt;xsf:fileProperties&amp;gt;&lt;br /&gt;          ...&lt;/pre&gt;for the offending view.  Didn't find this in other XSNs which work.  Deleted the "queryView" property line.  From then on, all worked fine!  And, I couldn't see any difference in behaviour anywhere...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The Solution:&lt;br /&gt;=============&lt;br /&gt;&lt;br /&gt;* What is "queryView" all about?  What does it do/supposed to do?&lt;br /&gt;* When/how/why did it get in there?  (I only edited properly inside IP, SP-1.)&lt;br /&gt;* Am I safe to delete it to get back proper behaviour?&lt;br /&gt;* The only way I can delete it is via export to files &amp; reimport; I can't seem to get at it from inside IP?&lt;br /&gt;* Is this a bug?&lt;br /&gt;&lt;br /&gt;I'm dying to know now, coz I've spent so long...</description></item><item><title>Re: When is a default view not a default view?</title><link>https://www.infopathdev.com:443/forums/thread/6357.aspx</link><pubDate>Fri, 19 Nov 2004 16:08:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6357</guid><dc:creator>jonbrave</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6357.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6357</wfw:commentRss><description>Please be kind enough to try something very simple for me.  I feel I'm going mad!  I've now tested from scratch on another PC here, and I do *not* find that Default View is taken into account from design mode!&lt;br /&gt;&lt;br /&gt;Very simple steps:&lt;br /&gt;&lt;br /&gt;1. Start IP&lt;br /&gt;2. "Design a form"&lt;br /&gt;3. "New blank form"&lt;br /&gt;4. You're looking at "View 1".  Type "View 1" onto it.&lt;br /&gt;5. "Views"; "Add a new view".  Name "View 2"&lt;br /&gt;6. You're looking at "View 2".  Type "View 2" onto it.&lt;br /&gt;7. Select "Preview Form" (either from toolbar, or from "File" menu)&lt;br /&gt;&lt;br /&gt;What do you see?  I see "View 2"!  You can see from "Views" pane that "View 1" is default.  You can swap which is default as much as you like; but I always get whichever one I am looking at in design mode up first.  Don't you?  Same on another PC.&lt;br /&gt;&lt;br /&gt;If you then save the file, I find the same whenever I reopen the file for design.  If I open it for fill out, the default view *does* come up.&lt;br /&gt;&lt;br /&gt;I'd like this sorted before I tackle the "real" problem, which seems to be worse...</description></item><item><title>Re: When is a default view not a default view?</title><link>https://www.infopathdev.com:443/forums/thread/6356.aspx</link><pubDate>Fri, 19 Nov 2004 15:58:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6356</guid><dc:creator>jonbrave</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6356.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6356</wfw:commentRss><description>Greg,&lt;br /&gt;&lt;br /&gt;You said elsewhere:&lt;br /&gt;&lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;To answer your first question... the default view *IS* taken into account during preview from the designer.&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;&lt;br /&gt;And I replied:&lt;br /&gt;&lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;Hmmmm....  So now I technically have two problems (at least on my machine) &lt;br /&gt;then:&lt;br /&gt;&lt;br /&gt;1. Default View is *not* taken into account for me from design mode (as per &lt;br /&gt;repro steps below on brand new IP form, two views, no code, nothing...)&lt;br /&gt;&lt;br /&gt;2. On real form, reagrdless design/open mode, Default View *always* ignored &lt;br /&gt;and set to one particular view.&lt;br /&gt;&lt;br /&gt;Inexplicable? Related?  Why do I begin to feel a "uninstall &amp; reinstall IP" &lt;br /&gt;coming on? ... :-)&lt;br /&gt;&lt;br /&gt;I'm happy continuing this conversation here or at InfoPathDev.com.  Probably &lt;br /&gt;prefer the latter.  Except that it's down (again)...&lt;br /&gt;&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;&lt;br /&gt;We ought to pick one forum or the other.  I like your forum @InfoPathDev.com, coz I can pretty-print and it's cosy, but I don't know whether others like Andrew Watt who's @MS Communities might be useful for input...</description></item><item><title>Re: When is a default view not a default view?</title><link>https://www.infopathdev.com:443/forums/thread/6355.aspx</link><pubDate>Fri, 19 Nov 2004 13:08:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6355</guid><dc:creator>jonbrave</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6355.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6355</wfw:commentRss><description>OK, I'm starting to look into this.&lt;br /&gt;&lt;br /&gt;Can I *please* have an answer first off to a very simple question: is "Default View" taken into account when previewing from *design* mode?&lt;br /&gt;&lt;br /&gt;In a test, I create a blank form and an extra view, i.e. "View 1" &amp; "View 2".  I set "View 2" as the default.  I save.&lt;br /&gt;&lt;br /&gt;Now, I find:&lt;br /&gt;* if I "Open" form to fill out, "View 2" comes up&lt;br /&gt;* if I "Design" form and preview, then whatever view I am looking at in design mode comes up&lt;br /&gt;&lt;br /&gt;I have tried every combination of getting into Open/Design mode (from IP, from Explorer, etc. etc.) and this is always the behaviour.  Open mode respects my default, from design mode does not.&lt;br /&gt;&lt;br /&gt;Is this or is this not expected behaviour?&lt;br /&gt;&lt;br /&gt;(Having said this, this still doesn't solve my original problem: in that form, it still doesn't matter what I'm viewing in design mode, or when I open, it *always* comes up one one (non-default) viw.  But let's wait on that till I get an answer to this part...)</description></item><item><title>Re: When is a default view not a default view?</title><link>https://www.infopathdev.com:443/forums/thread/6354.aspx</link><pubDate>Fri, 19 Nov 2004 10:27:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6354</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6354.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6354</wfw:commentRss><description>Hi JB,&lt;br /&gt;Interesting post! There was a bug in InfoPath that I discovered that was exactly like what you describe here and that's why Greg suggested reading the blog entry. It's possible that you have discovered another bug in InfoPath. You should post repro instructions so that people from MS can take a look.&lt;br /&gt;Cheers!&lt;br /&gt;Patrick</description></item><item><title>Re: When is a default view not a default view?</title><link>https://www.infopathdev.com:443/forums/thread/6353.aspx</link><pubDate>Fri, 19 Nov 2004 09:03:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6353</guid><dc:creator>jonbrave</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6353.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6353</wfw:commentRss><description>Unfortunately I think not...&lt;br /&gt;&lt;br /&gt;That blog says pre-SP-1, managed code, changing views in code.  I'm SP-1, MS Script, and the whole point is I'm not changing views in code/rules/roles, I'm just trying to get the default view defined in the design to show up firt at runtime.  Also, FWIW, I've cleared the IP cache (which the blog seemed to be about), and that's made no difference...&lt;br /&gt;&lt;br /&gt;From Andrew Watt's posts on MS forum, it seems my best is to try restarting from scratch, copying, pasting, renaming, altering, and see if I can figure...&lt;br /&gt;&lt;br /&gt;Here's an extract from the detail there:&lt;br /&gt;&lt;br /&gt;Here's the simple facts I can't explain:&lt;br /&gt;&lt;br /&gt;* In IP Design mode, I can see the Default View has been set to the *second* &lt;br /&gt;view I designed&lt;br /&gt;* I've tried Exporting Form Files, looked in manifest.xsf, and I can see line:&lt;br /&gt;	&amp;lt;xsf:views default="Logon"&amp;gt;&lt;br /&gt;which is correct ("Logon" is my second view)&lt;br /&gt;* I'm using MS Script.  I break in XDocument::OnLoad() function (can't get &lt;br /&gt;much earlier than that...)&lt;br /&gt;* In debugger, I look at XDocument.ViewInfos(0 and 1).IsDefault.  It shows &lt;br /&gt;my original (0, first) View.IsDefault = true !  So given that the behaviour &lt;br /&gt;isn't surprising, but how come it's set like that??? (If I change this value &lt;br /&gt;in debugger so second view is default, then that comes up first.)&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: When is a default view not a default view?</title><link>https://www.infopathdev.com:443/forums/thread/6352.aspx</link><pubDate>Thu, 18 Nov 2004 18:53:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6352</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6352.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6352</wfw:commentRss><description>See if this answers your question:&lt;br /&gt;&lt;br /&lt;a target="_blank" href=http://www.infopathdev.com/blog/PermaLink.aspx?guid=484545b5-d9db-480f-bb88-6515f6831ceb&gt;http://www.infopathdev.com/blog/PermaLink.aspx?guid=484545b5-d9db-480f-bb88-6515f6831ceb&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Greg Collins [InfoPath MVP]</description></item><item><title>When is a default view not a default view?</title><link>https://www.infopathdev.com:443/forums/thread/4505.aspx</link><pubDate>Tue, 16 Nov 2004 11:45:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4505</guid><dc:creator>jonbrave</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4505.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=4505</wfw:commentRss><description>I'm stumped on this one...&lt;br /&gt;&lt;br /&gt;Developing a form.  It had one view.  I introduce a second view, and set that as default view.  Works fine when accessed from any machine.  Except...  On my machine (where I develop), the original view gets shown first.  Believe me, I have tried everything: resetting, resaving, rebooting, starting from either "open" or "design" mode ...  If I place a debugger statement in MS Script OnLoad() event and run on my machine, I can see it says the *original* view is the default, so no wonder.  But where's it getting that from: I can see quite clearly that I have set the new view as default?  The only thing I can think of is a cached copy/saved setting somewhere/somehow?&lt;br /&gt;&lt;br /&gt;I have checked I do not have any load rules, user views etc.  For now, I have created a rule in "Form Options" for "Open behaviour" telling it to switch to the other view, and that gets my by, but what the heck?...</description></item></channel></rss>