<?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: Help finding right rule combination for this to work!!</title><link>https://www.infopathdev.com:443/forums/thread/94027.aspx</link><pubDate>Fri, 01 Nov 2013 13:14:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94027</guid><dc:creator>leebrockney</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94027.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=94027</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Yes Sorry!!&amp;nbsp; Got caught up in another project and had to put this aside for a bit.&amp;nbsp; I got it working last night using the outline you provided.&amp;nbsp; Thank you very much!!&amp;nbsp; &lt;/p&gt;</description></item><item><title>Re: Help finding right rule combination for this to work!!</title><link>https://www.infopathdev.com:443/forums/thread/94022.aspx</link><pubDate>Thu, 31 Oct 2013 20:28:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94022</guid><dc:creator>brunettej</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94022.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=94022</wfw:commentRss><description>Did you get it to work?  Just curious.</description></item><item><title>Re: Help finding right rule combination for this to work!!</title><link>https://www.infopathdev.com:443/forums/thread/93914.aspx</link><pubDate>Fri, 25 Oct 2013 20:00:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:93914</guid><dc:creator>brunettej</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/93914.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=93914</wfw:commentRss><description>basically this would act like a if/else statement

boolean hdnBoloean = false;

if(Question1 = no)
{
    hdnBoloean = true;
}
if(Question3 = no)
{
    hdnBoloean = true;
}
if(Question3 = no)
{
    hdnBoloea3 = true;
}
if(Question1 = yes)
{
    hdnBoloean = false;
}
if(Question3 = yes)
{
    hdnBoloean = false;
}
if(Question3 = yes)
{
    hdnBoloea3 = false;
}</description></item><item><title>Re: Help finding right rule combination for this to work!!</title><link>https://www.infopathdev.com:443/forums/thread/93913.aspx</link><pubDate>Fri, 25 Oct 2013 19:41:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:93913</guid><dc:creator>brunettej</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/93913.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=93913</wfw:commentRss><description>Ok, I get it.  I didnt get that your score is is going to be negative.  In that case I would set the questions where if &amp;quot;no&amp;quot; was selected, set their value to true; &amp;quot;yes&amp;quot; is false.  Create a hidden field (hdnBoolean) and set that fields default value to false.  On your dropdowns if  Question 2&amp;#39;s answer was choosen as &amp;quot;no&amp;quot;, create a rule to set that hiddenField&amp;#39;s value to true.  Now same as I mentioned before.  Have an additional action rule on you total where if the condition: hdnBoolean = true  and run these actions to set a fields value to: ComplianceTotal  = &amp;quot;Compliance Failure&amp;quot;.

This way your not messing with numbers but rather set a hidden fields value to true or false.  In this case if any no&amp;#39;s were selected, the hdnBoolean will become true.  if hdnBoolean is true at any poinmt set your total to &amp;quot;Compliance Failure&amp;quot;.  if the answers were changed to yes the hdnBoolean field would change back to false, allowing the &amp;quot;Compliance Failure&amp;quot; to be removed and your normal math would be performed. 

Hopefully I am making sense.</description></item><item><title>Re: Help finding right rule combination for this to work!!</title><link>https://www.infopathdev.com:443/forums/thread/93912.aspx</link><pubDate>Fri, 25 Oct 2013 18:04:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:93912</guid><dc:creator>leebrockney</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/93912.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=93912</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Also,&amp;nbsp; this would leave the possibility of you having a positive score in the compliance Section.&amp;nbsp; The only outcomes within compliance are a score of 0, -1, -2, -3,-4,-5,-6,-7, -8, or &amp;quot;Compliance Failure&amp;quot;.&amp;nbsp; &lt;/p&gt;</description></item><item><title>Re: Help finding right rule combination for this to work!!</title><link>https://www.infopathdev.com:443/forums/thread/93911.aspx</link><pubDate>Fri, 25 Oct 2013 17:48:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:93911</guid><dc:creator>leebrockney</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/93911.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=93911</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thanks!&amp;nbsp; This is very similar to what I did before.&amp;nbsp; I am using drop down boxes instead of radio buttons but the idea is the same.&amp;nbsp; The issue is that when I go back and change one of the selections it then starts to miscalculate.&lt;/p&gt;&lt;p&gt;&amp;nbsp;For instance,&amp;nbsp; say I make Q1 a &amp;quot;No&amp;quot;.&amp;nbsp; that turns the HdnComplianceSectionValue to a -1.&amp;nbsp; Then I make Q3 a &amp;quot;no&amp;quot; and that then changes the HdnComplianceSectionValue to a -3.&amp;nbsp; (This is right up to this point).&amp;nbsp; But if the user accidently chose &amp;quot;No&amp;quot; and tries to change it back to &amp;quot;Yes&amp;quot;, the HdnComplianceSectionValue changes to -2 instead of -1 because it is just adding the new value to the existing erroneous value.&amp;nbsp; Does that make sense?&amp;nbsp; &lt;/p&gt;</description></item><item><title>Re: Help finding right rule combination for this to work!!</title><link>https://www.infopathdev.com:443/forums/thread/93910.aspx</link><pubDate>Fri, 25 Oct 2013 16:24:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:93910</guid><dc:creator>brunettej</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/93910.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=93910</wfw:commentRss><description>Hey Lee.  Hope I can help some what.  

Compliance section:

