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

Getting the value of large string extensions

Hi, I'm trying to create a live table to expose large strings. It seems that the method value() is available for all the types but for large strings. For those, I only have access to the key.

How can I retrieve the value for large strings?

liveTable.setItemType(IWorkItem.ITEM_TYPE);

WorkItemQueryModel model = WorkItemQueryModel.ROOT;
List<IField> selection = liveTable.getSelection();

selection.add(model.stringExtensions().key());
selection.add(model.stringExtensions().value());
selection.add(model.largeStringExtensions().key());

0 votes



2 answers

Permanent link
lquintela wrote:
Hi, I'm trying to create a live table to expose large strings. It
seems that the method value() is available for all the types but for
large strings. For those, I only have access to the key.

How can I retrieve the value for large strings?

liveTable.setItemType(IWorkItem.ITEM_TYPE);

WorkItemQueryModel model = WorkItemQueryModel.ROOT;
List<IField> selection = liveTable.getSelection();

selection.add(model.stringExtensions().key());
selection.add(model.stringExtensions().value());
selection.add(model.largeStringExtensions().key());


I'm not sure you can do this. Perhaps someone more familiar with the
query model could answer this?

james

0 votes


Permanent link
James is right about the query model. It is not possible to select
large strings with a data query. To fetch the large string, you can
fetch the entire item with the RepositoryItemService and then you can
get the string extension from the item.

-
Matt Lavin
Jazz Server Team


On Mon, 2008-12-29 at 09:46 -0500, James Moody wrote:
lquintela wrote:
Hi, I'm trying to create a live table to expose large strings. It
seems that the method value() is available for all the types but for
large strings. For those, I only have access to the key.

How can I retrieve the value for large strings?

liveTable.setItemType(IWorkItem.ITEM_TYPE);

WorkItemQueryModel model = WorkItemQueryModel.ROOT;
List<IField> selection = liveTable.getSelection();

selection.add(model.stringExtensions().key());
selection.add(model.stringExtensions().value());
selection.add(model.largeStringExtensions().key());


I'm not sure you can do this. Perhaps someone more familiar with the
query model could answer this?

james

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,954

Question asked: Dec 23 '08, 3:52 p.m.

Question was seen: 6,228 times

Last updated: Dec 23 '08, 3:52 p.m.

Confirmation Cancel Confirm