I've read some of the JS API for this section but still couldn't achieve what I wanted.
I am trying to search the file for a string of words. Then based on a match, create a bookmark. I can do this, but not when I want to make multiple queries under the same Action. Is there a workaround?
Here's my code for a single query which works fine:
var thesearch = search.query("blah blah blah", "ActiveDoc");
if (thesearch!=null) {
this.bookmarkRoot.createChild({cName:"Bookmark Name", cExpr:"this.pageNum=" + thesearch.pageNum, nIndex: this.numPages-1})
}