You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-1Lines changed: 16 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@ Table of contents:
12
12
*[Adding variable type](#adding-variable-type)
13
13
*[Templated queries](#templated-queries)
14
14
*[Query icons](#query-icons)
15
+
*[Custom queries](#custom-queries)
15
16
*[Representation Mapper](#representation-mapper)
16
17
*[Using the local pods](#using-the-local-pods)
17
18
*[Testing](#testing)
@@ -140,7 +141,7 @@ The set of sources over which a query will be executed is derived from two *opti
140
141
141
142
If both inputs are present, the query will be executed over the superset of sources.
142
143
143
-
The (auxiliary) query provided in `sourceIndex.queryLocation` is executed on `sourceIndex.url` and must result in the list of sources.
144
+
The (auxiliary) query provided in `sourceIndex.queryLocation` is executed on `sourceIndex.url` and must result in the list of source URLs.
144
145
145
146
If `sourceIndex` is used and there is no `comunicaContext.lenient` property found, one will be created with value `true`.
146
147
This makes sure that the (main) query can succeed if not all obtained sources are accessible.
@@ -178,6 +179,20 @@ For this to work you need to add the icon to the exports in [IconProvider.js](./
178
179
We advise to use the [Material UI icons](https://material-ui.com/components/material-icons/) as this is what's used internally in `react-admin` and it is also included in the dependencies.
179
180
Nevertheless, you can use any React component you want, just make sure it's a functional component.
180
181
182
+
## Custom queries
183
+
184
+
Besides the prepared queries in the configuration file, a user can edit custom queries:
185
+
186
+
- To create a custom query, open "Custom Query Editor" from the menu on the left.
187
+
- Complete the custom query editor form and click the "CREATE QUERY" button when ready.
188
+
- Your new query is added to the "Custom queries" group and you are redirected to the query's result view.
189
+
- If not satisfied with the query result, you can click "EDIT QUERY" to further edit your query.
190
+
When saving changes, the result is recalculated.
191
+
- Because the custom query only lives as long as your browser remembers it, a "SAVE QUERY LINK" button is provided.
192
+
Use it to generate a unique URL for this custom query. Copy that URL to your clipboard and save it.
193
+
You can then visit that URL any time later, to recreate this query.
194
+
- To clean up an unwanted custom query, there is always a button "DELETE QUERY"...
0 commit comments