You are on page 1of 2

http://oracle.anilpassi.com/ppr-in-oa-framework-what-is-partial-page-rendering2.

html

Step 1 --------Create a table upon which our OA Framework screen will be based This can be done by using command below. Note:- it is not mandatory to use EO[Entity Object] based screen for this demo, but I am hoping that this demo will also serve the purpose of showing you "how to create a base table" screen in OA Framework. CREATE TABLE xx_test_ppr01 ( uom VARCHAR2(30) ,box_weight NUMBER ,number_of_units NUMBER ,volume NUMBER ,LAST_UPDATE_DATE DATE ,LAST_UPDATED_BY NUMBER(15) ,LAST_UPDATE_LOGIN NUMBER(15) ,CREATION_DATE DATE ,CREATED_BY NUMBER(15) );

Step 2 Create java based packages for both BC4J and MDS page and its controller. Also create an entity object, followed by a view object. This audio/video can be seen by clicking on this link Note: Entity Objects are not needed for such demo, but yet I have followed this approach, so that beginners can see how OA Framework screens can be created for Base Table.

Step 3 Create a page that is based on the view object created above. The audio-video demo for this step can be accessed by clicking on this link Step 4 This step consists of following sub-steps 1. Bind the Boolean attributes of PVO to the respective fields This will Control the runtime rendered property of these fields when partial action occurs [change in LOV] 2. Lets also make sure that changes to UOM drop down list initiates the partial action.

These steps can be seen by clicking on the link here The audio-video demo for this step can be accessed by clicking on this link Step 5 Prepare a controller, that does two things processRequest --------------------initializes the record, as soon as the page is rendered on browser Here we will make a call to the AM processFormRequest --------------------------Here, we will call a method in AM. Within that AM we will do the following:1. Get a handle to the current record on the screen ( in this case there is only one record possible) 2. From the current record, depending upon the value selected in drop down list, change the values of Boolean attributes. Keep in mind that these Boolean attributes are attached to rendered property of the respective fields. The audio-video demo for this step can be accessed by clicking on this link

Step 6 In this step, we will write code for our Application Module, which is responsible for setting the Boolean Attributes. Rebuild project and Test to see this working. The audio-video demo for this step can be accessed by clicking on this link

Source code for this tutorial can be downloaded from this zip file location

You might also like