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"); 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? 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. 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; Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.