IBM Support

Using the ClearQuest API method BuildFilter to check for empty field does not work

Troubleshooting


Problem

This technote identifies an issue that can occur in IBM Rational ClearQuest. Using the API method BuildFilter to check for empty fields may not return expected result sets.

Symptom

Unexpected result sets return when you use these filters to check if a field contains a value:

operator.BuildFilter "test_field", AD_COMP_OP_EQ, ""

OR

operator.BuildFilter "test_field", AD_COMP_OP_NEQ, ""

[{"Product":{"code":"SSSH5A","label":"Rational ClearQuest"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"API","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.0.1;7.0.1.1;7.0.1.2;7.0.1.3;7.0.1.4;7.0.1.5;7.0.1.6;7.0.1.7;7.0.1.8;7.0.1.9;7.1;7.1.0.1;7.1.0.2;7.1.1;7.1.1.1;7.1.1.2","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
29 September 2018

UID

swg21376139