Difference between revisions of "Developing codeunits"

From TempusServa wiki
Jump to navigation Jump to search
old>Admin
old>Admin
Line 6: Line 6:
## The abstract parts are found in: dk.p2e.blanket.codeunit
## The abstract parts are found in: dk.p2e.blanket.codeunit
## Implement all abstract methods
## Implement all abstract methods
## Code the method bodies (normally "execute")
# Compile and build
# Compile and build
# Deploy to webservser: [Application]\WEB-INF\lib
# Deploy to webservser: [Application]\WEB-INF\lib

Revision as of 15:20, 18 September 2012

Steps for creating a new codeunit

  1. Create a new Java project in your favorite IDE
  2. Import the p2eShared.jar in the project
  3. Create a new class:
    1. The abstract parts are found in: dk.p2e.blanket.codeunit
    2. Implement all abstract methods
    3. Code the method bodies (normally "execute")
  4. Compile and build
  5. Deploy to webservser: [Application]\WEB-INF\lib

Error handling

Exceptions are handled by themselves using the errorRegistration(Exception e) method.