Custom query accept  dynamic variable. This is a more genericimplementation than r3999. Closes again #1467.
Custom query accept  dynamic variable. This is a more genericimplementation than r3999. Closes again #1467.
pkdevbox/trac,pkdevbox/trac,pkdevbox/trac,pkdevbox/trac