To get you started coding an app for our point of sale system, we’ve made an example POS Action that can be configured to run on any button in our POS.
Each POS Action is made up of at least two files: a JavaScript file that runs on the client when the POS Action is executed and an AL Codeunit that runs inside Business Central when a request to backend is made from JavaScript.
The full example can be found here:
https://github.com/navipartner/pos-action-example
The example teaches you how translations, parameters, POS Popups, and calls between JavaScript (frontend) and AL (backend) works.
When the example repo action runs it will ask a question via POS UI, validate the answer in Business Central and show the result of the validation in POS UI again.
This is only a simple example, in reality you can make as many backend requests as you want, run and await other workflows from within your own workflow and invoke local hardware via our hardware connector.
If you have our VSCode extension installed while developing, then the contents of the JavaScript file is automatically injected in the code unit whenever you save your changes.