MVC in BSP application
1. Properties
View: Created as subobject of a BSP application, via controller call, it’s a HTML page or page with BSP extension
Model: Created as a class, reference or derived from CL_BSP_MODEL
Provide: a. The data used for views with relevant type and Dictionary information
b. Input conversion
c. Process input errors
Controller: With the file extension .do, is a subclass of CL_BSP_CONTROLLER2
2. How-to call a view from controller:
1). Create an interface reference variable of type IF_BSP_PAGE
2). Call method: CREATE_VIEW
3). Call_view
3. Receiving user input and processing:
1). User input data transfer to main controller
2). In DO_REQUEST, call method DISPATCH_INPUT()
3). Call DO_HANDLE_DATA to process data
4). Call DO_HANDLE_EVENT to process system event
4. For much detail information , will be in the later demo in my blog.
No Comments