Lets do it with simple sample they placed here for download :
http://redquerybuilder.appspot.com/
http://redquerybuilder.appspot.com/static/dist-0.5.0-js.zip
I found easy solution hopefully you like it :
first add jquery.min.js to root beside index.html
second add this line to index :
<script src="jquery.min.js" type="text/javascript" language="javascript">//</script>
now add this part at the end of json file simple.js
before :
editors : [ {
name : 'DATE',
format : 'dd.MM.yyyy'
} ]
});
add this :
onLoad : function(){
$('.gwt-ListBox').val('Define Qualifying Criteria');
$('.gwt-ListBox').change();
$('.gwt-Button').click();
},
even you can hide select by this :
onLoad : function(){
$('.gwt-ListBox').val('Questions');
$('.gwt-ListBox').change();
$('.gwt-ListBox').hide();
$('.gwt-Button').click();
},
but you know what this is not your answer you need to find a way to load Saved searches
like example :
[
{
"label": "Cities in the UK",
"sql": "SELECT \"x0\".\"ID\", \"x0\".\"NAME\", \"x0\".\"COUNTRYCODE\", \"x0\".\"DISTRICT\", \"x0\".\"POPULATION\" FROM \"CITY\" \"x0\" INNER JOIN \"COUNTRY\" \"x1\" ON \"x0\".\"COUNTRYCODE\" = \"x1\".\"CODE\" WHERE (\"x1\".\"NAME\" = ?)",
"args": [
"United Kingdom"
]
},
{
"label": "Large cities in the UK plus Oxford",
"sql": "SELECT \"x0\".\"ID\", \"x0\".\"NAME\", \"x0\".\"COUNTRYCODE\", \"x0\".\"DISTRICT\", \"x0\".\"POPULATION\" FROM \"CITY\" \"x0\" INNER JOIN \"COUNTRY\" \"x1\" ON \"x0\".\"COUNTRYCODE\" = \"x1\".\"CODE\" WHERE ((\"x1\".\"NAME\" = ?) AND ((\"x0\".\"POPULATION\" > ?) OR (\"x0\".\"NAME\" = ?)))",
"args": [
"United Kingdom",
"100000",
"Oxford"
]
},
{
"label": "Official languages",
"sql": "SELECT \"x0\".\"COUNTRYCODE\", \"x0\".\"LANGUAGE\", \"x0\".\"ISOFFICIAL\", \"x0\".\"PERCENTAGE\" FROM \"COUNTRYLANGUAGE\" \"x0\" WHERE (\"x0\".\"ISOFFICIAL\" = ?)",
"args": [
"T"
]
}
]