The structure of a script-based selection
When you create a new selection you need to choose a Source Table. The IDs returned from the methodgetIds are assumed to be of this table. When you have chosen the Source Table and pressed Continue, the next screen displays the bare-bone of the selection.
execute and getIds. Place your search engine code in the execute function, and the code to retrieve the IDs in the getIds function.
Example
domain/scripts/ticket.exe?action=searchTable&table=<person>&selectionIncludeId=<incId>
Replace <person> and <incId> with the table in question and the includeId of the selection.