getSelectedListItems

The method returns an array of objects, each representing one item currently selected in the list.

This method can be used with the following list types:

  • Work views (‘wccWorkViews’)
  • Work items (‘wccWorkItems’)
  • Process views (‘wccProcessViews’)
  • Process instances (‘wccProcessInstances’)
  • Business services (‘wccBusinessServices’)
  • Event Views (‘wccEventViews’)
  • Event Viewer (‘wccEventViewer’)
  • Process Templates (‘wccProcessTemplates’)
  • Process Templates Ex (‘wccProcessTemplatesEx’)

This method is called from the list container object whose selected-item information you want returned. An example is shown below:

var oWorkItems = this.app.getAppBlock().getDescendantOfName('wccWorkItems');
oWorkItems.doRefresh();
var oDisplayedWorkItems = oWorkItems.getSelectedListItems();

Also see doRefresh.

The getSelectedListItems method returns an array of objects, each one representing an item selected in the list. The properties on each object depends on the list type. The properties returned are the same as those returned from the getDisplayedListItems method.