SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
โคข Open full site

SAP HANA XS Advanced - Text Bundles within Node.js SAP HANA applications

Working with text bundles in Node.js

Overview

🎓 intermediate 15 min. SAP HANAIntermediateExpress Edition
Thomas Jung T Thomas Jung November 1, 2022
Created by September 16, 2016
Contributors

Prerequisites

Prerequisites

  • This tutorial is designed for SAP HANA on premise and SAP HANA, express edition. It is not designed for SAP HANA Cloud.
  • Proficiency: Intermediate
  • Tutorials: Asynchronous Non-Blocking I/O

Steps

Next Steps

Time to Complete

15 Min.


Step 1 Add a new route for a text bundle module
โ€”

Add a new route for /routes/textBundle in /router/index.js

JavaScript
/*eslint no-console: 0, no-unused-vars: 0, no-undef:0, no-process-exit:0*/
/*eslint-env node, es6 */
"use strict";

module.exports = (app, server) => {
	app.use("/node", require("./routes/myNode")());
	app.use("/node/excAsync", require("./routes/exerciseAsync")(server));
	app.use("/node/textBundle", require("./routes/textBundle")());

	app.use( (err, req, res, next) => {
		console.error(JSON.stringify(err));
		res.status(500).send(`System Error ${JSON.stringify(err)}`);
	});
};
Step 2 Create text bundle script
+
Step 3 Create text bundle
+
Step 4 Test the translations
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 4
1. Add a new route for a text bundle module 2. Create text bundle script 3. Create text bundle 4. Test the translations

Learn more →