01-16-2020, 02:31 PM
Yes, an empty option will treat it as if nothing is there. You could also use an expression.
<expression>${expression}</expression>
where expression in python would be something like:
expression = "@SEARCH(lpc/payment['code','in','%s'])" % search_keys
# I believe the delimiter is a pipe
Note a few things:
1) In the filter, you can match to nothing
2) Use @SEARCH and not @SOBJECT as it is more efficient (maybe not so much in this case, but it is good practice)
<expression>${expression}</expression>
where expression in python would be something like:
expression = "@SEARCH(lpc/payment['code','in','%s'])" % search_keys
# I believe the delimiter is a pipe
Note a few things:
1) In the filter, you can match to nothing
2) Use @SEARCH and not @SOBJECT as it is more efficient (maybe not so much in this case, but it is good practice)