BSP with Layout and Initialization 
This simple BSP contains the layout, a page attribute and event handler OnInitialization. This outputs the title, publisher and ISBN of all books in the database table BSBOOK that were published in the year 2000.
This BSP is as follows in the Web Application Builder:
Layout |
End of the source code. |
OnInitialization |
End of the source code. |
Page Attribute |
||||
Attribute Name |
Automatically |
Typing Kind |
Reference Type |
Description |
Books |
TYPE |
BOOK_TAB |
Book List |
|
Note
The internal table books of type BOOK_TAB is filled in OnInitialization.
The individual steps that are followed when processing this BSP are as follows:
The user calls a BSP application in the browser or enters an appropriate URL.
An HTTP-GET request is sent to the BSP runtime.
The BSP runtime determines the suitable BSP application and the BSP that is called.
In the BSP, data is retrieved using OnInitialization. Table BSBOOK is read for those book entries that were made in the year 2000.
The scripting code is processed in the layout and the page is rendered: An HTML table is output and filled with content.
The BSP runtime then generates a suitable response
and sends it to the browser that displays the BSP.
Note
This example can be enhanced by adding a second BSP with navigation: BSP Application with Layout and Initialization