cancel
Showing results for 
Search instead for 
Did you mean: 

$.request.entities doesn't contain any entity xsjs

former_member412320
Discoverer
0 Kudos

I am trying to implement multipart request to use DMS on HCP trail account using XSJS. As it is mentioned in HCP Help. SAP HANA Cloud Platform I have created index.html and corresponding xsjs application in HCP Trailaccount as per below link from jsdoc. JSDoc: Tutorial: Creating documents and folders My index.html has following content:

<form action="fileupload.xsjs" enctype="multipart⁄form-data" method="post">
    Description:
    <input type="text" name="description" size="30"><br/>
    File:
    <input type="file" name="datafile" size="40"><br/>
    <input type="submit" value="Submit"><br/>
</form>

Everthing is working but $.request.entities doesn't contain any entity

gregorw
Active Contributor
0 Kudos

Can you please update your question with links to the documentation you've mentioned.

Accepted Solutions (0)

Answers (1)

Answers (1)

Ivan-Mirisola
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Ronald,

If your followed this blog, please disregard the instructions as they are completely outdated and nothing there will work as it is supposed. First, because the code makes use of an internal library that is no longer provided by SAP (neither on productive nor on trial instances).

The recommended way to access the Document Services on SCP is documented here. There you will find instructions on how to build a proxy service in Java so it can be safely called from your html application.

There aren no CMIS client library for JS officially supported by the Apache Camel project (the maintainers of the openCMIS client library for Java). There are unofficial libraries, primarily targeted at server side JS implementations, that you could give a try. I highly recommend you the Java approach which has a widely supported by Apache Camel and will cover more than just the basics.

Regards,
Ivan