<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Can You Specifiy Optional Attributes/Fields within Repeating Table?</title><link>https://www.infopathdev.com:443/forums/thread/29000.aspx</link><pubDate>Wed, 28 May 2008 18:10:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29000</guid><dc:creator>Albert</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29000.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=29000</wfw:commentRss><description>&lt;p&gt;You can do this if you are using code, there are afaik three appoaches:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;Start with everything and delete everything that not has a value&amp;nbsp;when you save the form&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Start with nothing and add the fields you need.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Ignore the empty field and/or look at the xsi-nil=&amp;quot;true&amp;quot; property&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;div&gt;Approach 1 is default in InfoPath. I never did something like this, but should be possible with selectSingleNode and a delete/remove function.&lt;/div&gt;
&lt;div&gt;You could delete the fields on a submit and/or save event.&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;Using&amp;nbsp;&amp;#39; Tools -&amp;gt; Default Values&amp;#39; you can disable fields/groups. For example, if you disable everything, open the form in &amp;#39;Fill out a form-mode&amp;#39; save the form, you will end up with an xml file with only a root. Then you should manually add the fields you need using code. I just made a post about how to do this using BLOCKED SCRIPT &lt;a href="http://www.infopathdev.com/forums/t/7964.aspx"&gt;http://www.infopathdev.com/forums/t/7964.aspx&lt;/a&gt;.&lt;/div&gt;
&lt;div&gt;Probably the hardest part is when to insert the actual fields/groups. And be careful not to do it twice.&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;I&amp;nbsp;think i&amp;#39;d rather prefer&amp;nbsp;third option, but if you have no choice you might end up doing one of the first.&lt;/div&gt;
&lt;div&gt;Also remember you always need to specify all the fields you want to&amp;nbsp;use later (x,y,z,w,h)&amp;nbsp; in designmode.&lt;/div&gt;
&lt;div&gt;Albert&lt;/div&gt;</description></item><item><title>Re: Can You Specifiy Optional Attributes/Fields within Repeating Table?</title><link>https://www.infopathdev.com:443/forums/thread/28969.aspx</link><pubDate>Tue, 27 May 2008 20:21:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28969</guid><dc:creator>tbianco</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28969.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=28969</wfw:commentRss><description>&lt;p&gt;Instead of basing the xml output through views is there a way where you can just make all the attributes within an xml file optional and have the xml that the infopath generates only generate attributes that have values in them?&lt;/p&gt;</description></item><item><title>Re: Can You Specifiy Optional Attributes/Fields within Repeating Table?</title><link>https://www.infopathdev.com:443/forums/thread/28775.aspx</link><pubDate>Fri, 16 May 2008 18:49:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28775</guid><dc:creator>tbianco</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28775.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=28775</wfw:commentRss><description>&lt;p&gt;Basically I want to use one infopath form that has an xml file with width (w), height (h), x, y, and z attributes. I want to use this base xml file and solution and I would like to create several views, in which one view will only show, populate, and generate just the width and height attributes, and the other view to only show and generate an xml file that has the x, y, and z attributes populated.&lt;/p&gt;&lt;p&gt;So instead of creating three xml data structures and solutions I&amp;#39;m wanting to use one base xml data structure and base solution that will have several views that will generate only a select amount of attributes instead of having all of the attributes generated. It&amp;#39;s not about using a view to show the attributes it&amp;#39;s about generating the xml.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;Does that clarify things?&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Can You Specifiy Optional Attributes/Fields within Repeating Table?</title><link>https://www.infopathdev.com:443/forums/thread/28769.aspx</link><pubDate>Fri, 16 May 2008 15:09:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28769</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28769.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=28769</wfw:commentRss><description>&lt;p&gt;Not sure I completely understand but...&lt;/p&gt;
&lt;p&gt;You would have one XML structure per template.&lt;/p&gt;
&lt;p&gt;Within that template you can have multiple ways to view the XML data.&lt;/p&gt;
&lt;p&gt;So you definetly can have a view for just part of the data and another for others. You can identify each user or form state or data already entered and automatically route to specific views as needed.&lt;/p&gt;
&lt;p&gt;You also could create these three seperate sub-schemas within your main form schema and copy data as it is entered to keep them insync possibly.&lt;/p&gt;</description></item><item><title>Can You Specifiy Optional Attributes/Fields within Repeating Table?</title><link>https://www.infopathdev.com:443/forums/thread/28754.aspx</link><pubDate>Thu, 15 May 2008 22:22:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28754</guid><dc:creator>tbianco</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28754.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=28754</wfw:commentRss><description>&lt;p&gt;Hi there I&amp;#39;m new to infopath and I&amp;#39;m currently using InfoPath 2007. I have a base xml file that I&amp;#39;m using for my schema. In this xml file I have positioning data such as x, y, z, and width (w), heighth (h) etc. &lt;/p&gt;
&lt;p&gt;I was thinking that I could use the xml schema to create several views in that in one view I will create an xml structure that has only x,y,z attributes and other view that only has my w,h attributes included into the generated xml file as I don&amp;#39;t want to have all the attributes into the generated xml files only the ones that pertain to the view.&lt;/p&gt;
&lt;p&gt;For example I have an xml base file structure and wanted to generate the following three xml files from the same base template but with different views and ensure that only the attributes for the two alternate views are included.&lt;/p&gt;
&lt;p&gt;&amp;lt;!-- Base view --&amp;gt;&lt;br /&gt;&amp;lt;parent&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;child x=&amp;quot;&amp;quot; y=&amp;quot;&amp;quot; z=&amp;quot;&amp;quot; w=&amp;quot;&amp;quot; h=&amp;quot;&amp;quot;&amp;gt;&amp;lt;/child&amp;gt;&lt;br /&gt;&amp;lt;/parent&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;!--&amp;nbsp;x,y,z only view --&amp;gt;&lt;br /&gt;&amp;lt;parent&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;child x=&amp;quot;&amp;quot; y=&amp;quot;&amp;quot; z=&amp;quot;&amp;quot;&amp;gt;&amp;lt;/child&amp;gt;&lt;br /&gt;&amp;lt;/parent&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;!-- w,h only view --&amp;gt;&lt;br /&gt;&amp;lt;parent&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;child w=&amp;quot;&amp;quot; h=&amp;quot;&amp;quot;&amp;gt;&amp;lt;/child&amp;gt;&lt;br /&gt;&amp;lt;/parent&amp;gt;&lt;/p&gt;
&lt;p&gt;Is that a possibility and is there a setting that will allow me to do this?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks,&lt;br /&gt;Tony&lt;/p&gt;</description></item></channel></rss>