javascript - NotesDatabase search with more than 1 parameter -


i'm trying documents match codes criteria:

var allrelevant:notesdocumentcollection = db.search("sender='sender'" + "to='addressee'"); 

db notesdatabase have defined earlier in code. .search() works okay 1 string (for example "sender='sender'") can't figure out how search database 2 conditions (2 strings). how can that?

the search- string @formula- syntax use in view selection formula , can contain elements allowed in context.

if @formula there logical operators:

& - ,   | - or   ! - not 

your search multiple fields be:

sender='sender' & to='addressee' 

or in example

"sender='sender'" + "&" + "to='addressee'" 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -