B.4 Retrieving all Saved Queries for the Current User

You can use the JavaScript API to retrieve all saved queries for the user who is currently logged on. To do this, you need to call the getNames() static method on the JUICE.IDM.Enities.Search object.

The following JavaScript example illustrates the procedure for retrieving all saved queries for the current user:

function query4GetSavedQueries() {
  var searchNames = JUICE.IDM.Entities.Search.getNames();
  var replaceDiv = document.getElementById("savedQueryNames");
  replaceDiv.innerHTML = searchNames;
}