Skip to Content

Attachment Service using FORI Tools VSCode/Business Application Studio

I can't figure out how to reference the attachmentservice using xs-app.json (as opposed to neo-app.json in neo/webide)

I'm using an OData Connection (as opposed to an SAP System)

The error I get is failed to load "'/resources/sap/se/mi/plm/lib/attachmentservice/library-preload.json': Not Found -"

in webide I would right click the project, Select "Project" then "Add reference to library"

anyone know how do do that in FIORI Tools with an Odata Connection?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Jul 30, 2020 at 07:17 PM

    Hi Paul,

    Can you try updating the ui5.yaml and ui5-local.yaml to add backend routing for "/resources/sap/se/mi/plm/lib/attachmentservice" for example:

      - name: fiori-tools-proxy
        afterMiddleware: compression
            - path: /sap
              url: https://hostname:port/
            - path: /resources/sap/se/mi/plm/lib/attachmentservice
              pathPrefix: /sap/bc/ui5_ui5/sap/plm_ath_cres1
              url: https://hostname:port

    Also, ensure that the latest version of @sap/ux-ui5-tooling is installed in the project.

    npm install @sap/ux-ui5-tooling@1.0.10 --save-dev

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.