Jump to content
Welcome to the new FusionPro User Forum! ×

Need help with writing logic to Error out


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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...