Show TOC

OnInitializationLocate this document in the navigation structure

Use

This event handler is processed directly after OnRequest during page processing.

This handler implements data retrieval. The data is stored in page attributes and is therefore accessible in the layout and in the other event handlers.

Integration

While the event handler OnCreate is used to initialize objects needed for entire page, OnInitialization is used for getting data from database tables.

If you develop a BSP for managing a shopping basket, the shopping basket object is initialized using OnCreate and then filled with selected products. Here, this would be the catalog ID and the number of objects. You use OnInitialization to read the short texts from the database, calculate the current subtotal, and so on.

Features

You can access the following objects in the implementation toolbar:

Object

Reference Type

Description

APPLICATION

type ref to application class

The Application class means the individual application class entered in the BSP application. If there is no application class in the BSP application, this means that the

Object application is not available.

RUNTIME

type ref to IF_BSP_RUNTIME

Defined in interface IF_BSP_RUNTIME

is the runtime object.

REQUEST

type ref to IF_HTTP_REQUEST

Defined in interface IF_HTTP_REQUEST

is the request object.

RESPONSE

type ref to IF_HTTP_RESPONSE

Defined in interface IF_HTTP_RESPONSE

is the response object.

NAVIGATION

type ref to IF_BSP_NAVIGATION

Defined in interface IF_BSP_NAVIGATION

is the navigation object.

PAGE

type ref to IF_BSP_PAGE

Defined in interface IF_BSP_PAGE

is the page object.

PAGE_CONTEXT

type ref to IF_BSP_PAGE_CONTEXT

Defined in interface IF_BSP_PAGE_CONTEXT

is the page context object.