Getting the value of large string extensions
![](http://jazz.net/_images/myphoto/654d22298d54cfa97c763f15e0453603.jpg)
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());
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
![](http://jazz.net/_images/myphoto/654d22298d54cfa97c763f15e0453603.jpg)
lquintela wrote:
I'm not sure you can do this. Perhaps someone more familiar with the
query model could answer this?
james
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
![](http://jazz.net/_images/myphoto/654d22298d54cfa97c763f15e0453603.jpg)
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:
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