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
- Create the search. Use any one of the following methods:
user interface, Java™ API, or
script API.
Option |
Description |
User interface - rich search simplified |
- Click Collaboration Manager > Collaboration Areas >
Collaboration Area Console.
- Click a workflow step in a collaboration area to display all items
in the Multi Edit tab.
- Click the Rich Search tab to create a search.
- Provide the necessary search details.
- 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.
- Optional: Run the search in the Rich search
screen.