Converting a URL-encoded filter to a LABKEY.Filter - is there a quick and easy way? | Leo Dashevskiy | 2015-04-28 08:37 |
Status: Closed | ||
A JS method that takes in an object, which has key value pairs in the form: "age~gt": 0, and returns the array of "filter objects", would be nice [ the input argument is the result of Ext.urlDecode( parametersString ), where parametersString is of the form blah&age%7Egt=0&blah... ] Care must be taken to ensure that only pairs with keys containing a tilde "~" are converted, moreover, only those pairs, where the portion in a key after the tilde is a valid operator name, are converted. What do you think? Thanks, Jon. |
||