diff --git a/src/doc/extension/forms.rst b/src/doc/extension/forms.rst index e1891b8d7e571c4a273cec98fcc39e50398936f0..11a7167d1277c9fbb7ed6dda6e611ce4aca48302 100644 --- a/src/doc/extension/forms.rst +++ b/src/doc/extension/forms.rst @@ -22,7 +22,7 @@ The following code snippet adds a form to the body of the HTML document. const config = { name: "my_form", 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: "date", name: "date", label: "A Date", 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 const config = { script: "process.py", 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: "date", name: "date", label: "A Date", required: false }, { type: "text", name: "comment", label: "A Comment", required: false }, diff --git a/src/doc/extension/query_templates.rst b/src/doc/extension/query_templates.rst index 4e511ac9f91b26ffcda2674362b00070948c1bd2..9f120f757fc51304413723a06752d932be0aba7b 100644 --- a/src/doc/extension/query_templates.rst +++ b/src/doc/extension/query_templates.rst @@ -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}", - "query": "SELECT date, project, identifier FROM Record Experiment with date in {year}" + "query": "SELECT date, project, identifier FROM Experiment with date in {year}" } ] diff --git a/src/doc/tutorials/query.rst b/src/doc/tutorials/query.rst index 8f5a9bcb296685b30860289df3875a5a47ca514a..bd57093869bdb8ecb52e7fe93d6ac5a3f6d03328 100644 --- a/src/doc/tutorials/query.rst +++ b/src/doc/tutorials/query.rst @@ -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 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 name "Nice Guitar" (if one exists... and there should be one in the demo instance).