If I define a Filter like this:
var filter = DOpus.Create.Filter('=Match(Val("scp:col_search_test/texto"),"m","p")');
if (filter.valid)
DOpus.Output("Valid");
else
DOpus.Output("Not valid : " + filter.lasterror.message);
will work. However if I want to define more than one line, using Filter.Add()
, the same textual filter will not be valid, but with no error message:
var filter = DOpus.Create.Filter();
filter.Add('=Match(Val("scp:col_search_test/texto"),"m","p")');
if (filter.valid)
DOpus.Output("Valid");
else
DOpus.Output("Not valid : " + filter.lasterror.message);
Is there anything I'm overlooking?
Edit: With the first example, I'm going to get an 0x80004005 Error whenever I try to use that Filter (e.g. with the Command.SetFilter method)