<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Sum non-repeating option buttons with condition</title><link>https://www.infopathdev.com:443/forums/thread/53078.aspx</link><pubDate>Wed, 24 Mar 2010 12:25:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53078</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53078.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=53078</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;a href="http://www.w3.org/TR/xpath/#node-sets"&gt;http://www.w3.org/TR/xpath/#node-sets&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;The pipe symbol produces the union of two&amp;nbsp;node-sets.&amp;nbsp; You can chain these together on individual nodes to produce a single&amp;nbsp;node-set from an assortment of unrelated nodes.&lt;/p&gt;
&lt;p&gt;If your form doesn&amp;#39;t need to be browser-enabled, it should be possible to show different parts of a repeating node set by using conditional formatting (filtering) on the repeating section or repeating table control, but it may indeed not be worth the effort.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;You can insert an image from the internet using the icon on the toolbar that looks like a tree.&amp;nbsp; You can attach your own image by using the feature on the Options tab.&lt;/p&gt;
&lt;p&gt;&lt;img style="WIDTH:124px;HEIGHT:124px;" src="http://t2.gstatic.com/images?q=tbn:u_eyiQ3tQsJHUM:http://media.canada.com/1a416bf6-61d8-4c3a-b9f2-ccd684175f80/cat.jpg" width="124" height="124" alt="" /&gt;&lt;/p&gt;</description></item><item><title>Re: Sum non-repeating option buttons with condition</title><link>https://www.infopathdev.com:443/forums/thread/53077.aspx</link><pubDate>Wed, 24 Mar 2010 11:45:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53077</guid><dc:creator>juliecal73</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53077.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=53077</wfw:commentRss><description>&lt;p&gt;Thanks Jimmy, that works great! What does the &amp;#39;|&amp;#39; (pipe) symbol actually mean please, so I can better understand your expression?&lt;/p&gt;
&lt;p&gt;Actually, the client doesn&amp;#39;t care about the data source, just the visible layout. I am assuming that I cannot get the layout to be on one view in a repeating field. Is this incorrect? It would be great if I could have the 10 questions on one view as 10 seperate fields but repeating... um, I&amp;#39;m not sure if that makes sense?&lt;/p&gt;
&lt;p&gt;Welcome all suggestions.&lt;/p&gt;
&lt;p&gt;PS: How do I insert a pic here, mine always come up with the red cross :P&lt;/p&gt;</description></item><item><title>Re: Sum non-repeating option buttons with condition</title><link>https://www.infopathdev.com:443/forums/thread/53076.aspx</link><pubDate>Wed, 24 Mar 2010 11:21:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53076</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53076.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=53076</wfw:commentRss><description>&lt;p&gt;Please try this formula:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;count((my:Math1 | my:Math2 | my:Math3 | my:Math4)[. = 1])&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As I&amp;#39;m sure you&amp;#39;re aware, using a repeating field offers&amp;nbsp;several benefits over this approach.&amp;nbsp; Is there any particular reason why your client wants the data source like this?&lt;/p&gt;</description></item><item><title>Sum non-repeating option buttons with condition</title><link>https://www.infopathdev.com:443/forums/thread/53075.aspx</link><pubDate>Wed, 24 Mar 2010 10:54:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53075</guid><dc:creator>juliecal73</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53075.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=53075</wfw:commentRss><description>&lt;p&gt;Hi, I have what I would expect to be a very simple task to do, but am not winning at all or finding any solution elsewhere. I think I might be missing something very vital :P&lt;/p&gt;
&lt;p&gt;I have a simple form that has 10 Option Controls, each with 4 choices. This is set up like a multiple choice test so that for each Option control there is one correct answer.This is not set up repeating, as all 10 questions are on on page (clients choice).&lt;/p&gt;
&lt;p&gt;For each of the Option Controls I have made the correct answer = 1 and the other three 2,3,4. The type is Whole Number (integer), and the default value is set to 0.&lt;/p&gt;
&lt;p&gt;At the bottom of the questions I have a button which goes back to the intro page that displays the results. I have a field called &amp;#39;Score&amp;#39; to get the total value of the Option buttons. I&amp;nbsp;set a rule on&amp;nbsp;the button that first resets the Score to 0, then updates it to add all the option button values together, BUT ONLY WHEN Option Button = 1.&lt;/p&gt;
&lt;p&gt;The expression I use for this is the following:&lt;/p&gt;
&lt;p&gt;my:Math1[. = 1] + my:Math2[. = 1] + my:Math3[. = 1] + my:Math4[. = 1]&lt;/p&gt;
&lt;p&gt;Unfortunately, if one of the options is NOT 1 then Score shows NaN.&lt;/p&gt;
&lt;p&gt;How do I achieve this so that I can add the scores for a sheet each time only when the answer is correct. Is there something missing in my f(x)? How do I do an &amp;#39;IF&amp;#39; opposed to a filter that returns no value and gives an Nan?&lt;/p&gt;</description></item></channel></rss>