What is the "best practice" for updating HCP DB tables using xsjs? Using the XSDS library, or the $.hdb API?
I have tried to use $.hdb, calling an SQLscript procedure with a POST, but get a 405 error. Reverting to using GET (which doesn't logically make sense to me, by the way) results in 404's if I use the destination path set up in HCP; if I replace the destination with the fully qualified URL, I have a "No 'Access-Control-Allow-Origin' header is present on the requested resource" error.
Is there any recommendation on the "best practice" for this? My E2E scenario is reading data from a NW Gateway OData service (via a predefined destination), then saving the data in my CDS-defined HCP tables. I can read NW data OK, but the "saving" part currently eludes me.
Regards,
Trond