Highlighted
Respected Contributor.
Respected Contributor.
515 views

How to validate checkbox

Jump to solution

Hi experts,

My requirement is to validate checkbox in Problem management.Below is the condition which I gave in FC (PM.problem.closure)

not  (closure.criteria in $file=true) and I have even tried with this condition as well. (closure.criteria in $file=false) but which is not working.

Note: Requirement is to display an error message if the checkbox is unchecked.

I am using SM9.40. Thanks in advance.

Regards,

Jithisha

0 Likes
1 Solution

Accepted Solutions
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: How to validate checkbox

Jump to solution

So your Validations tab in FC must contain line like this:

fc_closeureCr.jpg

Then you should update problem and try to save it with and without flag closure.creteria - and report what result will you get.

 

In debugger you should use command (to check cerrent value in record for this field):

d closure.criteria in $L.file

View solution in original post

5 Replies
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: How to validate checkbox

Jump to solution

For Validation Field:

closure.criteria in $file="true"

or

nullsub(closure.criteria in $file, false)

Highlighted
Respected Contributor.
Respected Contributor.

Re: How to validate checkbox

Jump to solution

Hi Alarmus,

Thanks for the reply.

I tried both, But its not working.

 

0 Likes
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: How to validate checkbox

Jump to solution

how exactly doesn't it work ?

What do you get if checkbox have true and otherwise false ?

 

Did you check all variables from RAD debugger ?

.....

0 Likes
Highlighted
Respected Contributor.
Respected Contributor.

Re: How to validate checkbox

Jump to solution

Hi Alarmus,

For the checkbox i have created a logical field .

Field Name closure.criteria

Type : logical

SQL Type:  CHAR(1)

When the checkbox is checked, closure.criteria field will contaion value 't' else 'f'.

When checked using RAD Debugger . Got NULL for this field. Below is the command which i have used to check in RAD

d closure.criteria in $File

d closure.criteria 

Note: Tried this command after checkbox is checked as well as unchecked. But in both case its displaying NULL. But in database its getting saved as 't' if checked and 'f' if unchecked.

My requirement is to display a message if the chechbox is unchecked.

Could you please suggest a way to achieve this.

Thanks,

Jithisha

0 Likes
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: How to validate checkbox

Jump to solution

So your Validations tab in FC must contain line like this:

fc_closeureCr.jpg

Then you should update problem and try to save it with and without flag closure.creteria - and report what result will you get.

 

In debugger you should use command (to check cerrent value in record for this field):

d closure.criteria in $L.file

View solution in original post

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.