Make Advanced Search immediately display search results

From pmusers
Jump to: navigation, search

When the user goes to Home > Advanced Search, she has to click on the Search button to see the search results.

To make ProcessMaker automatically display the search results when the user goes to Home > Advanced Search, edit the file workflow/engine/templates/cases/casesList.js and change lines 2645-9 from:

// Add the additional 'advanced' VTypes -- [End]

});

function msgBox(title, msg, type){

To:

// Add the additional 'advanced' VTypes -- [End]

   if (action == 'search') {
      setTimeout(function() {doSearch();}, 10); 
   }
});

function msgBox(title, msg, type){

Note: The line numbers are based on version 3.3.6 and may be different in your version of Process.

If the workspace has a large number of cases, then making this code change will slow down the time to display the screen at Home > Advanced Search, so it isn't recommended for large workspaces.