Skip to content

SAP-Custom-Widget/dynamoTable

Repository files navigation

SAC-P Custom Widget: dynamoTable

A custom widget to help you create custom tables.

preview

Installation

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

  • Download the dynamoTable.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 dynamoTable.json file that you downloaded.
  • You're done! You can now use it in your app.

Methods

The widget has the following methods:

Method Return Type Description
setTableData(arrayOfObject) Selection/Object array Data as array of object format.

Example

var data  = [
  {
    productId: "1",
    productName: "Wireless Mouse",
    category: "Electronics",
    price: "25.99",
    quantitySold: "120",
    dateOfSale: "2024-05-01"
  },
  {
    productId: "2",
    productName: "Bluetooth Headphones",
    category: "Electronics",
    price: "79.99",
    quantitySold: "75",
    dateOfSale: "2024-05-02"
  }
];

dynamoTable_1.setTableData(data);

Output

preview

About

This sac-p custom widget is developed by Rohit Chouhan, Follow me on Linkedin @itsrohitchouhan

About

A custom widget to help you create custom tables

Resources

License

Stars

Watchers

Forks

Packages

No packages published