Entity object in OAF. How to create EO in OAF
Entity Object in OAF is same like the Data base tables. We creates Entity Object on Data Base Tables. Every Entity Object Maps with the Data Table and each Attribute of the Entity object maps with that Data base Table columns.The attributes of an entity object store data type information as
specified in the database table they were derived from, including primary and
foreign key relationships. We can also say , Entity object contains description/Information's about data base Table columns. We want to Use Data base tables in OAF page , to Insert / Update and Delete type of functions then we must need to create the Entity object for this table in which we want to perform this operations.
We creates Entity Objects in two ways :-
First we create entity Objects from Database tables
Second we Create Entity Object First and then create Database table from this Entity Object.
Usually we use One entity object Again one Data Bases tables , but some time due to the business requirements , we can also create multiple Entity Objects from the Single Table too. But in this you need to make sure that every entity object should work on different -different rows.
How to create EO in OAF
In this Example I am taking an Example of Entity Object Used in the Dummy supplier creation Process.
1.First we will Dummy Supplier Table.create table on which we insert Data.
Create workspace name "RohitDataEntryOaf".
Right Click on "Applications".Click on "NewOAWorkspace".
Enter the name of Workspace="RohitDataEntryOaf".Click Ok.
Right Click on "Applications".Click on "NewOAWorkspace".
Enter the name of Workspace="RohitDataEntryOaf".Click Ok.
Project wizard will open click next.
Enter the name of the Project="RohitDataEntryOaf".
Default Package= "rohit.oracle.apps.fnd.RohitDataEntryOaf"
Package determines the directory where the java class files and other files related to this project strored.
In this directory oracle.apps.fnd must be required."fnd" is the oracle application shortname you can use other applications like "ak" in this.
Enter the RunTime connection .Enter the E-business Suit Application User Name and Password.(already explained in the JDev installation).
Workspace and project has been created.
Now we want to insert data in the OAF Page so we need to use EO because if we are doing Insert/Update/Delete operation in the OAF page , then we must need to create Entity Object(EO)
Workspace and project has been created.
Now we want to insert data in the OAF Page so we need to use EO because if we are doing Insert/Update/Delete operation in the OAF page , then we must need to create Entity Object(EO)
TO create Entity Object(EO).
Right Click on the project "RohitDataEntryOaf".Click New
Entity Object example
Entity Object name="SupplierEntryEO"
Defualt Package="rohit.oracle.apps.fnd.RohitDataEntryOaf.server"
Schema Object = XX_SUPPLIER_MASTER //This will be the Custom Table Created in the First step.
we always creates "Entity Object" under the "Server" directory of the project as OAF Standard.
Click Next.
Defualt Package="rohit.oracle.apps.fnd.RohitDataEntryOaf.server"
Schema Object = XX_SUPPLIER_MASTER //This will be the Custom Table Created in the First step.
we always creates "Entity Object" under the "Server" directory of the project as OAF Standard.
Click Next.
EO has been create as below.
If you want to create Dummy OAF Creation Page in OAF then you can refer this Below URL:-
1 comments:
I used view in entity object, instead of table. as such there is no error but data is not coming. Can you suggest me what can be the issue?
Post a Comment