How to Create Transient VO in OAF

Transient attribute in OAF are those attribute columns which are not in the Oracle Data Base table or In other terms these attributes life will be there only in the current page scope once navigated or refreshed transient attributes will loose its state. Mainly Transient attributes are used for performing SPEL Operations on the page .

In this tutorial we will see how to create Transient attributes and build a simple page using only transient attributes.

Step 1:  Create a New Workspace and Project


If you are new to OAF we highly recommend to refer the below tutorial to setup jDeveloper





Step 2:  Create a New Dummy VO using the following steps

Click on next and create a Dummy VO.Ignore all warnings.




Dummy VO will get created like the below



Right click on the newly created VO and Edit the dummy VO

 Add transient attributes using the New button as shown below


Create transient attributes one after one as shown below. Remember to set Updatable always.This is required if we want to set value to these attributes.


How to Create Transient VO in OAF


Step 3:  Create a Application Module(AM) and assign the VO to this AM






step 4:  Create a simple page and set the following properties.





Step 5:  Build a Default single row column region using wizard by selecting the dummy VO






Step 6:  Create a new page Button bar and add a button under it as following.




Step 7:  Save all your changes and run the page.




No comments