<?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: Text Box values</title><link>https://www.infopathdev.com:443/forums/thread/20572.aspx</link><pubDate>Mon, 11 Jun 2007 12:32:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20572</guid><dc:creator>redhead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20572.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=20572</wfw:commentRss><description>&lt;p&gt;Hi Matt&lt;/p&gt;&lt;p&gt;&amp;nbsp;was wondering how do you add the round into that line?&lt;br /&gt;so i would round to 2 decimal points&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Text Box values</title><link>https://www.infopathdev.com:443/forums/thread/20571.aspx</link><pubDate>Mon, 11 Jun 2007 12:20:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20571</guid><dc:creator>redhead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20571.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=20571</wfw:commentRss><description>&lt;p&gt;Hi Matt &lt;/p&gt;&lt;p&gt;i tryed this &lt;br /&gt;&amp;nbsp;(sum(field1[. !=&amp;quot;&amp;quot;]) + sum(field2[. =&amp;quot;&amp;quot;])) / (sum(eval(filed1[. !=&amp;quot;&amp;quot;],&amp;quot;2&amp;quot;], + sum(eval(field2[. !=&amp;quot;&amp;quot;]), &amp;quot;5&amp;quot;)) and that seamed to work as well what do you think?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Text Box values</title><link>https://www.infopathdev.com:443/forums/thread/20569.aspx</link><pubDate>Mon, 11 Jun 2007 12:18:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20569</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20569.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=20569</wfw:commentRss><description>&lt;p&gt;Hi redhead,&lt;/p&gt;&lt;p&gt;This is a little tricky.&amp;nbsp; A simplification to this would be if you knew that all the values of the drop-downs were hard-coded.&amp;nbsp; Then you wouldn&amp;#39;t have to rely on the count() function, which could be unreliable.&lt;/p&gt;&lt;p&gt;First of all, make sure that your drop-downs are populating from a secondary data source, and make sure that there is also a ZERO value in the selction.&amp;nbsp; This can be the default &amp;quot;Select...&amp;quot; if you want, but the zero is important.&lt;/p&gt;&lt;p&gt;So the dividend is easy: Simply add all the drop-down values together.&amp;nbsp; The zeroes won&amp;#39;t change the answer, so you don&amp;#39;t have to worry about them.&lt;/p&gt;&lt;p&gt;The divisor is a little tricky.&amp;nbsp; You want to add the highest values in the drop-downs, but only those that are non-zero. So,&amp;nbsp;you want zero when the drop-down is zero, and max otherwise. To get this you will use a formula like this:&lt;/p&gt;&lt;p&gt;(count(_xpath_to_where_the_DDL_populates) - 1)&amp;nbsp;* number( _ddl_1_ != 0 ) + &amp;lt;repeat for DDL 2&amp;gt; + ...&lt;/p&gt;&lt;p&gt;The count() gets the number of items in the drop-down list, and then the boolean returns &amp;quot;true&amp;quot; when the drop-down is non-zero, which is then converted to 1.&amp;nbsp; The multiplication then keeps the count() instead of wiping it out with multiplication by zero.&amp;nbsp; If you knew the greates number in each of the drop-downs, you could replace count() with that number.&lt;/p&gt;&lt;p&gt;I know this is a little scattered, but I hope it helps!&lt;/p&gt;</description></item><item><title>Text Box values</title><link>https://www.infopathdev.com:443/forums/thread/20550.aspx</link><pubDate>Fri, 08 Jun 2007 23:43:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20550</guid><dc:creator>redhead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20550.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=20550</wfw:commentRss><description>&lt;p&gt;Hi There,&lt;/p&gt;&lt;p&gt;&amp;nbsp;I have done it again got a problem, i&amp;#39;m so so so confused.. i&amp;#39;m really hoping someone can help me here&lt;/p&gt;&lt;p&gt;ok what i have is 4 drop down boxes.. with the values 0,1,2,3,4,5 some have 0,1,2,3 or some have 0,1,2,3,4,5,6,7,8&lt;/p&gt;&lt;p&gt;What i need is a box that has a score for the above.. the way to get the score is the confusing part..&lt;/p&gt;&lt;p&gt;lest say&lt;/p&gt;&lt;p&gt;dropdownbox1: values: 1,2,3,4&lt;/p&gt;&lt;p&gt;user selects 2&amp;nbsp;&lt;/p&gt;&lt;p&gt;dropdownbox2: values: 1,2,3,4,5&lt;/p&gt;&lt;p&gt;user selects 4&amp;nbsp;&lt;/p&gt;&lt;p&gt;dropdownbox3: values: 1,2,3&lt;/p&gt;&lt;p&gt;user selects 3&amp;nbsp;&lt;/p&gt;&lt;p&gt;dropdownbox4: values: 1,2,3,4,5,6,7,8&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;the sore would be (2+4+3)&amp;nbsp; /&amp;nbsp; (4+5+3) &lt;/p&gt;&lt;p&gt;what i need to do is add up what they selected and add up the total possible number that was avalilble for them to select.. and divide&lt;/p&gt;&lt;p&gt;since there is above i list 4 and the user only selected 3 thats why its hard i need to have only field the user selected... and not inculde the ones they dont select..&lt;/p&gt;&lt;p&gt;&amp;nbsp;Any ideas it&amp;#39;s a hard hard one..&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>