Skip to main content

Search value problem when running a report to search for objects with spaces


Technote (troubleshooting)


Problem(Abstract)

Running a report with the "starts with" comparison operator does not find objects with embedded spaces

Symptom

A dialog displays the message "The report is empty."


Cause

Rational System Architect is working as designed. In this case the user is performing a comparison on a Listof field and any item containing a space is saved bounded in quotes, as can be seen both in the Advanced Editor and the Property pane (by selecting the property and observing the content of the bottommost pane). The item is saved bounded in quotes because space is used as a separator in expressions and minispecs. The parser needs the quotes to distinguish between definition names, operators, verbs, and so on.

Diagnosing the problem

  1. Define an Application definition.
  2. Under the Technologies tab, add a technology named My tech and click OK to save the definition.
  3. Create a new Report via the report generator.
  4. Specify the following property values:
    - Definitions where type is Application
    - Property is Technologies <-- Technologies
    - Comparison is starts with, and Value is My
  5. For Properties to Print select Name.
  6. Generate the report. Note that the report is empty.
  7. Edit the report, changing the Value clause to "My (with the quotes).
  8. Generate the report.
  9. The Application definition is found.

Resolving the problem

When using a report to search for objects, in the Select Objects Wheredialog, and choosing starts with for the comparison operator, add a double-quotes to the beginning of the Value clause.

Rate this page:

(0 users)Average rating

Copyright and trademark information

IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.

Rate this page:


(0 users)Average rating

Add comments

Document information

Rational System Architect

General Information


Software version:
11.4.0.3, 11.4.1, 11.4.1.1, 11.4.1.2, 11.4.2, 11.4.2.1


Operating system(s):
Windows


Reference #:
1617438


Modified date:
2012-11-15

Translate my page

Content navigation