How do I insert data from a SAPUI5 frontend with a node.js backend into a Database?How do I remove a property from a JavaScript object?How to insert an item into an array at a specific index (JavaScript)?How do I debug Node.js applications?How do I get started with Node.jsHow do I pass command line arguments to a Node.js program?How to decide when to use Node.js?How to exit in Node.jsHow do I remove a particular element from an array in JavaScript?How do I POST JSON data with Curl from a terminal/commandline to Test Spring REST?How do I return the response from an asynchronous call?
What are good ways to spray paint a QR code on a footpath?
Loss of majority in Westminster
Plotting the gradient descent
Welcome to my kitchen
Is it allowed to spend a night in the first entry country before moving to the main destination?
Most importants new papers in computational complexity
How was film developed in the late 1920s?
Prevent cacls asking for confirmation?
Why was Mal so quick to drop Bester in favour of Kaylee?
Procedurally generate regions on island
Why do I need two parameters in an HTTP parameter pollution attack?
Symbol for "not absolutely continuous" in Latex
What exactly is a fey/fiend/celestial spirit?
Can a US President have someone sent to prison?
Who gets an Apparition licence?
How to fix a dry solder pin in BGA package?
Can a single server be associated with multiple domains?
What is the difference between handcrafted and learned features
Can another character physically take something that Mage Hand is carrying/holding?
Does “comme on était à New York” mean “since” or “as though”?
If the same attack that causes a druid to revert from Wild Shape also reduces their maximum HP, what happens?
Was it really unprofessional of me to leave without asking for a raise first?
Why does a brace command group need spaces after the opening brace in POSIX Shell Grammar?
Can I ask to speak to my future colleagues before accepting an offer?
How do I insert data from a SAPUI5 frontend with a node.js backend into a Database?
How do I remove a property from a JavaScript object?How to insert an item into an array at a specific index (JavaScript)?How do I debug Node.js applications?How do I get started with Node.jsHow do I pass command line arguments to a Node.js program?How to decide when to use Node.js?How to exit in Node.jsHow do I remove a particular element from an array in JavaScript?How do I POST JSON data with Curl from a terminal/commandline to Test Spring REST?How do I return the response from an asynchronous call?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
im using SAPUI5 for my frontend and node.js for my backend and a SQL relational database.
Im new to this topic and a bit confused.
Basically I have a SAPUI5 frontend with some checkboxes and a number input parameter.
<VBox>
<CheckBox id="given_name" name="given_name")>
<CheckBox id="last_name" name="last_name"/>
<StepInput id="step_input">
</VBox>
<Button text="create" press="onpress"/>
The JavaScript onPress Button
onpress : function()
var xhttp = new XMLHttpRequest();
xhhtp.onreadystatechange = function()
if(xhttp.readyState === 4 && xhttp.status === 200)
alert(http.responsetext)
;
xhttp.open("POST", "node/testing", true);
xhttp.send();
node.js
var express = require("express");
var bodyParser =require("body-parser");
module.exports = function () {
var app = express.Router();
app.use(express.bodyParser());
app.post("/testing", function (req, res)
var client = req.db;
res.send(req.body);
console.log(req.body.given_name);
);
I cant access the frontend Input and im not 100% sure if that's the correct way to insert from /testing afterward.
Thanks for your help!
javascript html node.js rest sapui5
add a comment |
im using SAPUI5 for my frontend and node.js for my backend and a SQL relational database.
Im new to this topic and a bit confused.
Basically I have a SAPUI5 frontend with some checkboxes and a number input parameter.
<VBox>
<CheckBox id="given_name" name="given_name")>
<CheckBox id="last_name" name="last_name"/>
<StepInput id="step_input">
</VBox>
<Button text="create" press="onpress"/>
The JavaScript onPress Button
onpress : function()
var xhttp = new XMLHttpRequest();
xhhtp.onreadystatechange = function()
if(xhttp.readyState === 4 && xhttp.status === 200)
alert(http.responsetext)
;
xhttp.open("POST", "node/testing", true);
xhttp.send();
node.js
var express = require("express");
var bodyParser =require("body-parser");
module.exports = function () {
var app = express.Router();
app.use(express.bodyParser());
app.post("/testing", function (req, res)
var client = req.db;
res.send(req.body);
console.log(req.body.given_name);
);
I cant access the frontend Input and im not 100% sure if that's the correct way to insert from /testing afterward.
Thanks for your help!
javascript html node.js rest sapui5
add a comment |
im using SAPUI5 for my frontend and node.js for my backend and a SQL relational database.
Im new to this topic and a bit confused.
Basically I have a SAPUI5 frontend with some checkboxes and a number input parameter.
<VBox>
<CheckBox id="given_name" name="given_name")>
<CheckBox id="last_name" name="last_name"/>
<StepInput id="step_input">
</VBox>
<Button text="create" press="onpress"/>
The JavaScript onPress Button
onpress : function()
var xhttp = new XMLHttpRequest();
xhhtp.onreadystatechange = function()
if(xhttp.readyState === 4 && xhttp.status === 200)
alert(http.responsetext)
;
xhttp.open("POST", "node/testing", true);
xhttp.send();
node.js
var express = require("express");
var bodyParser =require("body-parser");
module.exports = function () {
var app = express.Router();
app.use(express.bodyParser());
app.post("/testing", function (req, res)
var client = req.db;
res.send(req.body);
console.log(req.body.given_name);
);
I cant access the frontend Input and im not 100% sure if that's the correct way to insert from /testing afterward.
Thanks for your help!
javascript html node.js rest sapui5
im using SAPUI5 for my frontend and node.js for my backend and a SQL relational database.
Im new to this topic and a bit confused.
Basically I have a SAPUI5 frontend with some checkboxes and a number input parameter.
<VBox>
<CheckBox id="given_name" name="given_name")>
<CheckBox id="last_name" name="last_name"/>
<StepInput id="step_input">
</VBox>
<Button text="create" press="onpress"/>
The JavaScript onPress Button
onpress : function()
var xhttp = new XMLHttpRequest();
xhhtp.onreadystatechange = function()
if(xhttp.readyState === 4 && xhttp.status === 200)
alert(http.responsetext)
;
xhttp.open("POST", "node/testing", true);
xhttp.send();
node.js
var express = require("express");
var bodyParser =require("body-parser");
module.exports = function () {
var app = express.Router();
app.use(express.bodyParser());
app.post("/testing", function (req, res)
var client = req.db;
res.send(req.body);
console.log(req.body.given_name);
);
I cant access the frontend Input and im not 100% sure if that's the correct way to insert from /testing afterward.
Thanks for your help!
javascript html node.js rest sapui5
javascript html node.js rest sapui5
edited Mar 25 at 12:33
Yashwardhan Pauranik
2,3291 gold badge17 silver badges32 bronze badges
2,3291 gold badge17 silver badges32 bronze badges
asked Mar 25 at 12:31
SchwenkSchwenk
184 bronze badges
184 bronze badges
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55337846%2fhow-do-i-insert-data-from-a-sapui5-frontend-with-a-node-js-backend-into-a-databa%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55337846%2fhow-do-i-insert-data-from-a-sapui5-frontend-with-a-node-js-backend-into-a-databa%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown