Creating collaboration area searches

You can create collaboration area searches so that users can search for items in the item workflows and category workflows in the collaboration area.

Before you begin

Before you can create a collaboration area search, the collaboration area must exist.

Procedure

  1. Create the search. Use any one of the following methods: user interface, Java™ API, or script API.
    Option Description
    User interface - rich search simplified
    1. Click Collaboration Manager > Collaboration Areas > Collaboration Area Console.
    2. Click a workflow step in a collaboration area to display all items in the Multi Edit tab.
    3. Click the Rich Search tab to create a search.
    4. Provide the necessary search details.
    5. Click Search.
    Java API The following sample Java API code searches a collaboration area, executes it and displays the results.
    Context ctx = PIMContextFactory.getCurrentContext();
    		SearchQuery query = ctx.createSearchQuery(" select item.pk from collaboration_area('my collaboration area') where item.step.reserved_by = 'xyz' ");
    		SearchResultSet rs = query.execute();
    		while (rs.next())
    		{
    			System.out.println("Primary Key: " + rs.getString(1));
    		}
    Script API The following sample script searches a collaboration area, executes it and displays the results.
    var query = new SearchQuery(" select item.pk from collaboration_area('my collaboration area') where item.step.reserved_by = 'xyz' ");
    		var rs = query.execute();
    		while (rs.next())
    		{
    			out.writeln("Primary Key: " + rs.getString(1));
    		}
    The search is created, and users can now view it in the left pane.
  2. Optional: Run the search in the Rich search screen.