Uploaded image for project: 'Nuxeo Elements'
  1. Nuxeo Elements
  2. ELEMENTS-388

[documentation] nuxeo-operation use single quoutes in params attribute, must use double quotes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 1.0.0
    • Fix Version/s: None
    • Component/s: Core

      Description

      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>
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: