-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Duplicate
-
Affects Version/s: 1.0.0
-
Fix Version/s: None
-
Component/s: Core
-
Sprint:nxGang Sprint 9.3.6
-
Story Points:1
Access to https://elements.nuxeo.com/elements/nuxeo-operation
The example of use of nuxeo-operation looks like this (note: single quotes on "params" attribute):
<nuxeo-operation auto op="Document.Query" params="{'query': 'select from Document'}" on-response="{{handleResponse}}" enrichers="documentURL, preview"></nuxeo-operation>
According with the documentation (2 lines under the example):
Note: The params attribute must be double quoted JSON.
The right use (note: double quotes on "params" attribute):
<nuxeo-operation auto op="Document.Query" params='{"query": "select from Document"}' response="{{handleResponse}}" enrichers="documentURL, preview"></nuxeo-operation>
- is related to
-
ELEMENTS-387 Fix documentation on handleResponse for nuxeo-operation and nuxeo-resource
- Resolved
-
ELEMENTS-389 [documentation] nuxeo-operation must use 'response' attribute not 'on-response'
- Resolved