POS Actions
The POS Actions listed all the actions customized by LS Express, and partners are allowed to create custom actions.
How to: Create Custom Actions in LS Express
-
Create a record in the “LSEPOSAction” table using the “InsertCustomPOSAction” procedure from the “LSEPOSActionMgt” codeunit. This procedure takes the Action ID, description, and comments as parameters. Note that the Action ID for custom actions should be within the range of 50000 to 99999.
-
Code for Action: Subscribe to the Event 'OnExecuteCustomPOSAction' on page 'LSEPOSNewUI' to handle the custom action's code execution. Write the code for the specific custom action using a case statement for all the custom POS actions created. This code will define what the action does when triggered.
-
Open the Administration page, go to Navigate and select POS Actions.
-
After running the record using the "InsertCustomPOSAction" procedure, you can see the new action ID, description, and comments added in the POS action lines.
-
Please note that LS Express customized POS actions cannot be deleted, and only custom POS action IDs within the range of 50000 to 99999 are allowed for deletion. Attempting to delete other POS actions will result in an error notification.
How to: Configure Custom Actions in POS Menu
-
Open the Administration page, go to Navigate and select Menu.
-
Add the new custom POS actions to the POS Menu Lines. This will include your custom actions in the POS user interface.
-
To see the output of the customized action, make sure to complete the step 2. This is an example of customized POS action in the POS: