Changing header and ticket area at runtime
In this recipe, we will see how we can change the IDR header (title and ticket area) programmatically. In this case, the previously statically defined (through IDR configuration) ticket area and title are overridden. This concept applies to both the OIF and OVP Floorplans.
In this recipe, we will write the code for changing within the view (window) shown within a subview. When the particular subview is selected, the header title and ticket area will change. We will write the code in the component whose view is used as an UIBB in a subview. We will write the code in the respective view (WDDOINIT
method).
How to do it...
For dynamically changing the IDR title and ticket area, proceed as follows:
First, we define an attribute at the component controller level by the name
MY_FPM_IDR
based on the typeIF_FPM_IDR
.Next, we define a
SET_IDR_TITLE_TICKET
method in the component controller. Then, we will write the coding in the method. We first define a reference...