Professional Documents
Culture Documents
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
{StickyNote}{/StickyNote}
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
Set the project properties as per the screenshot below:
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
2. We need to create two Business component package. Right click on CholaMasterDetail.jpr and click on new Business
Component Package.
Name - cholamd.oracle.apps.fnd.master.server
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
3.Right click on cholamd.oracle.apps.fnd.master.server and click new Application Module.
Name - CholaMdAM.
Package - cholamd.oracle.apps.fnd.master.server.
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
{tab=VO -->}
Name - SupplierPVO
Package - cholamd.oracle.apps.fnd.master.server.
Click Next and go to the attributes page.The VO is based on any EO.We need to create transient attributes.Click New and
create the below attributes.
Name - RowKey
DataType - String
Updatable - Always
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
Key Attribute - Yes
Name - PoApproveReadOnly
DataType - Boolean
Updatable - Always
Name - PoApproveRequired
DataType - String
Updatable - Always
Name - PoApproveRender
DataType - Boolean
Updatable - Always
Name - PoApproveReject
DataType - Boolean
Updatable - Always
Name - DetailTableText
DataType - String
Updatable - Always
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
5.Right click on cholamd.oracle.apps.fnd.master.server and click on new View Object.
Name - SupplierSitesVO
Package - cholamd.oracle.apps.fnd.master.server.
Click Next.Go to the query page and paste the following query:
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
SELECT SupplierSiteEO.SUPPLIER_ID,
SupplierSiteEO.SUPPLIER_SITE_ID,
SupplierSiteEO.SITE_NAME,
SupplierSiteEO.PURCHASING_SITE_FLAG,
SupplierSiteEO.START_DATE,
SupplierSiteEO.END_DATE
FROM FWK_TBX_SUPPLIER_SITES SupplierSiteEO
Name - SuppliersVO
Package - cholamd.oracle.apps.fnd.master.server.
Click Next.Go to the query page and paste the following query:
SELECT SupplierEO.SUPPLIER_ID,
SupplierEO.NAME,
SupplierEO.ON_HOLD_FLAG,
SupplierEO.START_DATE,
SupplierEO.END_DATE
FROM FWK_TBX_SUPPLIERS SupplierEO
WHERE SupplierEO.SUPPLIER_ID <= 100
Note : Add a new attribute SelectFlag as a transient attribute.Do not forget to do this step.
Edit the AM and shuttle the SuppliersVO and SupplierSitesVO to the right side and click ok. Only then the VO instances will
be accessible.
{tab=VL -->}
7.Right click on cholamd.oracle.apps.fnd.master.server and click on new View Link.
Name - SuppliertoSitesVL
Package - cholamd.oracle.apps.fnd.master.server.
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
8.From the source view object select SuppliersVO and from destination view object select SupplierSitesVO.Click Next.
9.Select the SupplierId from the available attributes of SuppliersVO and shuttle it to the right side.Click Next.
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
10.Select the SupplierId from the available attributes of SupplierSitesVO and shuttle it to the right side.Click Next.
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
11.Choose the cardinality for the source(SuppliersVO) as 1 and destination(SupplierSitesVO) as *.Click Next and Finish.
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
{tab=PG -->}
12.Right click on CholaMasterDetail.jpr and select new. Click on web tier and then OA Components and select Page.
Name - CholaMasterDetailPG
Package - cholamd.oracle.apps.fnd.master.webui.
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
13.Select the CholaMasterDetailPG and go to the strcuture pane where a default region has been created.
ID - PageLayoutRN
AM Definition - cholamd.oracle.apps.fnd.master.server.CholaMdAM
Window Title - Master Detail Page Demo
Title - Master Detail Page Demo
Name - MasterDetailRN
Region Style - Header
17.From the droplist select the CholaMdAM and then SuppliersVO1.Click Next.
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
18.Set the RegionID as SuppliersTable and RegionStyle as Table.
19.Shuttle all the attributes to the right side and click next.
20.Change the Style of all the attributes to messageStyledText.Click Next and Finish.
Right click on SuppliersTable and select new - > singleSelection.Set the following properties for the singleSelection:
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
Event - supplierSelect
21.Right click on SuppliersTable and click new singleSelection.Set the following properties:
25.From the droplist select the CholaMdAM and then SupplierSitesVO1.Click Next.
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
26.Set Name as SupplierSitesHeader and RegionStyle as Table.Click Next.
27.Shuttle all the attributes to the right side and click next.
28.Change the Style of all the attributes to messageStyledText.Click Next and Finish.
{tab=CO -->}
29.Right click on the PageLayoutRN in the page and select Set new Controller.
Name- MasterDetailCO
Package - cholamd.oracle.apps.fnd.master.webui
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
Import Statements:
Code:
{slide=ProcessRequest}
1 OAHeaderBean sitesHeader =
2 (OAHeaderBean)webBean.findChildRecursive("SupplierSitesHeader");
3 sitesHeader.setAttributeValue(OAWebBeanConstants.TEXT_ATTR,
4 new OADataBoundValueViewObject(sitesHeader, "DetailTableText",
5 "SupplierPVO1"));
6 OAApplicationModule am =
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
7 (OAApplicationModule)pageContext.getApplicationModule(webBean);
8 am.invokeMethod("initializePPRExamplePage");
9 OATableBean table = (OATableBean)webBean.findChildRecursive("SuppliersTable");
10 table.queryData(pageContext, true);
{/slide}
{slide=ProcessFormRequest}
1 OAApplicationModule am =
2 (OAApplicationModule)pageContext.getApplicationModule(webBean);
3 String event = pageContext.getParameter("event");
4 if ("supplierSelect".equals(event))
5 {
6 am.invokeMethod("handleSupplierSelectionEvent");
7 }
{/slide}
handleSupplierSelectionEvent:
initializePPRExamplePage:
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
{/tabs}
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
Search... Browse Post My Account
Share This Hits : 12804
Points : 1840
Sudhakar Mani
Contact Author Website Facebook Tw itter
Submit comment
41 Comments
evivek 44 Months Ago (0) Vote
Hi Aarthi,
I'm using 10.1.3.1.0 and its navigation seems to be different from that shown in the screenshot.
When i right click on .jpr, i cant view the "New Business Components package" option.
Thanks,
Vivek
Reply Quote
Vivek,
It is done in 11i jdev.you can right click on your project and then goto business tier-ADF business
components and then select VO or EO.you can straight away specify the package name there.In r12
jdev it is not needed to create bc4j package explicitly.
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
Let me know if you have any problems doing it.
Regards,
Aarthi
Reply Quote
Hi Aarthi,
Thanks
surya
Reply Quote
Thanks suryakanta..
Regards,
Aarthi
Reply Quote
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
contactriteshsharm a 18 Months Ago (0) Vote
Hi Aarathi,
My requirement is to develop a Oracle Form style Master-Detail data entry Form, is it possible in OAF
or Not?
I developed a sample form and created all required BC4J components like EO, VO, viewlink and entity
association but it is not picking up the foreign key value. What may be the reason? I have set the
newly created row as current row for Master VO.
Thanks in advance
Regards,
Reetesh Sharma
Reply Quote
Reetesh,
No it is not straight forward in OAF. However you can achieve this by tweaking a little.Can you attach
your project zip file in the forums so that I can have a look at it.
Regards,
Aarthi
Reply Quote
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
contactriteshsharm a 33 Months Ago (0) Vote
Hi Arathi,
I've already compeleted that project and handelled Master-Detail Relationship manually means I
created two regions while querying I was firing query on both the regions simultaneously and while
saving the data I will pass foreign key value manually to child block.
Best Regards
Reetesh Sharma
Reply Quote
Hi Arthi,
Superb yaar
i do admire ur job
keep it up
thanks
muthu
Reply Quote
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
Akila 40 Months Ago (0) Vote
Hi Aarthi,
I created a Master-Detail OAF page following the steps you listed in the document. But I am not
getting any data when I attach the detail region. If I just run the the page with the Master Region alone,
I could see the data.
I am fairly new to OAF and I am having hard time to figure out what I missed.
Thanks,
Akila.
Reply Quote
Hi Akila,
Please post your query in the forum to get a prompt response as well as it is easy to troubleshoot
from there.Do attach your myprojects as a zipped file.
http://oraclearea51.com/forums.html?func=showcat&catid=8
Regards
Sudhakar
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
Reply Quote
Display # 10
Designed by Cholaglobal.co
Back to Top
Powered by CholaTube
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com