Tony Olivas Posted August 23, 2011 Share Posted August 23, 2011 My logic is not working what am I doing wrong? val = (Field("cert1") || Field("cert2") || Field("cert3") || Field("cert4") || Field("cert5") || Field("cert6") || Field("cert7") || Field("cert8")); if (val == "") ReportError("Error in data validation - aborting"); Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted August 23, 2011 Share Posted August 23, 2011 I don't know. What are you expecting, and how is that different from what you're getting? Quote Link to comment Share on other sites More sharing options...
Tony Olivas Posted August 23, 2011 Author Share Posted August 23, 2011 I'm expecting it not to compose. And report the error. Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted August 23, 2011 Share Posted August 23, 2011 I'm not sure why you're expecting that. The ReportError function merely writes a message to the composition log (.msg) file and aborts execution of the current rule. It doesn't abort the entire composition. You can tell FusionPro not to compose the current record if you do this in OnRecordStart: FusionPro.Composition.composeThisRecord = false; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.