Highlighted
Jithisha Respected Contributor.
Respected Contributor.
90 views

How to print error message

Jump to solution

Hi Experts,

My requirement is to print an error message when the value of temporary variable is “True”.

I have written a script which will set the value for this temporary variable.

And called this script under calculate tab of FC. Please find the below screen shot.

Capture1.PNG

Next based on this temporary value we need to print error message. 

I gave below condition under validate tab of FC. but its not working.

Capture2.PNG

Please suggest a solution for this.

What condition do i need to give in validate tab to print error message?

Thanks in Advance.

Jithisha

0 Likes
1 Solution

Accepted Solutions
ALARMus Acclaimed Contributor.
Acclaimed Contributor.

Re: How to print error message

Jump to solution

If condition is TRUE then no error and do not need to display any message. (error message displayed when condition is false)

So if you need to do the opposite then  set in condition not($InstallCheck)

3 Replies
ALARMus Acclaimed Contributor.
Acclaimed Contributor.

Re: How to print error message

Jump to solution

1) In your "Validation" you set focus on $InstallCheck field - Are you shure that you have such field on form or may be you need set focus on InstallTeamPriority?

2) In your Validation you set condition that $InstallCheck not equel false (else, if it is equel false then display message). If your script return in $InstallCheck the next value: FALSE or TRUE it is enough in "validations condition" to set the following condition: $InstallCheck.

 

3) To check it you can set print() in your script and display some value.

0 Likes
Jithisha Respected Contributor.
Respected Contributor.

Re: How to print error message

Jump to solution

Hi Alarmus ,

Thanks for the reply.

I have modified the FC and below screen shot shows the same.

Capture3.PNG

The value returned by script is True. But still the error message didn't print.

Could you please help me to modify the condition.

 

Regards,

Jithisha

0 Likes
ALARMus Acclaimed Contributor.
Acclaimed Contributor.

Re: How to print error message

Jump to solution

If condition is TRUE then no error and do not need to display any message. (error message displayed when condition is false)

So if you need to do the opposite then  set in condition not($InstallCheck)

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.