It's all about the answers!

Ask a question

Getting the value of large string extensions


Luis Quintela (461812) | asked Dec 23 '08, 3:52 p.m.
JAZZ DEVELOPER
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());

2 answers



permanent link
James Moody (3.3k24) | answered Dec 29 '08, 9:48 a.m.
JAZZ DEVELOPER
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

permanent link
Matt Lavin (2.7k2) | answered Jan 01 '09, 5:08 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
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

Your answer


Register or 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.