Question 1, 12: use radio buttons, set the value for the yes as 1 and no to -1
Questions 3,6,11:  use radio buttons, set the value for the yes as 1 and no to -2

have a hidden field (we&amp;#39;ll call it &amp;quot;hdnComplienceSectionValue&amp;quot;), data type a s a whole number (Integer).

You can place an action rule on each radio button group to set a fields value [no condition]
Field:  hdnComplienceSectionValue
Value: hdnComplienceSectionValue + .  //the &amp;quot;.&amp;quot; is the current radio button groups value either 1 for yes or -1/-2 for no depending on the question #

The value hdnComplienceSectionValue + .    will be used for all radio button in the compliance section.  Its basically taking the hdnComplienceSectionValue value say 0 and addind the radio buttons value.

From here you can set a calculated value field or a new textboxs default value to the hdnComplienceSectionValue.

or

TotalScore&amp;#39;s value= QualityScore + hdnComplienceSectionValue.


///////QUOTE//////For the remaining questions (2,4,5,7,8,9,10,13,14,15,16 (these return a 1 if No)) the TotalScore is automatically 0 and the ComplianceTotal textbox control should display the Text &amp;quot;Compliance Failure&amp;quot;.

For this part I am assuming your using radio buttons or a drop down and the value for Yes is &amp;quot;0&amp;quot;.  Here&amp;#39;s what I would do:

1) create a hidden field (whole number) on your form and set its deafult value to 0. (we&amp;#39;ll call it &amp;quot;hdnNoAnswers&amp;quot;)
2) for questions 2,4,5,7,8,9,10,13,14,15,16; set an action rule to set the hdnNoAnswers value to &amp;quot;hdnNoAnswers + .&amp;quot;
*same as above, were taking the hdnNoAnswers current value and adding either a 0(yes) or 1(no)
3)  create an action rule on that hdnNoAnswers:   set the condition to hdnNoAnswers &amp;gt; 0   
  and run these actions to set a fields value to: ComplianceTotal  = &amp;quot;Compliance Failure&amp;quot;
* basically if any no was selected the it will set the ComplianceTotal  textbox to that value orther wise it should do all the math you want
So basically if anyone selects no the hdnNoAnswers will incriment by 1

I hope this helps and makes sense.  Theres probably an easier way, such as using true/false values but this should work.

Brunettej</description></item><item><title>Help finding right rule combination for this to work!!</title><link>https://www.infopathdev.com:443/forums/thread/93908.aspx</link><pubDate>Fri, 25 Oct 2013 13:40:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:93908</guid><dc:creator>leebrockney</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/93908.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=93908</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hello,&amp;nbsp; I am new to InfoPath but am designing a quality scorecard for use by our quality team while monitoring and reviewing processes.&amp;nbsp; The form has a basic info section, a quality section, and a compliance section.&amp;nbsp;&amp;nbsp; I have everything setup correctly but now I am trying to add 3 fields that provide the user with the final quality score by adding the 2 section score totals together.&amp;nbsp; Those fields are QualityScore (Section 1), ComplianceScore (Section 2), TotalScore.&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Section 1&amp;#39;s&amp;nbsp;total (QualityScore)&amp;nbsp;is working fine as it is just a basic addition formula that adds up the value of the 5 questions in that section and displays the total.&amp;nbsp;&amp;nbsp; The ComplianceScore and the&amp;nbsp;TotalScore is where I cannot for the life of me figure out how to get it to work.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The Compliance section is 16 questions.&amp;nbsp; Questions 1 and 12, if answered no, return a value of -1 (reduction of quality score by 1).&amp;nbsp; Questions 3, 6, and 11, if answered no, return a value of -2 (reduction of quality score by 2).&lt;/p&gt;&lt;p&gt;if it ended here&amp;nbsp;I would again just do a simple addition formula in the&amp;nbsp;ComplianceScore&amp;nbsp;textbox control&amp;nbsp;and then in the&amp;nbsp;TotalScore&amp;nbsp;textbox control&amp;nbsp;just add the formula QualityScore + ComplianceScore.&amp;nbsp; The issue is that the remaining questions (2,4,5,7,8,9,10,13,14,15,16 (these return a 1 if No)) are requirements so if any of them are answered with a &amp;quot;No&amp;quot; the&amp;nbsp;TotalScore&amp;nbsp;is automatically 0 and the ComplianceTotal textbox control should display the Text &amp;quot;Compliance Failure&amp;quot;.&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;I have put rules on the questions, I have tried rules on the ComplianceScore control and none of them work all the time.&amp;nbsp; I can get them to work sometimes but the results seem to change depending on the order by which I select the answers.&amp;nbsp;&amp;nbsp;This would be so much simpler to me if I could just put an If Statement in the formula bar for the TotalScore.&amp;nbsp; &lt;em&gt;IF(SUM(&lt;/em&gt;2,4,5,7,8,9,10,13,14,15,16) &amp;gt; 0, 0, QualityScore + ComplianceScore) while the formula for the ComplianceScore would be IF(&lt;em&gt;SUM(&lt;/em&gt;2,4,5,7,8,9,10,13,14,15,16) &amp;gt; 0, &amp;quot;Compliance Failure&amp;quot;, Q1+Q12+Q3+Q6+Q11).&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p&gt;Can someone help me figure this out!!&amp;nbsp; Thanks!&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Lee&lt;/p&gt;</description></item></channel></rss>