getValue

returns the value set for Query Builder

object getValue();

Returns

objectan object with rules and fields for filtering

Example

var value = $$("querybuilder1").getValue();

Related samples

Details

The returned object with rules and fields looks as in:

{
    glue:"and",
    [
        {
            glue:"and",
            rules:[
                { key:"fname", value:"Alex", rule:"equal" },
                { 
                    glue:"or",
                    rules:[
                        { key:"age", value:90, rule:"less" },
                        { key:"age", value:10, rule:"greater" }
                    ]
                }
            ]
        },
        [
            { id:"fname",   value:"First Name", type:"string" },
            { id:"lname",   value:"Last Name",  type:"string" },
            { id:"age",     value:"Age",        type:"number" },
            { id:"bdate",   value:"Birth Date", type:"date" }
        ]
    ]
}
See also
Back to top