View Single Post
  #1  
Old December 5th, 2016, 12:21 PM
ricky10ss ricky10ss is offline
Junior Community Member
 
Join Date: Mar 2009
Posts: 35
Default Suppress specific pages on two values

Below is the onRecordStart rule I was using but I found out I need to adjust to another field. The switch rule below is turning on the specific pages based off their plan. But there is a value field called "Amount" that if there is no value for 250, 500, 750 and 1000 plans they do not get 250_500_750_1000NonInsured P1 or 250_500_750_1000NonInsured P2. What would you recommend doing for this?

switch (Field("PLANOPTION"))
{
case "200":
FusionPro.Composition.SetBodyPageUsage("200 P1", true)
FusionPro.Composition.SetBodyPageUsage("200 P2", true)
FusionPro.Composition.SetBodyPageUsage("200NonInsu red P1", true)
FusionPro.Composition.SetBodyPageUsage("200NonInsu red P2", true)
break;

case "250":
FusionPro.Composition.SetBodyPageUsage("250 P1", true)
FusionPro.Composition.SetBodyPageUsage("250 P2", true)
FusionPro.Composition.SetBodyPageUsage("250_500_75 0_1000NonInsured P1", true)
FusionPro.Composition.SetBodyPageUsage("250_500_75 0_1000NonInsured P2", true)
break;

case "500":
FusionPro.Composition.SetBodyPageUsage("500_750_10 00 P1", true)
FusionPro.Composition.SetBodyPageUsage("500_750_10 00 P2", true)
FusionPro.Composition.SetBodyPageUsage("250_500_75 0_1000NonInsured P1", true)
FusionPro.Composition.SetBodyPageUsage("250_500_75 0_1000NonInsured P2", true)
break;

case "750":
FusionPro.Composition.SetBodyPageUsage("500_750_10 00 P1", true)
FusionPro.Composition.SetBodyPageUsage("500_750_10 00 P2", true)
FusionPro.Composition.SetBodyPageUsage("250_500_75 0_1000NonInsured P1", true)
FusionPro.Composition.SetBodyPageUsage("250_500_75 0_1000NonInsured P2", true)
break;

case "1000":
FusionPro.Composition.SetBodyPageUsage("500_750_10 00 P1", true)
FusionPro.Composition.SetBodyPageUsage("500_750_10 00 P2", true)
FusionPro.Composition.SetBodyPageUsage("250_500_75 0_1000NonInsured P1", true)
FusionPro.Composition.SetBodyPageUsage("250_500_75 0_1000NonInsured P2", true)
break;

}
Reply With Quote