Skip to content

A SAP Custom Widget to displays the real-time currency conversion rate between two currencies.

License

Notifications You must be signed in to change notification settings

SAP-Custom-Widget/CurrencyWidget

Repository files navigation

SAP Custom Widget: Currency Widget

This is a custom widget that displays the real-time currency conversion rate between two currencies. It can be used in SAP applications to enhance user experience by providing quick access to currency conversion information.

preview

Installation

To use this widget in your SAP application, follow these steps:

  • Download the CurrencyWidget.json file from the URLs specified in the webcomponents property of the JSON.
  • Go to your SAC Portal, select Analytic Application from the left side bar, and then go to the Custom Widget tab.
  • Click on the + icon on the right side and select the CurrencyWidget.json file that you downloaded.
  • You're done! You can now use it in your app.

Methods

The widget has the following methods:

Set Methods

Method Parameter Type Description
setFrom(from) string Set Source Currency Code
setTo(to) string Set Target Currency Code
setAmount(amount) integer Set Amount to Calculate
setDecimalPlaces(decimalPlaces) integer Set Decimal Values

get Methods

Method Return Type Description
getFrom() string return Source Currency Code
getTo() string return Target Currency Code
getAmount() integer return Amount to Calculate
getDecimalPlaces() integer return Decimal Values
getCalculatedRate() string return Calculated Currency Rate

About

This widget is developed by Rohit Chouhan

About

A SAP Custom Widget to displays the real-time currency conversion rate between two currencies.

Resources

License

Stars

Watchers

Forks

Packages

No packages published