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;








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!










share|improve this question






























    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!










    share|improve this question


























      0












      0








      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!










      share|improve this question
















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      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






















          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
          );



          );













          draft saved

          draft discarded


















          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.




















          draft saved

          draft discarded
















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

          용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh

          155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해