Skip to Content
Previous

Changing Code in a Plugin

By thecodester

In this tutorial, you will change some of the code in a plugin, and see how to configure an API service.

You will learn

  • How to modify i18n strings
  • How to configure an API service
  • How to test a plugin

Details


Step 1: Modify i18n strings

In the workspace, go to coolproject > client > coolplugin > i18n and double-click the i18n.properties file, change the following strings and click Save.

Old Value New Value
command_helloworld Welcome
commandgroup_sample Greetings

Modify i18n strings

Please log in to access this content.
Step 2: Change menu by configuring an API service

In the workspace, go to coolproject > client > coolplugin and double-click the plugin.json file, Change all occurrences of tools to edit then click Save.

Modify i18n strings
Please log in to access this content.
Step 3: Test the plugin

In the Workspace, right-click the plugin.json file and choose Run* > Run As Plugin. SAP Web IDE opens in a new browser tab called Debug Mode.

You can open the same dialog as in the previous tutorial, but now the menu item is located in the Edit menu and is called Greetings > Welcome.

Please log in to access this content.

Next Steps

Updated 03/23/2017

Time to Complete

5 Min

Beginner
Next
Back to top