Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-webui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-webui
Commits
9843a309
Verified
Commit
9843a309
authored
2 years ago
by
Daniel Hornung
Browse files
Options
Downloads
Patches
Plain Diff
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
!103
Quick main-release of documentation
,
!85
DOC: F find query
Pipeline
#30875
passed
2 years ago
Stage: linting
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/doc/extension/forms.rst
+2
-2
2 additions, 2 deletions
src/doc/extension/forms.rst
src/doc/extension/query_templates.rst
+1
-1
1 addition, 1 deletion
src/doc/extension/query_templates.rst
src/doc/tutorials/query.rst
+1
-1
1 addition, 1 deletion
src/doc/tutorials/query.rst
with
4 additions
and
4 deletions
src/doc/extension/forms.rst
+
2
−
2
View file @
9843a309
...
...
@@ -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 },
...
...
This diff is collapsed.
Click to expand it.
src/doc/extension/query_templates.rst
+
1
−
1
View file @
9843a309
...
...
@@ -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}"
}
]
...
...
This diff is collapsed.
Click to expand it.
src/doc/tutorials/query.rst
+
1
−
1
View file @
9843a309
...
...
@@ -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 can
not 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).
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment