Jump to content

Need help with writing logic to Error out


Tony Olivas

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...