Skip to Content
-1

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

 

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • May 21 at 06:12 PM

    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

    Add comment
    10|10000 characters needed characters exceeded