Here I want to share one example of customization. We want to trigger a button that is defined as Automation action from code. The problem here is that the button is not defined in the code, so we need to trigger it the same way how UI does it.
To do this we have do several tricks:
- Define a new custom PXView that will return record that we want to process
- Create an adapter, that will provide data for button handler. Adapter will get data from custom PXview.
- Create a separate instance of graph, that will handle action.
Code example with comments:
Big thanks to Acumatica support team for the provided example.
Have a nice development.