Technical Articles
Build SAP Analytics Cloud QR Code Generator Custom Widget
I’d like to share how you can generate a QR code in your SAC Analytic Cloud, Analytic App with a simple custom widget with the following features:
- You can create/insert more than one instance as you like.
- You can customize the size, color and background color.
We’ll be using a WebComponents to create a custom widget with external JavaScript library QRCodeJS. You can refer to my blog in the reference on how to create, setup and load the widget.
I hope with this knowledge and example you can build something cool with SAC Analytic App custom widget. And I believe lots of SAC API we can use and integrate, especially on the planning area.
Thanks Ferry for this custom widget example.
I tried uploading the json to SAC and hosting the github files but I run into the following error when trying to display the widget in a story.
box.js:28 Uncaught (in promise) ReferenceError: QRCode is not defined
at QRChart (box.js:28:22)
at Draw (box.js:47:4)
at LoadLibs (box.js:138:22)
Many thanks in advance for your feedback.