I have created a server side script which calls Collection.CreateObject to update a table in the Appery DB. it works great but I expected (according to the documentation at http://docs.appery.io/documentation/b...) that it will return a JSON object which has the ID of the newly created row. However I am not receiving this
stockreportHeader = Collection.createObject(DB_id, "stockReportHeader", {"stockId": stockreportHeader.stockId });
console.log("New stock report ID : ") + stockreportHeader;
I also tried:
console.log("New stock report ID : ") + stockreportHeader._id;
However the output in the trace shows that the stockreportHeader variable is empty. Any ideas?