Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

API: Problem finding assets by category when cat name has /

I'm writing code to the RAM API to find all assets by SubCategory. The RAM version we are using is 7.2.0.2.

I'm using the RAMAssetQueryBuilder to filter my search results by RAMCategorySchema and RAMSubCategory.


RAMAssetQueryBuilder queryBuilder = new RAMAssetQueryBuilder(ramSession);
queryBuilder.addSearchFilter(ramCaetgorySchema);
queryBuilder.addSearchFilter(ramSubCategory);
SearchResult searchResult = repo.getAssets(queryBuilder);


This works great except for when the Category or SubCategory has a / in the name. I don't get any results in that case.
I've noticed in some fields of the SubCategory there is an escape character that is put in front of the /.

Example of text on RAMSubCategory:
Categorization: No Input \/ Output (Daemon)
Id: no_input__output_daemon
Name: No Input / Output (Daemon)
Full Path: Trio Project Map/Environment/No Input \/ Output (Daemon)

If I do the query from the WebUI, it works fine but as it appears to use the id.
Example Web Query:
ramSearch:(1Classification%2Ctrio_project_map%24environment%2Cno_input___output_%28daemon%29)

0 votes


Be the first one to answer this question!

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Oct 08 '10, 11:05 a.m.

Question was seen: 3,081 times

Last updated: Oct 08 '10, 11:05 a.m.

Confirmation Cancel Confirm