Expand my Community achievements bar.

Searching attachments script - livecycle


Level 1

Anyone know how to run a script in livecycle that will grab the value entered by a user in, say "TextField1", and run the search against the "attachments" of the document? I'm thinking something like this perhaps, but this is not working and its running the search against the contents of the opened document, not attachment:

var cSearchTxt = this.getField("TextField1").value;

search.matchCase = false;

search.wordMatching = "MatchAnyWord";

search.bookmarks = true;

search.query(cSearchTxt, "ActiveDoc");


0 Replies