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

How to get only certain attributes of a data item

I have created a IAuditable type of data item in my ecore and am using the following call to get the previous states of the item:

repositoryItemService.fetchStates(handles, IRepositoryItemService.COMPLETE);

However, I only need to get a subset of the attributes. Some of the attributes I want are in a contained child item of the data item (helper item). How do I specify this in the above call ?

How do I specify attribute of child items in the following call -
repositoryItemService.fetchStates(handles, new String[] {"stateId", "child item.child attribute"});

Thanks a lot,
- Vibha

0 votes



One answer

Permanent link
Fetching only part of a helper item for an arbitrary state is not
supported in 1.0. If you are only interested in the data from the most
current state of each item, then you can use IDataQuery to fetch only
the data you want (rather than the full items).

vssinha wrote:
I have created a IAuditable type of data item in my ecore and am using
the following call to get the previous states of the item:

repositoryItemService.fetchStates(handles,
IRepositoryItemService.COMPLETE);

However, I only need to get a subset of the attributes. Some of the
attributes I want are in a contained child item of the data item
(helper item). How do I specify this in the above call ?

How do I specify attribute of child items in the following call -
repositoryItemService.fetchStates(handles, new String[]
{"stateId", "child item.child attribute"});

Thanks a lot,
- Vibha

0 votes

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
× 10,938

Question asked: Aug 04 '08, 8:25 a.m.

Question was seen: 5,630 times

Last updated: Aug 04 '08, 8:25 a.m.

Confirmation Cancel Confirm