This commit is contained in:
Daniel
2021-06-09 10:22:30 +02:00
10 changed files with 185 additions and 52 deletions

View File

@@ -1,11 +1,10 @@
const cds = require("@sap/cds");
const cds = require('@sap/cds');
module.exports = cds.service.impl(function () {
const { A_BusinessPartner } = this.entities;
this.after("UPDATE", A_BusinessPartner, (data, req) =>
this.tx(req).emit("BusinessPartner.Changed", {
BusinessPartner: data.BusinessPartner
})
);
// https://api.sap.com/event/SAPS4HANACloudBusinessEvents_BusinessPartner/resource
this.after('UPDATE', A_BusinessPartner, async data => {
await this.emit("BusinessPartner.Changed", { BusinessPartner: data.BusinessPartner });
});
});

View File

@@ -0,0 +1,2 @@
ID;title;descr;author_ID;stock;price;currency_code;genre_ID;supplier_ID;
299;Mobby Dick;"""Moby-Dick""" or """The Whale""" is an 1851 novel by American writer Herman Melville. The book is the sailor Ishmael's narrative of the obsessive quest of Ahab, captain of the whaling ship Pequod, for revenge on Moby Dick, the giant white sperm whale that on the ship's previous voyage bit off Ahab's leg at the knee. A contribution to the literature of the American Renaissance, Moby-Dick was published to mixed reviews, was a commercial failure, and was out of print at the time of the author's death in 1891.;105;99;15.20;GBP;11;ACME
Can't render this file because it contains an unexpected character in line 2 and column 30.

View File

@@ -0,0 +1,6 @@
ID;name
ACME;A Company Making Everything (local)
B4U;Books for You
S&C;Shakespeare & Co.
WSL;Waterstones
1 ID name
2 ACME A Company Making Everything (local)
3 B4U Books for You
4 S&C Shakespeare & Co.
5 WSL Waterstones