System generated commit, initial commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
export default {
|
||||
async saveRecord() {
|
||||
if (appsmith.store.editContext.mode === "create") {
|
||||
const res = await ID_Check.run();
|
||||
const nextID = res[0].nextID;
|
||||
|
||||
return Insert_Haus.run({
|
||||
HID: nextID,
|
||||
Kürzel: appsmith.store.editDraft.Kürzel,
|
||||
Hausname: appsmith.store.editDraft.Hausname,
|
||||
Adresse: appsmith.store.editDraft.Adresse,
|
||||
Land: appsmith.store.editDraft.Land,
|
||||
Unterkunftsart: appsmith.store.editDraft.Produkt,
|
||||
Status: appsmith.store.editDraft.Status
|
||||
});
|
||||
} else {
|
||||
return Update_Haus.run({
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"gitSyncId": "6a57350b6665afa2c813ed3d_3e8361d8-f317-4d42-a319-4d3eb0196760",
|
||||
"id": "Bearbeitung Sportclubs_Update_or_Insert",
|
||||
"unpublishedCollection": {
|
||||
"name": "Update_or_Insert",
|
||||
"pageId": "Bearbeitung Sportclubs",
|
||||
"pluginId": "js-plugin",
|
||||
"pluginType": "JS",
|
||||
"variables": []
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user