Load a Query
the JCSDL output generated by the Query Builder reflects the state of the editor, it can be loaded into the Query Builder to rebuild a previously created query.
You could load JCSDL dynamically from:
- a text area that prompts a user to submit a JCSDL query
- JCSDL code embedded in the HTML
- JCSDL loaded via AJAX
Once the Query Builder has been initialized, you can load pre-created JCSDL code into it.
In the following example we will create an input field and a button to trigger the load function. A function than reads out the JSCDL code from the input field, and passes it to the Query Builder.
Here is an example HTML code, with the input field and load query button: