Searching attachments script - livecycle

Avatar

Avatar
Level 1
blademan747
Level 1

Likes

0 likes

Total Posts

1 post

Correct reply

0 solutions
View profile

Avatar
Level 1
blademan747
Level 1

Likes

0 likes

Total Posts

1 post

Correct reply

0 solutions
View profile
blademan747
Level 1

01-04-2017

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");

Thanks

Accepted Solutions (0)

Answers (0)