doRefresh

This method updates the current list, including the execution of any callouts which may update the filtering, sorting, or columns.

If some other part of the application is used to determine the filtering, sorting, or columns of a list, ideally, changes to that input would trigger an update of that list. Otherwise, the changes would only occur if the user explicitly refreshes the list. The doRefresh method can be used to trigger that update from other parts of the application.

For instance, a callout for a process instance list could set the filter so that it shows only items for processes referenced by the currently selected work item(s). In code triggered by a change in the work item selection, the doRefresh method could be called on the process instance list, which will then trigger the application of the new filter.

  • 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 you want to refresh. An example of its use is shown below:

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