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

RTC 6.0.6 - Java client API - How to call a predefined query with parameters ?

 Hello,

I write a java program , who call some predefined querys in RTC.
One of this querys require a parameter, the work item id.

How to pass this parameter to the IQueryDescriptor instancied query variable 
I can try to use query.setParameterValues() but it is marked @deprecated.

I use RTC 6.0.6.

Thanks in advance

0 votes


Accepted answer

Permanent link
Looks like you may have to continue to use IQueryDescriptor.setParameterValues() even though it was marked as deprecated way back in 2012 in RTC 4.0.
I see there was a work item extracted to implement some alternative API to use, but this was never finished (tracked in Extract ResolvedQuery abstraction from IQueryDescriptor (198737))
Olivier ROSET selected this answer as the correct answer

1 vote

Your answer

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
× 235
× 89

Question asked: Jul 12 '19, 10:27 a.m.

Question was seen: 2,017 times

Last updated: Dec 04 '19, 5:33 a.m.

Confirmation Cancel Confirm