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...
Different codeunit types
Most likely you will need to create a Formevents that will allow specific changes for a solution,...
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
Formevents
Custom code, attatched to an entity, getting called at different times
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...
Pagecontent
A completely custom page, that the users can access via a link
PagecontentPublic
A publicly accessable custom page. Same as Pagecontent, but public
Statusaction
Will execute just about anything for a single object in a determined state
Translator
Used for handling special values during integration
ScheduledAction
A custom service, executed on a fixed interval
Message Modifier
Allows modification of messages sent by the system, just before they are sent