Skip to Content

Utility to insert data from a UI into Hana Table using XSJS.

I want to build a utility which will allow the users to insert data into my hana table through a UI.

Currently they send me insert queries which I execute in my Hana environment. I want to reduce this manual work and let the users put the values in the UI against the columns and then insert the same as parameters in my Hana Table.
Can this be possible using Hana XSJS.
Any blogs which have done similar type of thing before?

Thanks in advance.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Oct 22, 2019 at 10:48 AM

    Hi Prathamesh,

    Your requirement is possible using XSJS. 
    To have better control, I suggest to develop HANA procedure which can be called from XSJS. Refer below steps:
    i) Develop HANA procedure to have input parameter as column values to be inserted.
    ii) In the HANA procedure, you can have logic to insert into HANA table.
    iii) From XSJS, using request object and XSProc.procedure, you can call this HANA procedure.
    iv) You can refer for XSPROC call.



    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.