Skip to content
Snippets Groups Projects
Verified Commit 9843a309 authored by Daniel Hornung's avatar Daniel Hornung
Browse files

DOC: update docs for new behavior of FIND queries (also for FROM)

parent 1fedfb7b
No related branches found
No related tags found
2 merge requests!103Quick main-release of documentation,!85DOC: F find query
Pipeline #30875 passed
...@@ -22,7 +22,7 @@ The following code snippet adds a form to the body of the HTML document. ...@@ -22,7 +22,7 @@ The following code snippet adds a form to the body of the HTML document.
const config = { const config = {
name: "my_form", name: "my_form",
fields: [ fields: [
{ type: "reference_drop_down", name: "experiment_id", label: "Experiment", query: "FIND Record Experiment", required: true }, { type: "reference_drop_down", name: "experiment_id", label: "Experiment", query: "FIND Experiment", required: true },
{ type: "integer", name: "number", label: "A Number", required: true }, { type: "integer", name: "number", label: "A Number", required: true },
{ type: "date", name: "date", label: "A Date", required: false }, { type: "date", name: "date", label: "A Date", required: false },
{ type: "text", name: "comment", label: "A Comment", required: false }, { type: "text", name: "comment", label: "A Comment", required: false },
...@@ -85,7 +85,7 @@ If you intend to call a server-side script, the config has to be changed a litte ...@@ -85,7 +85,7 @@ If you intend to call a server-side script, the config has to be changed a litte
const config = { const config = {
script: "process.py", script: "process.py",
fields: [ fields: [
{ type: "reference_drop_down", name: "experiment_id", label: "Experiment", query: "FIND Record Experiment", required: true }, { type: "reference_drop_down", name: "experiment_id", label: "Experiment", query: "FIND Experiment", required: true },
{ type: "integer", name: "number", label: "A Number", required: true }, { type: "integer", name: "number", label: "A Number", required: true },
{ type: "date", name: "date", label: "A Date", required: false }, { type: "date", name: "date", label: "A Date", required: false },
{ type: "text", name: "comment", label: "A Comment", required: false }, { type: "text", name: "comment", label: "A Comment", required: false },
......
...@@ -191,7 +191,7 @@ The following example for the file global_query_shortcuts.json would create two ...@@ -191,7 +191,7 @@ The following example for the file global_query_shortcuts.json would create two
}, },
{ {
"description": "Show a table of Experiments for year: {year}", "description": "Show a table of Experiments for year: {year}",
"query": "SELECT date, project, identifier FROM Record Experiment with date in {year}" "query": "SELECT date, project, identifier FROM Experiment with date in {year}"
} }
] ]
......
...@@ -31,7 +31,7 @@ exists one. Using ``FIND RecordType Guitar`` would restrict the result to ...@@ -31,7 +31,7 @@ exists one. Using ``FIND RecordType Guitar`` would restrict the result to
only that RecordType. And ``FIND RECORD MusicalInstrument`` is just equivalent only that RecordType. And ``FIND RECORD MusicalInstrument`` is just equivalent
to ``FIND MusicalInstrument``. to ``FIND MusicalInstrument``.
Note, that you cannot only provide RecordType names after the ``FIND``, but names Note, that you can provide not only RecordType names after the ``FIND``, but names
in general: ``FIND "Nice Guitar"``. This will give you a Record with the in general: ``FIND "Nice Guitar"``. This will give you a Record with the
name "Nice Guitar" (if one exists... and there should be one in the demo instance). name "Nice Guitar" (if one exists... and there should be one in the demo instance).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment