Codeunit reference
Reference for common funtionality extensions
Developing codeunits
Steps for creating a new codeunit
Create a new Java project in your favorite IDE Import the p2eShared.jar in the project Create...
Error handling
Exceptions are handled by themselves using the errorRegistration(Exception e) method. In case th...
Configuration / parameters
Parameters are delivered through the method call, packed in a nice <String> Hashtable for easy ac...
Variables
Variables can have a scope of either Request User session Application For permanent varia...
Using the provided Dev-image
We provide a ready-to-go image of a virtual machine, running Debian 12, for VirtualBox. The mach...
Deploying codeunits
Different codeunit types
Most likely you will need to create a Formevents that will allow specific changes for a solution,...
Formevents
Creating the codeunit
Make sure that p2eShared.jar is included in the project Create a new class that extends ...
LIST level event hooks
public String appendListPageHead() { return ""; } public String appendListPageFoot() { return ""...
ITEM level event hooks
public String appendItemPageHead() { return ""; } public String appendItemPageFoot() { return ""...
FILTER event hooks
Filters will help you build customized permission schemes. They are called for both LIST and ITEM...
Event firing details
Event firing global The following events are ALLWAYS fired beforeSelectList beforeSelectItem...